Skip to content

Commit 16d4f2b

Browse files
authored
Merge pull request #548 from PyThaiNLP/dev
PyThaiNLP v2.3.1
2 parents cb81a2f + 449e9b0 commit 16d4f2b

File tree

8 files changed

+10
-12
lines changed

8 files changed

+10
-12
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Unit test and code coverage
22

33
on:
44
push:
5-
branches:
6-
- dev
75
paths-ignore:
86
- '**.md'
97
- 'docs/**'

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ Make sure the same tests pass on Travis CI and AppVeyor.
108108
#current_version = 2.3.6-dev0
109109
110110
bumpversion minor
111-
#current_version = 2.3.0-dev0
111+
#current_version = 2.3.1-dev0
112112
113113
bumpversion build
114-
#current_version = 2.3.0-dev1
114+
#current_version = 2.3.1-dev1
115115
116116
bumpversion major
117117
#current_version = 3.0.0-dev0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร
2323

2424
| Version | Description | Status |
2525
|:------:|:--:|:------:|
26-
| [2.3.0](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 2.4 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) |
26+
| [2.3.1](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 2.4 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545) |
2828

2929

3030
## Getting Started

README_TH.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร
2222

2323
| รุ่น | คำอธิบาย | สถานะ |
2424
|:------:|:--:|:------:|
25-
| [2.3.0](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) |
26-
| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 2.4 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) |
25+
| [2.3.1](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) |
26+
| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 2.4 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545) |
2727

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

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__ = "2.3.0"
2+
__version__ = "2.3.1"
33

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

pythainlp/word_vector/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def sentence_vectorizer(text: str, use_mean: bool = True) -> ndarray:
257257
elif word == "\n":
258258
word = _TK_EOL
259259

260-
if word in _MODEL.index2word:
260+
if word in _MODEL.index_to_key:
261261
vec += _MODEL.word_vec(word)
262262

263263
if use_mean:

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.3.0
2+
current_version = 2.3.1
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
@@ -79,7 +79,7 @@
7979

8080
setup(
8181
name="pythainlp",
82-
version="2.3.0",
82+
version="2.3.1",
8383
description="Thai Natural Language Processing library",
8484
long_description=readme,
8585
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)