SymSpell icon indicating copy to clipboard operation
SymSpell copied to clipboard

support for trigram dictionaries

Open deshruch opened this issue 1 year ago • 1 comments

Does symspell have support for trigram or n-gram dictionaries? I see only 2 methods: load_dictionary load_bigram_dictionary

deshruch avatar Aug 22 '23 04:08 deshruch

I was trying to get suggestions for "Disco Dance Party"

I have added Disco Dance and Dance Party to my bigram dictionary. The suggester still suggests: suggestions = sym_spell.lookup_compound("disco danc party",max_edit_distance=3) for suggestion in suggestions: print(suggestion)

disco danc party, 0, 0

deshruch avatar Aug 22 '23 04:08 deshruch