Skip to content

Support for multiple tokens? #4

@mollerhoj

Description

@mollerhoj

As far as I can tell, this does not support lookup of sentences?

from sympound import sympound
from pyxdameraulevenshtein import damerau_levenshtein_distance
distancefun = damerau_levenshtein_distance

ssc = sympound(distancefun=distancefun, maxDictionaryEditDistance=3)

def test():
    print(ssc.load_dictionary("frequency_dictionary_en_82_765.txt", term_index=0, count_index=1))
    print(ssc.lookup_compound(input_string="whereis th elove hehad dated forImuch of thepast who couqdn'tread in sixthgrade and ins pired him", edit_distance_max=3))
test()
# returns:
# True
# wherewith:202893:88

(This is using the example data and sentence from the official SymSpell.cs repo)

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