Skip to content

Commit d55730c

Browse files
authored
Merge pull request #327 from PyThaiNLP/dev (build and deploy docs)[skip ci]
Update 2.1 branches
2 parents ca27105 + 2a7a7d6 commit d55730c

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ python:
1111
cache:
1212
directories:
1313
- ~/.cache/pip
14-
- ~/nltk_data
14+
# - ~/nltk_data
1515
# - ~/pythainlp-data
1616

1717
before_install:

appveyor.docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ install:
4343
- sudo pip3 install -r requirements.txt
4444
- sudo pip3 install torch==1.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
4545
- sudo pip3 install --upgrade emoji epitran gensim numpy pandas pyicu sklearn-crfsuite ssg
46-
- sudo pip3 install --upgrade "tensorflow>=2,<3"deepcut
46+
- sudo pip3 install --upgrade attacut
47+
- sudo pip3 install --upgrade "tensorflow>=1.14,<2" deepcut
4748
- sudo pip3 install --upgrade boto smart_open sphinx sphinx-rtd-theme
4849

4950
#---------------------------------#

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#---------------------------------#
44

55
skip_commits:
6-
message: /(skip ci)/ # skip if the commit message contains "(skip ci)"
6+
message: /[skip ci]/ # skip if the commit message contains "(skip ci)"
77

88
#---------------------------------#
99
# environment configuration #

pythainlp/tokenize/attacut.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# -*- coding: utf-8 -*
12
"""
23
Wrapper for AttaCut - Fast and Reasonably Accurate Word Tokenizer for Thai
4+
35
:See Also:
46
* `GitHub repository <https://github.com/PyThaiNLP/attacut>`_
57
"""
@@ -9,6 +11,11 @@
911

1012

1113
def segment(text: str) -> List[str]:
14+
"""
15+
Wrapper for AttaCut - Fast and Reasonably Accurate Word Tokenizer for Thai
16+
:param str text: text to be tokenized to words
17+
:return: list of words, tokenized from the text
18+
"""
1219
if not text or not isinstance(text, str):
1320
return []
1421

pythainlp/tokenize/deepcut.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Thai word segmentation library using 1D Convolution Neural Network.
44
55
User need to install deepcut (and its dependency: tensorflow) by themselves.
6+
67
:See Also:
78
* `GitHub repository <https://github.com/rkcosmos/deepcut>`_
89
"""

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# -*- coding: utf-8 -*-
22

33
from setuptools import find_packages, setup
44

@@ -68,7 +68,7 @@
6868

6969
setup(
7070
name="pythainlp",
71-
version="2.1.dev8",
71+
version="2.1",
7272
description="Thai Natural Language Processing library",
7373
long_description=readme,
7474
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)