Skip to content

How can see the result of simpliers/tokenizers on Strings rather than just result  #26

@ijabz

Description

@ijabz

So may typically have@

 StringMetric metric = with(new CosineSimilarity<String>())
                .simplify(Simplifiers.toLowerCase())
                .simplify(Simplifiers.removeDiacritics())
                .simplify(new SpecialReplacementsSimplifier())
                .tokenize(Tokenizers.whitespace())

float result = metric.compare(s1,s2)

What I would like to do for debugging is an easy way to see the final step before the cosine similarity, i,e the contents of the sets created by applying the simplifiers and then finally the tokenizer(s), is this possible ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions