Skip to content

Commit ed34e2c

Browse files
authored
Merge pull request #236 from PyThaiNLP/fix_bug_2.0_thainer
PyThaiNLP 2.0.6
2 parents 8dbd79a + 721209e commit ed34e2c

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ before_install:
1212

1313
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
1414
install:
15+
- pip install -U numpy
1516
- pip install -r requirements.txt
1617
- pip install .[artagger,icu,ipa,ner,thai2fit,deepcut]
1718
- pip install coveralls

bin/pythainlp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!python3
22
# -*- coding: utf-8 -*-
33

4-
_VERSION = "2.0.5"
4+
_VERSION = "2.0.6"
55

66
import argparse
77

pythainlp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
__version__ = "2.0.5"
3+
__version__ = "2.0.6"
44

55
thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars
66
thai_vowels = "ฤฦะ\u0e31าำ\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39เแโใไ\u0e45\u0e47" # 19

pythainlp/tag/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
# VERB
2525
"VACT": "VERB",
2626
"VSTA": "VERB",
27-
# PRON
28-
"PRON": "PRON",
29-
"NPRP": "PRON",
27+
# PROPN
28+
"PROPN": "PROPN",
29+
"NPRP": "PROPN",
3030
# ADJ
3131
"ADJ": "ADJ",
3232
"NONM": "ADJ",
@@ -41,10 +41,10 @@
4141
# INT
4242
"INT": "INTJ",
4343
# PRON
44-
"PROPN": "PROPN",
45-
"PPRS": "PROPN",
46-
"PDMN": "PROPN",
47-
"PNTR": "PROPN",
44+
"PRON": "PRON",
45+
"PPRS": "PRON",
46+
"PDMN": "PRON",
47+
"PNTR": "PRON",
4848
# DET
4949
"DET": "DET",
5050
"DDAN": "DET",

pythainlp/tag/named_entity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ def __init__(self):
7676
"""
7777
Thai named-entity recognizer
7878
"""
79-
self.__data_path = get_corpus_path("thainer")
79+
self.__data_path = get_corpus_path("thainer-1-2")
8080
if not self.__data_path:
81-
download("thainer")
82-
self.__data_path = get_corpus_path("thainer")
81+
download("thainer-1-2")
82+
self.__data_path = get_corpus_path("thainer-1-2")
8383
self.crf = sklearn_crfsuite.CRF(
8484
algorithm="lbfgs",
8585
c1=0.1,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
setup(
3636
name="pythainlp",
37-
version="2.0.5",
37+
version="2.0.6",
3838
description="Thai Natural Language Processing library",
3939
long_description=readme,
4040
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)