Skip to content

Commit

Permalink
Add TODO to spell
Browse files Browse the repository at this point in the history
  • Loading branch information
wannaphong committed Jun 21, 2023
1 parent 566c874 commit e60380e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pythainlp/spell/pn.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def __init__(
If no filter is required, use None.
"""
if not custom_dict: # default, use Thai National Corpus
custom_dict = tnc.word_freqs()
# TODO: #680 change the dict
custom_dict = [(i,j) for i,j in tnc.word_freqs()]

if not dict_filter:
dict_filter = _no_filter
Expand Down
1 change: 0 additions & 1 deletion pythainlp/spell/symspellpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from symspellpy import SymSpell, Verbosity
from pythainlp.corpus import get_corpus_path
from pythainlp.corpus import path_pythainlp_corpus
from pythainlp.tokenize import word_tokenize

_UNIGRAM = "tnc_freq.txt"
_BIGRAM = "tnc_bigram_word_freqs"
Expand Down

0 comments on commit e60380e

Please sign in to comment.