Skip to content

Commit 7671f0e

Browse files
committed
Update version number to 2.0.4
1 parent eaedee2 commit 7671f0e

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

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.3](https://github.com/PyThaiNLP/pythainlp/tree/master)
19+
- The latest stable release is [2.0.4](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.3](https://github.com/PyThaiNLP/pythainlp/tree/master)
109+
- รุ่นเสถียรล่าสุดคือรุ่น [2.0.4](https://github.com/PyThaiNLP/pythainlp/tree/master)
110110
- PyThaiNLP 2 รองรับ Python 3.6 ขึ้นไป
111111
- ผู้ใช้ Python 2.7+ ยังสามารถใช้ PyThaiNLP 1.6 ได้
112112

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

66
import argparse
77

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.3" %}
1+
{% set version = "2.0.4" %}
22

33
package:
44
name: pythainlp

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.3" %}
1+
{% set version = "2.0.4" %}
22

33
package:
44
name: pythainlp

pythainlp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
__version__ = "2.0.3"
3+
__version__ = "2.0.4"
44

55
thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars
66
thai_vowels = "ฤฦะ\u0e31าำ\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39เแโใไ\u0e45\u0e47" # 19

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 = 2.0.3
2+
current_version = 2.0.4
33
commit = True
44
tag = True
55

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
setup(
3636
name="pythainlp",
37-
version="2.0.3",
37+
version="2.0.4",
3838
description="Thai Natural Language Processing library",
3939
long_description=readme,
4040
long_description_content_type="text/markdown",

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ def test_word_tokenize_deepcut(self):
357357
def test_word_tokenize_longest(self):
358358
self.assertEqual(longest.segment(None), [])
359359
self.assertEqual(longest.segment(""), [])
360+
self.assertIsNotNone(longest.segment("กรุงเทพฯมากๆเพราโพาง BKKฯ"))
360361
self.assertEqual(
361362
word_tokenize("ฉันรักภาษาไทยเพราะฉันเป็นคนไทย", engine="longest"),
362363
["ฉัน", "รัก", "ภาษาไทย", "เพราะ", "ฉัน", "เป็น", "คนไทย"],

0 commit comments

Comments
 (0)