Skip to content

Commit 13635c7

Browse files
authored
Merge pull request #630 from stephenhky/develop
Release 4.0.2
2 parents da667e9 + 67ca69a commit 13635c7

5 files changed

Lines changed: 11 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ You can talk to me in advance through e-mails or the [Issues](https://github.com
8080

8181
## News
8282

83+
* 05/18/2026: `shorttext` 4.0.2 released.
8384
* 05/14/2026: `shorttext` 4.0.1 released.
8485
* 04/19/2026: `shorttext` 4.0.0 released.
8586
* 03/22/2026: `shorttext` 3.1.1 released.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
# The short X.Y version.
6262
version = u'4.0'
6363
# The full version, including alpha/beta/rc tags.
64-
release = u'4.0.1'
64+
release = u'4.0.2'
6565

6666
# The language for content autogenerated by Sphinx. Refer to documentation
6767
# for a list of supported languages.

docs/news.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
News
22
====
33

4+
* 05/18/2026: `shorttext` 4.0.2 released.
45
* 05/14/2026: `shorttext` 4.0.1 released.
56
* 04/19/2026: `shorttext` 4.0.0 released.
67
* 03/22/2026: `shorttext` 3.1.1 released.
@@ -91,10 +92,15 @@ News
9192
What's New
9293
----------
9394

95+
Release 4.0.2 (May 18, 2026)
96+
----------------------------
97+
98+
* Fixed bugs in CLI.
99+
94100
Release 4.0.1 (May 14, 2026)
95101
----------------------------
96102

97-
* Use classmethods to load pretrained models.
103+
* Use class methods to load pretrained models.
98104
* Code optimization.
99105

100106
Release 4.0.0 (April 19, 2026)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "shorttext"
7-
version = "4.0.1"
7+
version = "4.0.2"
88
authors = [
99
{name = "Kwan Yuet Stephen Ho", email = "stephenhky@yahoo.com.hk"}
1010
]

src/shorttext/cli/wordembedsim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def getargparser() -> argparse.ArgumentParser:
2222
Returns:
2323
ArgumentParser for command line arguments.
2424
"""
25-
parser = argparse.ArgumentParser
25+
parser = argparse.ArgumentParser(description="Find the similarities between two short sentences using Word2Vec.")
2626
parser.add_argument('modelpath', help='Path of the Word2Vec model')
2727
parser.add_argument('--type', default='word2vec',
2828
help='Type of word-embedding model (default: "word2vec"; other options: "fasttext", "poincare")')

0 commit comments

Comments
 (0)