Skip to content

Commit 48e23a8

Browse files
authored
Remove faulty training examples (#205)
* Remove faulty ES rule * Remove faulty ZH training examples * Remove faulty ZH training examples * Remove faulty ZH training examples * Update Cargo.toml files * Update Changelog
1 parent 9f26a87 commit 48e23a8

File tree

18 files changed

+48
-71
lines changed

18 files changed

+48
-71
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [Unreleased]
5+
### Fixed
6+
- Remove Chinese training examples causing issues on raspbian and windows [#205](https://github.com/snipsco/rustling-ontology/pull/205)
7+
- Fix float parsing for all languages [#203](https://github.com/snipsco/rustling-ontology/pull/203)
8+
- Add various improvements in all languages [#203](https://github.com/snipsco/rustling-ontology/pull/203)
9+
410
## [0.19.2]
511
### Fixed
612
- Fix chrono issue and move to rust edition 2018 [#194](https://github.com/snipsco/rustling-ontology/pull/194)

Cargo.toml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,41 @@ build = "build.rs"
66
edition = "2018"
77

88
[workspace]
9-
members=["values", "cli", "cli-debug", "moment", "json-utils",
10-
"grammar", "grammar/de", "grammar/en", "grammar/es", "grammar/pt", "grammar/fr", "grammar/ko", "grammar/zh", "grammar/ja", "grammar/it"]
9+
members=[
10+
"cli",
11+
"cli-debug",
12+
"grammar",
13+
"grammar/de",
14+
"grammar/en",
15+
"grammar/es",
16+
"grammar/fr",
17+
"grammar/it",
18+
"grammar/ja",
19+
"grammar/ko",
20+
"grammar/pt",
21+
"grammar/zh",
22+
"json-utils",
23+
"moment",
24+
"values",
25+
]
1126

1227
[dependencies]
1328
rmp-serde = "0.14"
14-
serde = { version = "1.0", features = ["derive"] }
15-
rustling = { git = "https://github.com/snipsco/rustling", tag="0.9.1" }
29+
serde = { version = "1", features = ["derive"] }
30+
rustling = { git = "https://github.com/snipsco/rustling", tag = "0.9.1" }
1631
rustling-ontology-moment = { path = "moment" }
1732
rustling-ontology-values = { path = "values" }
1833
rustling-ontology-grammar = { path = "grammar" }
1934

2035
[dev-dependencies]
2136
bencher = { git = "https://github.com/snipsco/bencher", rev="63910ace" }
2237
rustling-ontology-json-utils = { path = "json-utils" }
23-
serde_json = "1.0"
24-
38+
serde_json = "1"
2539

2640
[build-dependencies]
2741
rmp-serde = "0.14"
28-
serde = { version = "1.0", features = ["derive"] }
29-
rustling = { git = "https://github.com/snipsco/rustling", tag="0.9.1" }
42+
serde = { version = "1", features = ["derive"] }
43+
rustling = { git = "https://github.com/snipsco/rustling", tag = "0.9.1" }
3044
rustling-ontology-values = { path = "values" }
3145
rustling-ontology-moment = { path = "moment" }
3246
rustling-ontology-grammar = { path = "grammar" }

cli-debug/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["hdlj <[email protected]>", "Mathieu Poumeyrol <kali@zoy
55
edition = "2018"
66

77
[dependencies]
8-
rustling = { git = "https://github.com/snipsco/rustling", tag="0.9.1" }
8+
rustling = { git = "https://github.com/snipsco/rustling", tag = "0.9.1" }
99
rustling-ontology-grammar = { path = "../grammar" }
1010
rustling-ontology-moment = { path = "../moment" }
1111
rustling-ontology-values = { path = "../values" }

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ prettytable-rs = "0.6"
1010
rustling-ontology = { path = ".." }
1111
rustling-ontology-json-utils = { path = "../json-utils" }
1212
rustling-ontology-moment = { path = "../moment" }
13-
serde_json = "1.0"
13+
serde_json = "1"

grammar/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["hdlj <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
rustling = { git = "https://github.com/snipsco/rustling", tag="0.9.1" }
8+
rustling = { git = "https://github.com/snipsco/rustling", tag = "0.9.1" }
99
rustling-ontology-de = { path = "de" }
1010
rustling-ontology-en = { path = "en" }
1111
rustling-ontology-es = { path = "es" }

grammar/de/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors = ["hdlj <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
rustling = { git = "https://github.com/snipsco/rustling", tag="0.9.1" }
8+
rustling = { git = "https://github.com/snipsco/rustling", tag = "0.9.1" }
99
rustling-ontology-moment = { path = "../../moment" }
1010
rustling-ontology-values = { path = "../../values" }

grammar/en/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors = ["hdlj <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
rustling = { git = "https://github.com/snipsco/rustling", tag="0.9.1" }
8+
rustling = { git = "https://github.com/snipsco/rustling", tag = "0.9.1" }
99
rustling-ontology-moment = { path = "../../moment" }
1010
rustling-ontology-values = { path = "../../values" }

grammar/es/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors = ["hdlj <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
rustling = { git = "https://github.com/snipsco/rustling", tag="0.9.1" }
8+
rustling = { git = "https://github.com/snipsco/rustling", tag = "0.9.1" }
99
rustling-ontology-moment = { path = "../../moment" }
1010
rustling-ontology-values = { path = "../../values" }

grammar/es/src/training.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ pub fn examples_datetime(v: &mut Vec<::rustling::train::Example<Dimension>>) {
149149
example!(v, check_moment_span!(c, [2013, 2, 12, 15], [2013, 2, 12, 17]), "a media tarde", "en plena tarde", "a plena tarde");
150150
example!(v, check_moment_span!(c, [2013, 2, 12, 4], [2013, 2, 12, 9]), "pronto por la mañana", "a primera hora de la mañana", "por la mañana a primera hora", "a primera hora por la mañana");
151151
example!(v, check_moment_span!(c, [2013, 2, 12, 11], [2013, 2, 12, 16]), "en mitad del día", "a medio día", "a mediodia");
152-
example!(v, check_moment_span!(c, [2013, 2, 12, 10], [2013, 2, 12, 12]), "a última hora de la mañana", "por la mañana a última hora");
153152
example!(v, check_moment_span!(c, [2013, 2, 12, 13], [2013, 2, 12, 17]), "después de comer", "después de la hora de comer");
154153
example!(v, check_moment_span!(c, [2013, 2, 12, 10], [2013, 2, 12, 12]), "antes de comer");
155154
example!(v, check_moment_span!(c, [2013, 2, 12, 12], [2013, 2, 12, 14]), "durante la comida", "a la hora de comer" );

grammar/fr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors = ["hdlj <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
rustling = { git = "https://github.com/snipsco/rustling", tag="0.9.1" }
8+
rustling = { git = "https://github.com/snipsco/rustling", tag = "0.9.1" }
99
rustling-ontology-moment = { path = "../../moment" }
1010
rustling-ontology-values = { path = "../../values" }

0 commit comments

Comments
 (0)