diff --git a/.travis.yml b/.travis.yml index 75179d4e5..8a0179a59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ before_install: # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors install: + - pip install -U numpy - pip install -r requirements.txt - pip install .[artagger,icu,ipa,ner,thai2fit,deepcut] - pip install coveralls diff --git a/bin/pythainlp b/bin/pythainlp index f57f0c0e9..4e3232293 100644 --- a/bin/pythainlp +++ b/bin/pythainlp @@ -1,7 +1,7 @@ #!python3 # -*- coding: utf-8 -*- -_VERSION = "2.0.5" +_VERSION = "2.0.6" import argparse diff --git a/pythainlp/__init__.py b/pythainlp/__init__.py index 558c4a7d9..ae442c206 100644 --- a/pythainlp/__init__.py +++ b/pythainlp/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -__version__ = "2.0.5" +__version__ = "2.0.6" thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars thai_vowels = "ฤฦะ\u0e31าำ\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39เแโใไ\u0e45\u0e47" # 19 diff --git a/pythainlp/tag/__init__.py b/pythainlp/tag/__init__.py index 6f788aaf0..7cbb66d40 100644 --- a/pythainlp/tag/__init__.py +++ b/pythainlp/tag/__init__.py @@ -24,9 +24,9 @@ # VERB "VACT": "VERB", "VSTA": "VERB", - # PRON - "PRON": "PRON", - "NPRP": "PRON", + # PROPN + "PROPN": "PROPN", + "NPRP": "PROPN", # ADJ "ADJ": "ADJ", "NONM": "ADJ", @@ -41,10 +41,10 @@ # INT "INT": "INTJ", # PRON - "PROPN": "PROPN", - "PPRS": "PROPN", - "PDMN": "PROPN", - "PNTR": "PROPN", + "PRON": "PRON", + "PPRS": "PRON", + "PDMN": "PRON", + "PNTR": "PRON", # DET "DET": "DET", "DDAN": "DET", diff --git a/pythainlp/tag/named_entity.py b/pythainlp/tag/named_entity.py index d500a62b6..f641be7d5 100644 --- a/pythainlp/tag/named_entity.py +++ b/pythainlp/tag/named_entity.py @@ -76,10 +76,10 @@ def __init__(self): """ Thai named-entity recognizer """ - self.__data_path = get_corpus_path("thainer") + self.__data_path = get_corpus_path("thainer-1-2") if not self.__data_path: - download("thainer") - self.__data_path = get_corpus_path("thainer") + download("thainer-1-2") + self.__data_path = get_corpus_path("thainer-1-2") self.crf = sklearn_crfsuite.CRF( algorithm="lbfgs", c1=0.1, diff --git a/setup.py b/setup.py index 0974318be..d4e5e0cbc 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setup( name="pythainlp", - version="2.0.5", + version="2.0.6", description="Thai Natural Language Processing library", long_description=readme, long_description_content_type="text/markdown",