diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..9a33346 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,10 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +[//]: # (## [0.1.0] - 2024-04-23) diff --git a/python/bleuscore/__init__.py b/python/bleuscore/__init__.py index c5cc1e7..230a76d 100644 --- a/python/bleuscore/__init__.py +++ b/python/bleuscore/__init__.py @@ -2,6 +2,7 @@ __doc__ = bleuscore.__doc__ __all__ = [ + "__version__", "tokenizer_regex", "tokenizer_13a", "compute", diff --git a/src/lib.rs b/src/lib.rs index 9e6ed06..c6154e2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,5 +51,6 @@ fn bleuscore(_py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> { m.add_function(wrap_pyfunction!(tokenizer_regex, m)?)?; m.add_function(wrap_pyfunction!(tokenizer_13a, m)?)?; m.add_function(wrap_pyfunction!(compute, m)?)?; + m.add("__version__", env!("CARGO_PKG_VERSION"))?; Ok(()) }