Skip to content

Commit

Permalink
add: version (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxiangzhuang authored Apr 23, 2024
1 parent 029da9b commit be2d12a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions python/bleuscore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

__doc__ = bleuscore.__doc__
__all__ = [
"__version__",
"tokenizer_regex",
"tokenizer_13a",
"compute",
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

0 comments on commit be2d12a

Please sign in to comment.