Skip to content

Commit

Permalink
PyThaiNLP v3.0.3
Browse files Browse the repository at this point in the history
- Fixed  TypeError in pythainlp.spell.symspellpy #650
  • Loading branch information
wannaphong committed Feb 9, 2022
1 parent 07568bb commit b403435
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pythainlp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
__version__ = "3.0.2"
__version__ = "3.0.3"

thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars

Expand Down
2 changes: 1 addition & 1 deletion pythainlp/spell/symspellpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
))
]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.0.2
current_version = 3.0.3
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit b403435

Please sign in to comment.