Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for trigram dictionaries #135

Open
deshruch opened this issue Aug 22, 2023 · 1 comment
Open

support for trigram dictionaries #135

deshruch opened this issue Aug 22, 2023 · 1 comment

Comments

@deshruch
Copy link

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

@deshruch
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant