Skip to content

Commit 66373c8

Browse files
authored
Merge pull request #642 from PyThaiNLP/v3.0.0
PyThaiNLP v3.0.0 Released!
2 parents 3c9e62a + df48043 commit 66373c8

File tree

12 files changed

+31
-16
lines changed

12 files changed

+31
-16
lines changed

.github/workflows/macos-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
if [ -f docker_requirements.txt ]; then pip install -r docker_requirements.txt; fi
4848
pip install deepcut
4949
pip install .[full]
50+
python -m nltk.downloader omw-1.4
5051
- name: Test
5152
shell: bash -l {0}
5253
env:

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
if [ -f docker_requirements.txt ]; then pip install -r docker_requirements.txt; fi
3434
pip install deepcut
3535
pip install .[full]
36+
python -m nltk.downloader omw-1.4
3637
- name: Test
3738
env:
3839
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร
1919

2020
**News**
2121

22-
>Since PyThaiNLP 3.0, We will end support PyThaiNLP on Python 3.6. Python 3.6 users can use PyThaiNLP 2.3.1
22+
>Since PyThaiNLP 3.0, We will end support PyThaiNLP on Python 3.6. Python 3.6 users can use PyThaiNLP 2.3.2
2323
2424
| Version | Description | Status |
2525
|:------:|:--:|:------:|
26-
| [2.3.2](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) |
27-
| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 3.0 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545) |
26+
| [3.0](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545) |
27+
| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 3.1 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545) |
2828

2929

3030
## Getting Started
@@ -134,6 +134,10 @@ thainlp help
134134
- Please do fork and create a pull request :)
135135
- For style guide and other information, including references to algorithms we use, please refer to our [contributing](https://github.com/PyThaiNLP/pythainlp/blob/dev/CONTRIBUTING.md) page.
136136

137+
## Who uses PyThaiNLP?
138+
139+
You can read [INTHEWILD.md](https://github.com/PyThaiNLP/pythainlp/blob/dev/INTHEWILD.md).
140+
137141

138142
## Citations
139143

README_TH.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร
2020
2121
| รุ่น | คำอธิบาย | สถานะ |
2222
|:------:|:--:|:------:|
23-
| [2.3.2](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) |
24-
| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 3.0 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545) |
23+
| [3.0](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545 |
24+
| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 3.1 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545) |
2525

2626
ติดตามพวกเราบน [PyThaiNLP Facebook page](https://www.facebook.com/pythainlp/) เพื่อรับข่าวสารเพิ่มเติม
2727

SECURITY.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
| Version | Supported |
66
| ------- | ------------------ |
7+
| 3.0.x | :white_check_mark: |
78
| 2.3.x | :white_check_mark: |
8-
| 2.2.x | :white_check_mark: |
9-
| 2.1.x | :white_check_mark: |
9+
| 2.2.x | :x: |
10+
| 2.1.x | :x: |
1011
| 2.0.x | :x: |
1112
| < 2.0 | :x: |

docs/notes/installation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ where ``extras`` can be
2727
- ``mt5`` (to mt5 models for Thai text summarizer)
2828
- ``wordnet`` (to support wordnet)
2929
- ``spell`` (to support phunspell & symspellpy)
30+
- ``generate`` (to support text generate with umlfit or thai2fit)
3031
- ``tltk`` (to support tltk)
32+
- ``textaugment`` (to support text augmentation)
33+
- ``oskut`` (to support OSKUT)
34+
- ``nlpo3`` (to support nlpo3 enging)
3135
- ``full`` (install everything)
3236

3337
For dependency details, look at `extras` variable in `setup.py <https://github.com/PyThaiNLP/pythainlp/blob/dev/setup.py>`_.

pythainlp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
__version__ = "3.0.0-dev0"
2+
__version__ = "3.0.0"
33

44
thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars
55

pythainlp/util/thai.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,16 @@ def countthai(text: str, ignore_chars: str = _DEFAULT_IGNORE_CHARS) -> float:
9090
9191
from pythainlp.util import countthai
9292
93-
countthai("ไทยเอ็นแอลพี 2.3")
93+
countthai("ไทยเอ็นแอลพี 3.0")
9494
# output: 100.0
9595
96-
countthai("PyThaiNLP 2.3")
96+
countthai("PyThaiNLP 3.0")
9797
# output: 0.0
9898
99-
countthai("ใช้งาน PyThaiNLP 2.3")
99+
countthai("ใช้งาน PyThaiNLP 3.0")
100100
# output: 40.0
101101
102-
countthai("ใช้งาน PyThaiNLP 2.3", ignore_chars="")
102+
countthai("ใช้งาน PyThaiNLP 3.0", ignore_chars="")
103103
# output: 30.0
104104
"""
105105
if not text or not isinstance(text, str):

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 3.0.0-beta0
2+
current_version = 3.0.0
33
commit = True
44
tag = True
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
setup(
107107
name="pythainlp",
108-
version="3.0.0-beta0",
108+
version="3.0.0",
109109
description="Thai Natural Language Processing library",
110110
long_description=readme,
111111
long_description_content_type="text/markdown",
@@ -154,7 +154,7 @@
154154
],
155155
},
156156
project_urls={
157-
"Documentation": "https://pythainlp.github.io/docs/2.3/",
157+
"Documentation": "https://pythainlp.github.io/docs/3.0/",
158158
"Tutorials": "https://pythainlp.github.io/tutorials/",
159159
"Source Code": "https://github.com/PyThaiNLP/pythainlp",
160160
"Bug Tracker": "https://github.com/PyThaiNLP/pythainlp/issues",

0 commit comments

Comments
 (0)