Skip to content

Commit d88d971

Browse files
authored
Merge pull request #1079 from PyThaiNLP/5.1
PyThaiNLP v5.1.0 Released!
2 parents d274093 + b2b6da9 commit d88d971

File tree

12 files changed

+24
-48
lines changed

12 files changed

+24
-48
lines changed

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,24 @@ Notable changes between versions.
1111
- For full release notes, see:
1212
<https://github.com/PyThaiNLP/pythainlp/releases>
1313
- For detailed commit changes, see:
14-
<https://github.com/PyThaiNLP/pythainlp/compare/v5.0.4...dev> (select tags to compare)
14+
<https://github.com/PyThaiNLP/pythainlp/compare/v5.1.0...dev> (select tags to compare)
1515

16-
## Version 5.0.5 -> Dev
16+
## Version 5.1.0 -> Dev
17+
18+
[WIP]
19+
20+
## Version 5.0.5 -> 5.1.0
1721

1822
- Add Thai Discourse Treebank postag #910
1923
- Add Thai Universal Dependency Treebank postag #916
2024
- Add Thai G2P v2 Grapheme-to-Phoneme model #923
2125
- Add support for list of strings as input to sent_tokenize() #927
2226
- Add pythainlp.tools.safe_print to handle UnicodeEncodeError on console #969
2327
- Fix collate() to consider tonemark in ordering #926
28+
- Fix nlpo3.load_dict() that never print error msg when not success #979
29+
- Add Thai Solar Date convert to Thai Lunar Date #998
30+
- Add Thai pangram text #1045
31+
- Remove clause_tokenize #1024
2432

2533
## Version 5.0.4 -> 5.0.5
2634

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ keywords:
4545
- "Thai language"
4646
- "Thai NLP"
4747
license: Apache-2.0
48-
version: 5.1.0-beta2
49-
date-released: "2025-02-09"
48+
version: 5.1.0
49+
date-released: "2025-02-25"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ pip install pythainlp
3030
3131
| Version | Description | Status |
3232
|:------:|:--:|:------:|
33-
| [5.0.5](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/788) |
34-
| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 5.1 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/900) |
33+
| [5.1.0](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/900) |
34+
| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 5.2 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/1080) |
3535

3636
## Getting Started
3737

README_TH.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ pip install pythainlp
2626
2727
| รุ่น | คำอธิบาย | สถานะ |
2828
|:------:|:--:|:------:|
29-
| [5.0.5](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/788) |
30-
| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 5.1 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/900) |
29+
| [5.1.0](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/900) |
30+
| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 5.2 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/1080) |
3131

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

SECURITY.md

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

55
| Version | Supported |
66
| ------- | ------------------ |
7+
| 5.1.x | :white_check_mark: |
78
| 5.0.x | :white_check_mark: |
8-
| 4.0.x | :white_check_mark: |
9+
| 4.0.x | :x: |
910
| 3.1.x | :x: |
1011
| 3.0.x | :x: |
1112
| 2.3.x | :x: |

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"@type": "SoftwareSourceCode",
44
"name": "PyThaiNLP",
55
"description": "Thai Natural Language Processing in Python",
6-
"version": "5.1.0-beta2",
6+
"version": "5.1.0",
77
"author": [
88
{
99
"@type": "Person",

docs/api/augment.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ Introduction
88

99
The `pythainlp.augment` module is a powerful toolset for text augmentation in the Thai language. Text augmentation is a process that enriches and diversifies textual data by generating alternative versions of the original text. This module is a valuable resource for improving the quality and variety of Thai language data for NLP tasks.
1010

11-
TextAugment Class
12-
-----------------
13-
14-
The central component of the `pythainlp.augment` module is the `TextAugment` class. This class provides various text augmentation techniques and functions to enhance the diversity of your text data. It offers the following methods:
15-
16-
.. autoclass:: pythainlp.augment.TextAugment
17-
:members:
1811

1912
WordNetAug Class
2013
----------------

docs/api/transliterate.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@ Transliteration Engines
3737

3838
**thai2rom**
3939

40-
.. automodule:: pythainlp.transliterate.thai2rom.romanize
41-
:members:
40+
.. autofunction:: pythainlp.transliterate.thai2rom.romanize
4241

4342
The `thai2rom` engine specializes in transliterating Thai text into romanized form. It's particularly useful for rendering Thai words accurately in an English phonetic format.
4443

4544
**royin**
4645

47-
.. automodule:: pythainlp.transliterate.royin.romanize
48-
:members:
46+
.. autofunction:: pythainlp.transliterate.royin.romanize
4947

5048
The `royin` engine focuses on transliterating Thai text into English characters. It provides an alternative approach to transliteration, ensuring accurate representation of Thai words.
5149

docs/api/word_vector.rst

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,6 @@ Before using this module, you need to ensure that the `numpy` and `gensim` libra
1313

1414
Modules
1515
-------
16-
.. autofunction:: doesnt_match
17-
:noindex:
18-
19-
The `doesnt_match` function is designed to identify the word that does not match a set of words in terms of semantic similarity. It is useful for tasks like word sense disambiguation.
20-
21-
.. autofunction:: get_model
22-
:noindex:
23-
24-
The `get_model` function allows you to load a pre-trained word vector model, which can then be used for various word vector operations. This function serves as the entry point for accessing pre-trained word vectors.
25-
26-
.. autofunction:: most_similar_cosmul
27-
:noindex:
28-
29-
The `most_similar_cosmul` function finds words that are most similar to a given word in terms of cosine similarity. This function is useful for word analogy tasks and word similarity measurement.
30-
31-
.. autofunction:: sentence_vectorizer
32-
:noindex:
33-
34-
The `sentence_vectorizer` function takes a sentence as input and returns a vector representation of the entire sentence based on word vectors. This is valuable for document similarity and text classification tasks.
35-
36-
.. autofunction:: similarity
37-
:noindex:
38-
39-
The `similarity` function calculates the cosine similarity between two words based on their word vectors. It helps in measuring the semantic similarity between words.
4016

4117
.. autoclass:: WordVector
4218
:members:

pythainlp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-FileCopyrightText: 2016-2025 PyThaiNLP Project
33
# SPDX-FileType: SOURCE
44
# SPDX-License-Identifier: Apache-2.0
5-
__version__ = "5.1.0-beta2"
5+
__version__ = "5.1.0"
66

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

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 = 5.1.0-beta2
2+
current_version = 5.1.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150

151151
setup(
152152
name="pythainlp",
153-
version="5.1.0-beta2",
153+
version="5.1.0",
154154
description="Thai Natural Language Processing library",
155155
long_description=LONG_DESC,
156156
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)