Skip to content

Commit e60380e

Browse files
committed
Add TODO to spell
1 parent 566c874 commit e60380e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pythainlp/spell/pn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ def __init__(
165165
If no filter is required, use None.
166166
"""
167167
if not custom_dict: # default, use Thai National Corpus
168-
custom_dict = tnc.word_freqs()
168+
# TODO: #680 change the dict
169+
custom_dict = [(i,j) for i,j in tnc.word_freqs()]
169170

170171
if not dict_filter:
171172
dict_filter = _no_filter

pythainlp/spell/symspellpy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from symspellpy import SymSpell, Verbosity
2727
from pythainlp.corpus import get_corpus_path
2828
from pythainlp.corpus import path_pythainlp_corpus
29-
from pythainlp.tokenize import word_tokenize
3029

3130
_UNIGRAM = "tnc_freq.txt"
3231
_BIGRAM = "tnc_bigram_word_freqs"

0 commit comments

Comments
 (0)