From db365c404092a76f8aa91c9eebe25d6a48d5279f Mon Sep 17 00:00:00 2001 From: Rosa Stern Date: Wed, 20 Feb 2019 17:02:36 +0100 Subject: [PATCH 1/3] Add bindings for Portuguese - PT and BR variants. --- src/language.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(), } } } From ed547f529ed4c3379014c021297ff0f5af3db430 Mon Sep 17 00:00:00 2001 From: ClemDoum Date: Wed, 27 Feb 2019 11:34:15 +0100 Subject: [PATCH 2/3] Update changelog --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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 From 84b57b7dea630d35678b6febb8a561327a23c739 Mon Sep 17 00:00:00 2001 From: ClemDoum Date: Wed, 27 Feb 2019 11:34:55 +0100 Subject: [PATCH 3/3] Bump version numbers to 0.8.0 --- Cargo.toml | 2 +- python/snips_nlu_utils/__version__ | 2 +- python/snips_nlu_utils_py/Cargo.toml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 }