Skip to content

Commit e5ab511

Browse files
authored
Merge pull request #654 from PyThaiNLP/dev
Update 3.0 from dev
2 parents aabb27c + e9b8962 commit e5ab511

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

docker_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fairseq==0.10.2
2323
pyicu==2.8
2424
deepcut==0.7.0.0
2525
h5py==3.1.0
26-
tensorflow==2.5.2
26+
tensorflow==2.5.3
2727
pandas==0.24
2828
tltk==1.3.8
2929
OSKut==1.3

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.3"
2+
__version__ = "3.0.5"
33

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

pythainlp/tag/named_entity.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"""
55
import warnings
66
from typing import List, Tuple, Union
7-
from pythainlp.tag.thainer import ThaiNameTagger
87

98

109
class NER:

pythainlp/tokenize/nercut.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
nercut 0.1
3+
nercut 0.2
44
55
Dictionary-based maximal matching word segmentation, constrained with
66
Thai Character Cluster (TCC) boundaries, and combining tokens that are
@@ -10,9 +10,9 @@
1010
"""
1111
from typing import Iterable, List
1212

13-
from pythainlp.tag.named_entity import ThaiNameTagger
13+
from pythainlp.tag.named_entity import NER
1414

15-
_thainer = ThaiNameTagger()
15+
_thainer = NER(engine="thainer")
1616

1717

1818
def segment(
@@ -39,7 +39,7 @@ def segment(
3939
return []
4040

4141
global _thainer
42-
tagged_words = _thainer.get_ner(text, pos=False)
42+
tagged_words = _thainer.tag(text, pos=False)
4343

4444
words = []
4545
combining_word = ""

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.3
2+
current_version = 3.0.5
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

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

0 commit comments

Comments
 (0)