Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/pythainlp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!python3
# -*- coding: utf-8 -*-

_VERSION = "2.0.5"
_VERSION = "2.0.6"

import argparse

Expand Down
2 changes: 1 addition & 1 deletion pythainlp/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 7 additions & 7 deletions pythainlp/tag/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# VERB
"VACT": "VERB",
"VSTA": "VERB",
# PRON
"PRON": "PRON",
"NPRP": "PRON",
# PROPN
"PROPN": "PROPN",
"NPRP": "PROPN",
# ADJ
"ADJ": "ADJ",
"NONM": "ADJ",
Expand All @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions pythainlp/tag/named_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down