From 7ded0e0645476243964a68ba48b16f1e9c0ab191 Mon Sep 17 00:00:00 2001 From: Kazumasa Omura Date: Thu, 18 Jul 2024 15:34:10 +0900 Subject: [PATCH] bump version to 2.4.0 --- CHANGELOG.md | 11 +++++++++++ pyproject.toml | 2 +- src/kwja/cli/utils.py | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 239f4bb5..b948606c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [v2.4.0] - 2024-07-18 +### Added +- Introduce a special token to handle whitespaces as they are. + +### Changed +- Set default value of num_beams to 1. +- Refactor seq2seq module to make it slightly faster. + +### Removed +- Remove normalization of whitespaces to "␣". + ## [v2.3.0] - 2024-02-01 ### Added - Support Python 3.12. diff --git a/pyproject.toml b/pyproject.toml index 0e52cfb8..ba1cfb1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "kwja" -version = "2.3.0" +version = "2.4.0" description = "A unified Japanese analyzer based on foundation models" authors = [ "Hirokazu Kiyomaru ", diff --git a/src/kwja/cli/utils.py b/src/kwja/cli/utils.py index 8cbbf06a..583ada1b 100644 --- a/src/kwja/cli/utils.py +++ b/src/kwja/cli/utils.py @@ -91,6 +91,7 @@ def _get_model_version() -> str: ("2", "1"): "v2.1", ("2", "2"): "v2.2", ("2", "3"): "v2.2", + ("2", "4"): "v2.4", } version_fields = kwja.__version__.split(".") return version_map[(version_fields[0], version_fields[1])]