How to add a frequency file/dictionary file
How to use this package? How to add the dictionary/frequency file like here: https://github.com/wolfgarbe/SymSpell ? Thanks.
symspell::SymSpell symSpell; char* corpus = (char*)"/full/patht/to/frequency_dictionary_en_82_765.txt"; symSpell.LoadDictionary(corpus, 0, 1);
// LoadDictionary() returns a bool, so you can check if the file is loaded.
BTW, I try to load dictionary using your method..But it always displays freq_count as zero.. can u help?? Thanks in advance..
symspell::SymSpell symSpell; char* corpus = (char*)"/full/patht/to/frequency_dictionary_en_82_765.txt"; symSpell.LoadDictionary(corpus, 0, 1);
// LoadDictionary() returns a bool, so you can check if the file is loaded.
Some explanation is here: https://stackoverflow.com/questions/56394962/wordsegmentation-in-symspellplusplus/56395677#56395677 Our team decided to use Python version with help of Python/C API: https://docs.python.org/3/c-api/