Skip to content

Commit 8dbd79a

Browse files
authored
Merge pull request #220 from PyThaiNLP/dev
Merge from 2.0.5 release
2 parents 7c78092 + a5bf6b4 commit 8dbd79a

35 files changed

+70870
-98271
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ Happy hacking! (;
6060
## Docs
6161
- Peeradej Tanruangporn
6262

63+
## Maintainers
64+
- Arthit Suriyawongkul
65+
6366
## Contributors
6467
- See more contributions here https://github.com/PyThaiNLP/pythainlp/graphs/contributors
6568

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PyThaiNLP is a Python package for text processing and linguistic analysis, simil
1616

1717
**This is a document for development branch (post 2.0). Things will break.**
1818

19-
- The latest stable release is [2.0.4](https://github.com/PyThaiNLP/pythainlp/tree/master)
19+
- The latest stable release is [2.0.5](https://github.com/PyThaiNLP/pythainlp/tree/master)
2020
- PyThaiNLP 2 supports Python 3.6+. Some functions may work with older version of Python 3, but it is not well-tested and will not be supported. See [change log](https://github.com/PyThaiNLP/pythainlp/issues/118).
2121
- [Upgrading from 1.7](https://thainlp.org/pythainlp/docs/2.0/notes/pythainlp-1_7-2_0.html)
2222
- [Upgrade ThaiNER from 1.7](https://github.com/PyThaiNLP/pythainlp/wiki/Upgrade-ThaiNER-from-PyThaiNLP-1.7-to-PyThaiNLP-2.0)
@@ -106,7 +106,7 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนเพื่
106106
107107
**เอกสารนี้สำหรับรุ่นพัฒนา อาจมีการเปลี่ยนแปลงได้ตลอด**
108108

109-
- รุ่นเสถียรล่าสุดคือรุ่น [2.0.4](https://github.com/PyThaiNLP/pythainlp/tree/master)
109+
- รุ่นเสถียรล่าสุดคือรุ่น [2.0.5](https://github.com/PyThaiNLP/pythainlp/tree/master)
110110
- PyThaiNLP 2 รองรับ Python 3.6 ขึ้นไป
111111
- ผู้ใช้ Python 2.7+ ยังสามารถใช้ PyThaiNLP 1.6 ได้
112112

appveyor.yml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,50 @@
1+
# Use unofficial Windows Binaries for Python Extension Packages from
2+
# https://www.lfd.uci.edu/~gohlke/pythonlibs/
3+
14
build: off
25

36
environment:
47
matrix:
8+
# - PYTHON: "C:/Python36"
9+
# PYTHON_VERSION: "3.6"
10+
# PYTHON_ARCH: "32"
11+
# ARTAGGER_PKG: "https://github.com/wannaphongcom/artagger/tarball/master#egg=artagger"
12+
# PYICU_PKG: "https://www.dropbox.com/s/pahorbq29y9cura/PyICU-2.3.1-cp36-cp36m-win32.whl?dl=1"
13+
514
- PYTHON: "C:/Python36-x64"
615
PYTHON_VERSION: "3.6"
716
PYTHON_ARCH: "64"
817
ARTAGGER_PKG: "https://github.com/wannaphongcom/artagger/tarball/master#egg=artagger"
18+
PYICU_PKG: "https://www.dropbox.com/s/7t0rrxwckqbgivi/PyICU-2.3.1-cp36-cp36m-win_amd64.whl?dl=1"
919

10-
#- PYTHON: "C:/Python36-x64"
11-
# PYTHON_VERSION: "3.6"
12-
# PYTHON_ARCH: "64"
13-
# PYICU_PKG: ""
14-
15-
#- PYTHON: "C:/Python37"
16-
# PYTHON_VERSION: "3.7"
17-
# PYTHON_ARCH: "32"
18-
# PYICU_PKG: ""
20+
# - PYTHON: "C:/Python37"
21+
# PYTHON_VERSION: "3.7"
22+
# PYTHON_ARCH: "32"
23+
# ARTAGGER_PKG: "https://github.com/wannaphongcom/artagger/tarball/master#egg=artagger"
24+
# PYICU_PKG: "https://www.dropbox.com/s/3xwdnwhdcu619x4/PyICU-2.3.1-cp37-cp37m-win32.whl?dl=1"
1925

20-
#- PYTHON: "C:/Python37-x64"
21-
# PYTHON_VERSION: "3.7"
22-
# PYTHON_ARCH: "64"
23-
# PYICU_PKG: ""
26+
- PYTHON: "C:/Python37-x64"
27+
PYTHON_VERSION: "3.7"
28+
PYTHON_ARCH: "64"
29+
ARTAGGER_PKG: "https://github.com/wannaphongcom/artagger/tarball/master#egg=artagger"
30+
PYICU_PKG: "https://www.dropbox.com/s/le5dckc3231opqt/PyICU-2.3.1-cp37-cp37m-win_amd64.whl?dl=1"
2431

2532
init:
2633
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
27-
- ps: "ls C:/Python*"
34+
# - ps: "ls C:/Python*"
2835

2936
install:
3037
- "chcp 65001"
3138
- "set PYTHONIOENCODING=utf-8"
39+
- "%PYTHON%/python.exe --version"
3240
# - "set ICU_VERSION=62"
3341
- "%PYTHON%/python.exe -m pip install --upgrade pip"
34-
- "%PYTHON%/python.exe -m pip install https://www.dropbox.com/s/g84479l8yhv5ohi/PyICU-2.2-cp36-cp36m-win_amd64.whl?dl=1"
42+
- "%PYTHON%/python.exe -m pip install coveralls[yaml]"
43+
- "%PYTHON%/python.exe -m pip install coverage"
44+
- "%PYTHON%/python.exe -m pip install %PYICU_PKG%"
3545
- "%PYTHON%/python.exe -m pip install %ARTAGGER_PKG%"
3646
- "%PYTHON%/python.exe -m pip install -e .[artagger,icu,ipa,ner,thai2fit,deepcut]"
3747

3848
test_script:
3949
- "%PYTHON%/python.exe -m pip --version"
40-
- "%PYTHON%/python.exe setup.py test"
50+
- "%PYTHON%/python.exe -m coverage run --source=pythainlp setup.py test"

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.4"
4+
_VERSION = "2.0.5"
55

66
import argparse
77

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
cd $RECIPE_DIR/..
1+
#!/bin/bash
2+
cd "$RECIPE_DIR"/.. || exit
23
$PYTHON setup.py install --single-version-externally-managed --record=record.txt

conda.recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set version = "2.0.4" %}
1+
{% set version = "2.0.5" %}
22

33
package:
44
name: pythainlp

docs/api/spell.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ The :class:`pythainlp.spell` finds the closest correctly spelled word to the giv
77
Modules
88
-------
99

10-
.. autofunction:: spell
1110
.. autofunction:: correct
11+
.. autofunction:: spell
12+
.. autoclass:: NorvigSpellChecker
13+
:members:
14+
.. autodata:: DEFAULT_SPELL_CHECKER
15+
:annotation: = Default instance of standard NorvigSpellChecker, using word list from Thai National Corpus

docs/api/tokenize.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,16 @@ Modules
1414
.. autofunction:: subword_tokenize
1515
.. autofunction:: dict_trie
1616
.. autoclass:: Tokenizer
17-
:members: word_tokenize, set_tokenize_engine
17+
:members:
18+
19+
NEWMM
20+
-----
21+
.. autofunction:: pythainlp.tokenize.newmm.segment
22+
23+
TCC
24+
---
25+
Thai Character Cluster
26+
27+
.. autofunction:: pythainlp.tokenize.tcc.segment
28+
.. autofunction:: pythainlp.tokenize.tcc.tcc
29+
.. autofunction:: pythainlp.tokenize.tcc.tcc_pos

meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set version = "2.0.4" %}
1+
{% set version = "2.0.5" %}
22

33
package:
44
name: pythainlp

0 commit comments

Comments
 (0)