diff --git a/CHANGELOG.md b/CHANGELOG.md index b089adc..745c23d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # Changelog All notable changes to this project will be documented in this file. +## [0.8.0] - 2018-02-27 + +### Added +- Portuguese support + +### Changed +- Refactored the FFI + ## [0.7.1] - 2018-01-16 ### Added - Python3.7 builds @@ -18,6 +26,7 @@ All notable changes to this project will be documented in this file. ### Added - Add `get_shape` function +[0.8.0]: https://github.com/snipsco/snips-nlu-utils/compare/0.7.1...0.8.0 [0.7.1]: https://github.com/snipsco/snips-nlu-utils/compare/0.7.0...0.7.1 [0.7.0]: https://github.com/snipsco/snips-nlu-utils/compare/0.6.1...0.7.0 [0.6.1]: https://github.com/snipsco/snips-nlu-utils/compare/0.6.0...0.6.1 diff --git a/Cargo.toml b/Cargo.toml index 7dbf6f0..aed690b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snips-nlu-utils" -version = "0.7.1" +version = "0.8.0" authors = ["Adrien Ball "] edition = "2018" diff --git a/python/snips_nlu_utils/__version__ b/python/snips_nlu_utils/__version__ index 39e898a..a3df0a6 100644 --- a/python/snips_nlu_utils/__version__ +++ b/python/snips_nlu_utils/__version__ @@ -1 +1 @@ -0.7.1 +0.8.0 diff --git a/python/snips_nlu_utils_py/Cargo.toml b/python/snips_nlu_utils_py/Cargo.toml index 81b0c1f..2bde090 100644 --- a/python/snips_nlu_utils_py/Cargo.toml +++ b/python/snips_nlu_utils_py/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snips-nlu-utils-py" -version = "0.7.1" +version = "0.8.0" authors = ["Adrien Ball "] [lib] @@ -8,5 +8,5 @@ name = "_snips_nlu_utils_py" crate-type = ["cdylib"] [dependencies] -snips-nlu-utils = { git = "https://github.com/snipsco/snips-nlu-utils", tag = "0.7.1" } +snips-nlu-utils = { git = "https://github.com/snipsco/snips-nlu-utils", tag = "0.8.0" } cpython = { version="0.2.1", default-features = false } diff --git a/src/language.rs b/src/language.rs index 26bf433..e3e2977 100644 --- a/src/language.rs +++ b/src/language.rs @@ -21,7 +21,7 @@ macro_rules! language_enum { } } -language_enum!([DE, EN, ES, FR, IT, JA, KO]); +language_enum!([DE, EN, ES, FR, IT, JA, KO, PT_PT, PT_BR]); impl FromStr for Language { type Err = String; @@ -34,6 +34,8 @@ impl FromStr for Language { "it" => Ok(Language::IT), "ja" => Ok(Language::JA), "ko" => Ok(Language::KO), + "pt_pt" => Ok(Language::PT_PT), + "pt_br" => Ok(Language::PT_BR), _ => Err(format!("Unknown language {}", it)), } } @@ -49,6 +51,8 @@ impl ToString for Language { Language::IT => "it".to_string(), Language::JA => "ja".to_string(), Language::KO => "ko".to_string(), + Language::PT_PT => "pt_pt".to_string(), + Language::PT_BR => "pt_br".to_string(), } } }