Skip to content

Commit

Permalink
Merge pull request #61 from snipsco/release/0.8.0
Browse files Browse the repository at this point in the history
Release 0.8.0 - 2019-02-27
  • Loading branch information
ClemDoum authored Feb 27, 2019
2 parents a31e86b + 84b57b7 commit 7191204
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "snips-nlu-utils"
version = "0.7.1"
version = "0.8.0"
authors = ["Adrien Ball <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion python/snips_nlu_utils/__version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.1
0.8.0
4 changes: 2 additions & 2 deletions python/snips_nlu_utils_py/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "snips-nlu-utils-py"
version = "0.7.1"
version = "0.8.0"
authors = ["Adrien Ball <[email protected]>"]

[lib]
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 }
6 changes: 5 additions & 1 deletion src/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)),
}
}
Expand All @@ -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(),
}
}
}
Expand Down

0 comments on commit 7191204

Please sign in to comment.