Skip to content

Commit b403435

Browse files
committed
PyThaiNLP v3.0.3
- Fixed TypeError in pythainlp.spell.symspellpy #650
1 parent 07568bb commit b403435

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docker_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fastai==1.0.61
1616
transformers==4.8.2
1717
phunspell==0.1.6
1818
spylls==0.1.5
19-
symspellpy==6.7.0
19+
symspellpy==6.7.6
2020
bpemb==0.3.2
2121
sefr_cut==1.1
2222
fairseq==0.10.2

pythainlp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
__version__ = "3.0.2"
2+
__version__ = "3.0.3"
33

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

pythainlp/spell/symspellpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def spell_sent(list_words: List[str], max_edit_distance: int = 2) -> List[str]:
5353
_temp = [str(i).split(',')[0].split(' ') for i in list(
5454
sym_spell.lookup_compound(
5555
' '.join(list_words),
56-
split_phrase_by_space=True,
56+
split_by_space=True,
5757
max_edit_distance=max_edit_distance
5858
))
5959
]

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 3.0.2
2+
current_version = 3.0.3
33
commit = True
44
tag = True
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"spell": [
7171
"phunspell>=0.1.6",
7272
"spylls>=0.1.5",
73-
"symspellpy>=6.7.0"
73+
"symspellpy>=6.7.6"
7474
],
7575
"tltk": ["tltk>=1.3.8"],
7676
"oskut": ["oskut>=1.3"],
@@ -96,7 +96,7 @@
9696
"sefr_cut>=1.1",
9797
"phunspell>=0.1.6",
9898
"spylls>=0.1.5",
99-
"symspellpy>=6.7.0",
99+
"symspellpy>=6.7.6",
100100
"tltk>=1.3.8",
101101
"oskut>=1.3",
102102
"nlpo3>=1.2.2",
@@ -105,7 +105,7 @@
105105

106106
setup(
107107
name="pythainlp",
108-
version="3.0.2",
108+
version="3.0.3",
109109
description="Thai Natural Language Processing library",
110110
long_description=readme,
111111
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)