diff --git a/docker_requirements.txt b/docker_requirements.txt index 3dc7af023..d035c9347 100644 --- a/docker_requirements.txt +++ b/docker_requirements.txt @@ -16,7 +16,7 @@ fastai==1.0.61 transformers==4.8.2 phunspell==0.1.6 spylls==0.1.5 -symspellpy==6.7.0 +symspellpy==6.7.6 bpemb==0.3.2 sefr_cut==1.1 fairseq==0.10.2 diff --git a/pythainlp/__init__.py b/pythainlp/__init__.py index d2e09c1a1..88f92a6dd 100644 --- a/pythainlp/__init__.py +++ b/pythainlp/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -__version__ = "3.0.2" +__version__ = "3.0.3" thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars diff --git a/pythainlp/spell/symspellpy.py b/pythainlp/spell/symspellpy.py index 3c9ec7137..01b147fce 100644 --- a/pythainlp/spell/symspellpy.py +++ b/pythainlp/spell/symspellpy.py @@ -53,7 +53,7 @@ def spell_sent(list_words: List[str], max_edit_distance: int = 2) -> List[str]: _temp = [str(i).split(',')[0].split(' ') for i in list( sym_spell.lookup_compound( ' '.join(list_words), - split_phrase_by_space=True, + split_by_space=True, max_edit_distance=max_edit_distance )) ] diff --git a/setup.cfg b/setup.cfg index d19dfe296..8ac8a6e93 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.0.2 +current_version = 3.0.3 commit = True tag = True parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\-(?P[a-z]+)(?P\d+))? diff --git a/setup.py b/setup.py index ed41359c2..c3bab817b 100644 --- a/setup.py +++ b/setup.py @@ -70,7 +70,7 @@ "spell": [ "phunspell>=0.1.6", "spylls>=0.1.5", - "symspellpy>=6.7.0" + "symspellpy>=6.7.6" ], "tltk": ["tltk>=1.3.8"], "oskut": ["oskut>=1.3"], @@ -96,7 +96,7 @@ "sefr_cut>=1.1", "phunspell>=0.1.6", "spylls>=0.1.5", - "symspellpy>=6.7.0", + "symspellpy>=6.7.6", "tltk>=1.3.8", "oskut>=1.3", "nlpo3>=1.2.2", @@ -105,7 +105,7 @@ setup( name="pythainlp", - version="3.0.2", + version="3.0.3", description="Thai Natural Language Processing library", long_description=readme, long_description_content_type="text/markdown",