We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566c874 commit e60380eCopy full SHA for e60380e
pythainlp/spell/pn.py
@@ -165,7 +165,8 @@ def __init__(
165
If no filter is required, use None.
166
"""
167
if not custom_dict: # default, use Thai National Corpus
168
- custom_dict = tnc.word_freqs()
+ # TODO: #680 change the dict
169
+ custom_dict = [(i,j) for i,j in tnc.word_freqs()]
170
171
if not dict_filter:
172
dict_filter = _no_filter
pythainlp/spell/symspellpy.py
@@ -26,7 +26,6 @@
26
from symspellpy import SymSpell, Verbosity
27
from pythainlp.corpus import get_corpus_path
28
from pythainlp.corpus import path_pythainlp_corpus
29
-from pythainlp.tokenize import word_tokenize
30
31
_UNIGRAM = "tnc_freq.txt"
32
_BIGRAM = "tnc_bigram_word_freqs"
0 commit comments