From 338d5b45c90782219feee6783302adacea4477ce Mon Sep 17 00:00:00 2001 From: Wannaphong Phatthiyaphaibun Date: Sat, 3 Apr 2021 03:22:14 +0700 Subject: [PATCH 1/7] Update Change Log --- README.md | 2 +- README_TH.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dfac9774e..c016c26d3 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร | Version | Description | Status | |:------:|:--:|:------:| | [2.3.0](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) | -| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 2.4 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) | +| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 2.4 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545) | ## Getting Started diff --git a/README_TH.md b/README_TH.md index e7a4761fe..fbf600a5c 100644 --- a/README_TH.md +++ b/README_TH.md @@ -23,7 +23,7 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร | รุ่น | คำอธิบาย | สถานะ | |:------:|:--:|:------:| | [2.3.0](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) | -| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 2.4 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) | +| [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 2.4 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545) | ติดตามพวกเราบน [PyThaiNLP Facebook page](https://www.facebook.com/pythainlp/) เพื่อรับข่าวสารเพิ่มเติม From 79563a80119d2b0e7f4c3492a7276c9c8b92fa3d Mon Sep 17 00:00:00 2001 From: Wannaphong Phatthiyaphaibun Date: Sat, 3 Apr 2021 07:04:56 +0700 Subject: [PATCH 2/7] Change gensim api for thai2fit word2vec --- pythainlp/word_vector/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythainlp/word_vector/core.py b/pythainlp/word_vector/core.py index 67ef0f4d2..14898c817 100644 --- a/pythainlp/word_vector/core.py +++ b/pythainlp/word_vector/core.py @@ -257,7 +257,7 @@ def sentence_vectorizer(text: str, use_mean: bool = True) -> ndarray: elif word == "\n": word = _TK_EOL - if word in _MODEL.index2word: + if word in _MODEL.index_to_key: vec += _MODEL.word_vec(word) if use_mean: From d8fff27cc7483b52414fcf632dd9b309d9f7b21d Mon Sep 17 00:00:00 2001 From: Wannaphong Phatthiyaphaibun Date: Sat, 3 Apr 2021 19:17:14 +0700 Subject: [PATCH 3/7] Update test.yml --- .github/workflows/test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 17fcafcc8..cc7e55cfe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,8 +2,6 @@ name: Unit test and code coverage on: push: - branches: - - dev paths-ignore: - '**.md' - 'docs/**' From 14a7583642bf3c0dc7e57394addfa55e2513b2e9 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 3 Apr 2021 15:31:56 +0700 Subject: [PATCH 4/7] =?UTF-8?q?Bump=20version:=202.3.0=20=E2=86=92=202.3.1?= =?UTF-8?q?-dev0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pythainlp/__init__.py | 2 +- setup.cfg | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pythainlp/__init__.py b/pythainlp/__init__.py index 2a469d7e4..aa900fd44 100644 --- a/pythainlp/__init__.py +++ b/pythainlp/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -__version__ = "2.3.0" +__version__ = "2.3.1-dev0" thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars diff --git a/setup.cfg b/setup.cfg index 2cb9f7c28..086ece99c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.3.0 +current_version = 2.3.1-dev0 commit = True tag = True parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\-(?P[a-z]+)(?P\d+))? diff --git a/setup.py b/setup.py index 59eab3c16..4ecb1be60 100644 --- a/setup.py +++ b/setup.py @@ -79,7 +79,7 @@ setup( name="pythainlp", - version="2.3.0", + version="2.3.1-dev0", description="Thai Natural Language Processing library", long_description=readme, long_description_content_type="text/markdown", From a3074b743e23fa66b7e4141fb794f3a817e4f0f5 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 3 Apr 2021 21:12:33 +0700 Subject: [PATCH 5/7] =?UTF-8?q?Bump=20version:=202.3.1-dev0=20=E2=86=92=20?= =?UTF-8?q?2.3.1-beta0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pythainlp/__init__.py | 2 +- setup.cfg | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pythainlp/__init__.py b/pythainlp/__init__.py index aa900fd44..a926f858a 100644 --- a/pythainlp/__init__.py +++ b/pythainlp/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -__version__ = "2.3.1-dev0" +__version__ = "2.3.1-beta0" thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars diff --git a/setup.cfg b/setup.cfg index 086ece99c..99c887417 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.3.1-dev0 +current_version = 2.3.1-beta0 commit = True tag = True parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\-(?P[a-z]+)(?P\d+))? diff --git a/setup.py b/setup.py index 4ecb1be60..65bdc1ebe 100644 --- a/setup.py +++ b/setup.py @@ -79,7 +79,7 @@ setup( name="pythainlp", - version="2.3.1-dev0", + version="2.3.1-beta0", description="Thai Natural Language Processing library", long_description=readme, long_description_content_type="text/markdown", From 32df01b94e736014e173bd4b92923fdbd98889fc Mon Sep 17 00:00:00 2001 From: root Date: Sat, 3 Apr 2021 21:12:51 +0700 Subject: [PATCH 6/7] =?UTF-8?q?Bump=20version:=202.3.1-beta0=20=E2=86=92?= =?UTF-8?q?=202.3.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pythainlp/__init__.py | 2 +- setup.cfg | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pythainlp/__init__.py b/pythainlp/__init__.py index a926f858a..006d48d03 100644 --- a/pythainlp/__init__.py +++ b/pythainlp/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -__version__ = "2.3.1-beta0" +__version__ = "2.3.1" thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars diff --git a/setup.cfg b/setup.cfg index 99c887417..a5d93ca4b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.3.1-beta0 +current_version = 2.3.1 commit = True tag = True parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\-(?P[a-z]+)(?P\d+))? diff --git a/setup.py b/setup.py index 65bdc1ebe..d1d9d3336 100644 --- a/setup.py +++ b/setup.py @@ -79,7 +79,7 @@ setup( name="pythainlp", - version="2.3.1-beta0", + version="2.3.1", description="Thai Natural Language Processing library", long_description=readme, long_description_content_type="text/markdown", From 449e9b0205e5e8ab0217099e5a80f33c0b59e77d Mon Sep 17 00:00:00 2001 From: Wannaphong Phatthiyaphaibun Date: Mon, 5 Apr 2021 00:25:32 +0700 Subject: [PATCH 7/7] PyThaiNLP v2.3.1 - Fixed gensim #546 --- CONTRIBUTING.md | 4 ++-- README.md | 2 +- README_TH.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 693f73400..fa384edd0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -108,10 +108,10 @@ Make sure the same tests pass on Travis CI and AppVeyor. #current_version = 2.3.6-dev0 bumpversion minor - #current_version = 2.3.0-dev0 + #current_version = 2.3.1-dev0 bumpversion build - #current_version = 2.3.0-dev1 + #current_version = 2.3.1-dev1 bumpversion major #current_version = 3.0.0-dev0 diff --git a/README.md b/README.md index c016c26d3..fa54ac344 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร | Version | Description | Status | |:------:|:--:|:------:| -| [2.3.0](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) | +| [2.3.1](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) | | [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 2.4 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545) | diff --git a/README_TH.md b/README_TH.md index fbf600a5c..facc5d699 100644 --- a/README_TH.md +++ b/README_TH.md @@ -22,7 +22,7 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร | รุ่น | คำอธิบาย | สถานะ | |:------:|:--:|:------:| -| [2.3.0](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) | +| [2.3.1](https://github.com/PyThaiNLP/pythainlp/releases) | Stable | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/445) | | [`dev`](https://github.com/PyThaiNLP/pythainlp/tree/dev) | Release Candidate for 2.4 | [Change Log](https://github.com/PyThaiNLP/pythainlp/issues/545) | ติดตามพวกเราบน [PyThaiNLP Facebook page](https://www.facebook.com/pythainlp/) เพื่อรับข่าวสารเพิ่มเติม