diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f51f925..cae0cce7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,31 @@ +# [0.6.3](https://github.com/WorksApplications/sudachi.rs/releases/tag/v0.6.2) (2020-02-10) + +## Highlights + +* Fixed path resolution algorithm for resources. They are now resolved in the following order (first existing file wins): + 1. Absolute paths stay as they are + 2. Relative to "path" value of the config file + 3. Relative to "resource_dir" parameter of the config object during creation + * For SudachiPy it is the parameter of `Dictionary` constructor + 4. Relative to the location of the configuration file + 5. Relative to the current directory + +## Python + +* `Dictionary` now has `__repr__()` function which displays absolute paths to dictionaries in use. +* `Dictionary` now has `pos_of()` function which returns a POS tuple for a given POS id. +* `PosMatcher` supports set operations + * union (`m1 | m2`) + * intersection (`m1 & m2`) + * difference (`m1 - m2`) + * negation (`~m1`) + +# [0.6.2](https://github.com/WorksApplications/sudachi.rs/releases/tag/v0.6.2) (2020-12-09) + +## Fixes + +* Fix analysis differences with 0.5.4 + # [0.6.1](https://github.com/WorksApplications/sudachi.rs/releases/tag/v0.6.1) (2020-12-08) ## Highlights diff --git a/Cargo.lock b/Cargo.lock index 5c3e3376..8ba1d744 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -225,7 +225,7 @@ dependencies = [ [[package]] name = "default_input_text" -version = "0.6.3-a1" +version = "0.6.3" dependencies = [ "sudachi", ] @@ -357,14 +357,14 @@ checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" [[package]] name = "join_katakana_oov" -version = "0.6.3-a1" +version = "0.6.3" dependencies = [ "sudachi", ] [[package]] name = "join_numeric" -version = "0.6.3-a1" +version = "0.6.3" dependencies = [ "sudachi", ] @@ -859,7 +859,7 @@ dependencies = [ [[package]] name = "simple_oov" -version = "0.6.3-a1" +version = "0.6.3" dependencies = [ "sudachi", ] @@ -902,7 +902,7 @@ dependencies = [ [[package]] name = "sudachi" -version = "0.6.3-a1" +version = "0.6.3" dependencies = [ "aho-corasick", "bitflags", @@ -929,7 +929,7 @@ dependencies = [ [[package]] name = "sudachi-cli" -version = "0.6.3-a1" +version = "0.6.3" dependencies = [ "cfg-if", "memmap2", @@ -949,7 +949,7 @@ dependencies = [ [[package]] name = "sudachipy" -version = "0.6.3-a1" +version = "0.6.3" dependencies = [ "pyo3", "sudachi", diff --git a/README.md b/README.md index 99e9114b..ed5b10b4 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ [![Rust](https://github.com/WorksApplications/sudachi.rs/actions/workflows/rust.yml/badge.svg)](https://github.com/WorksApplications/sudachi.rs/actions/workflows/rust.yml) -**2021-12-09 UPDATE**: [0.6.2 Release](https://github.com/WorksApplications/sudachi.rs/releases/tag/v0.6.2) +**2022-02-10 UPDATE**: [0.6.3 Release](https://github.com/WorksApplications/sudachi.rs/releases/tag/v0.6.3) Try it: ```shell -pip install --update 'sudachipy>=0.6.2' +pip install --update 'sudachipy>=0.6.3' ``` diff --git a/plugin/input_text/default_input_text/Cargo.toml b/plugin/input_text/default_input_text/Cargo.toml index 870c798e..f763bf69 100644 --- a/plugin/input_text/default_input_text/Cargo.toml +++ b/plugin/input_text/default_input_text/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "default_input_text" -version = "0.6.3-a1" +version = "0.6.3" authors = ["Works Applications "] edition = "2018" license = "Apache-2.0" diff --git a/plugin/oov/simple_oov/Cargo.toml b/plugin/oov/simple_oov/Cargo.toml index 021b4d98..81f01810 100644 --- a/plugin/oov/simple_oov/Cargo.toml +++ b/plugin/oov/simple_oov/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simple_oov" -version = "0.6.3-a1" +version = "0.6.3" authors = ["Works Applications "] edition = "2018" license = "Apache-2.0" diff --git a/plugin/path_rewrite/join_katakana_oov/Cargo.toml b/plugin/path_rewrite/join_katakana_oov/Cargo.toml index 7d46235c..67607cc7 100644 --- a/plugin/path_rewrite/join_katakana_oov/Cargo.toml +++ b/plugin/path_rewrite/join_katakana_oov/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "join_katakana_oov" -version = "0.6.3-a1" +version = "0.6.3" authors = ["Works Applications "] edition = "2018" license = "Apache-2.0" diff --git a/plugin/path_rewrite/join_numeric/Cargo.toml b/plugin/path_rewrite/join_numeric/Cargo.toml index 6aae069d..9db930dd 100644 --- a/plugin/path_rewrite/join_numeric/Cargo.toml +++ b/plugin/path_rewrite/join_numeric/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "join_numeric" -version = "0.6.3-a1" +version = "0.6.3" authors = ["Works Applications "] edition = "2018" license = "Apache-2.0" diff --git a/python/CHANGELOG.md b/python/CHANGELOG.md index b069d6f8..7288a241 100644 --- a/python/CHANGELOG.md +++ b/python/CHANGELOG.md @@ -9,6 +9,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - `sudachipy.Tokenizer` will ignore the provided logger. - Ref: [#76] +## [0.6.3] - 2022/01/10 + +- Changed path resolution algorithm for resources [#203](https://github.com/WorksApplications/sudachi.rs/pull/203) +- Added set operations to `PosMatcher` [#204](https://github.com/WorksApplications/sudachi.rs/pull/204) +- Added `pos_of()` function to `Dictionary` which returns a POS tuple for a given POS id. + +## [0.6.2] - 2021/12/09 + +- Fixed analysis differences with 0.5.4 + ## [0.6.1] - 2021/12/08 - [`Morpheme.part_of_speech`](https://worksapplications.github.io/sudachi.rs/python/api/sudachipy.html#sudachipy.Morpheme.part_of_speech) method now returns Tuple of POS components instead of a list. diff --git a/python/Cargo.toml b/python/Cargo.toml index 577996c4..21e964fe 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sudachipy" -version = "0.6.3-a1" +version = "0.6.3" edition = "2018" description = "Python bindings of sudachi.rs, the Japanese Morphological Analyzer" homepage = "https://github.com/WorksApplications/sudachi.rs" diff --git a/python/docs/source/conf.py b/python/docs/source/conf.py index fb945f29..8807e52f 100644 --- a/python/docs/source/conf.py +++ b/python/docs/source/conf.py @@ -22,7 +22,7 @@ author = 'Works Applications' # The full version, including alpha/beta/rc tags -release = '0.6.3-a1' +release = '0.6.3' # -- General configuration --------------------------------------------------- diff --git a/python/py_src/sudachipy/__init__.py b/python/py_src/sudachipy/__init__.py index 592149d3..611ff914 100644 --- a/python/py_src/sudachipy/__init__.py +++ b/python/py_src/sudachipy/__init__.py @@ -11,7 +11,7 @@ from importlib.util import find_spec from pathlib import Path -__version__ = "0.6.3-a1" +__version__ = "0.6.3" _DEFAULT_RESOURCEDIR = Path(__file__).resolve().parent / 'resources' _DEFAULT_SETTINGFILE = _DEFAULT_RESOURCEDIR / 'sudachi.json' diff --git a/python/setup.py b/python/setup.py index 7dad5d43..2d654938 100644 --- a/python/setup.py +++ b/python/setup.py @@ -17,7 +17,7 @@ setup( name="SudachiPy", - version="0.6.3-a1", + version="0.6.3", description="Python version of Sudachi, the Japanese Morphological Analyzer", long_description=open('README.md', encoding='utf-8').read(), long_description_content_type="text/markdown", diff --git a/sudachi-cli/Cargo.toml b/sudachi-cli/Cargo.toml index d782c0d5..96162e18 100644 --- a/sudachi-cli/Cargo.toml +++ b/sudachi-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sudachi-cli" -version = "0.6.3-a1" +version = "0.6.3" authors = ["Works Applications "] edition = "2018" description = "Rust version of Sudachi, the Japanese Morphological Analyzer" diff --git a/sudachi/Cargo.toml b/sudachi/Cargo.toml index df66bd6d..7d1246a6 100644 --- a/sudachi/Cargo.toml +++ b/sudachi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sudachi" -version = "0.6.3-a1" +version = "0.6.3" authors = ["Works Applications "] edition = "2018" description = "Rust version of Sudachi, the Japanese Morphological Analyzer"