diff --git a/snips_nlu/default_configs/config_de.py b/snips_nlu/default_configs/config_de.py index 1a53e2c55..1644a9163 100644 --- a/snips_nlu/default_configs/config_de.py +++ b/snips_nlu/default_configs/config_de.py @@ -22,13 +22,7 @@ "n": 1 }, "factory_name": "ngram", - "offsets": [ - -2, - -1, - 0, - 1, - 2 - ] + "offsets": [-2, -1, 0, 1, 2] }, { "args": { @@ -38,101 +32,59 @@ "n": 2 }, "factory_name": "ngram", - "offsets": [ - -2, - 1 - ] + "offsets": [-2, 1] }, { "args": { "prefix_size": 2 }, "factory_name": "prefix", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "prefix_size": 5 - }, + "args": {"prefix_size": 5}, "factory_name": "prefix", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "suffix_size": 2 - }, + "args": {"suffix_size": 2}, "factory_name": "suffix", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "suffix_size": 5 - }, + "args": {"suffix_size": 5}, "factory_name": "suffix", - "offsets": [ - 0 - ] + "offsets": [0] }, { "args": {}, "factory_name": "is_digit", - "offsets": [ - -1, - 0, - 1 - ] + "offsets": [-1, 0, 1] }, { "args": {}, "factory_name": "is_first", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] }, { "args": {}, "factory_name": "is_last", - "offsets": [ - 0, - 1, - 2 - ] + "offsets": [0, 1, 2] }, { - "args": { - "n": 1 - }, + "args": {"n": 1}, "factory_name": "shape_ngram", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "n": 2 - }, + "args": {"n": 2}, "factory_name": "shape_ngram", - "offsets": [ - -1, - 0 - ] + "offsets": [-1, 0] }, { - "args": { - "n": 3 - }, + "args": {"n": 3}, "factory_name": "shape_ngram", - "offsets": [ - -1 - ] + "offsets": [-1] }, { "args": { @@ -140,23 +92,13 @@ "tagging_scheme_code": 2 }, "factory_name": "entity_match", - "offsets": [ - -2, - -1, - 0 - ], + "offsets": [-2, -1, 0], "drop_out": 0.5 }, { - "args": { - "tagging_scheme_code": 1 - }, + "args": {"tagging_scheme_code": 1}, "factory_name": "builtin_entity_match", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] } ], "crf_args": { diff --git a/snips_nlu/default_configs/config_en.py b/snips_nlu/default_configs/config_en.py index b5034bc15..ac6a66d1e 100644 --- a/snips_nlu/default_configs/config_en.py +++ b/snips_nlu/default_configs/config_en.py @@ -22,13 +22,7 @@ "n": 1 }, "factory_name": "ngram", - "offsets": [ - -2, - -1, - 0, - 1, - 2 - ] + "offsets": [-2, -1, 0, 1, 2] }, { "args": { @@ -38,65 +32,37 @@ "n": 2 }, "factory_name": "ngram", - "offsets": [ - -2, - 1 - ] + "offsets": [-2, 1] }, { "args": {}, "factory_name": "is_digit", - "offsets": [ - -1, - 0, - 1 - ] + "offsets": [-1, 0, 1] }, { "args": {}, "factory_name": "is_first", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] }, { "args": {}, "factory_name": "is_last", - "offsets": [ - 0, - 1, - 2 - ] + "offsets": [0, 1, 2] }, { - "args": { - "n": 1 - }, + "args": {"n": 1}, "factory_name": "shape_ngram", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "n": 2 - }, + "args": {"n": 2}, "factory_name": "shape_ngram", - "offsets": [ - -1, - 0 - ] + "offsets": [-1, 0] }, { - "args": { - "n": 3 - }, + "args": {"n": 3}, "factory_name": "shape_ngram", - "offsets": [ - -1 - ] + "offsets": [-1] }, { "args": { @@ -104,23 +70,13 @@ "tagging_scheme_code": 2 }, "factory_name": "entity_match", - "offsets": [ - -2, - -1, - 0 - ], + "offsets": [-2, -1, 0], "drop_out": 0.5 }, { - "args": { - "tagging_scheme_code": 1 - }, + "args": {"tagging_scheme_code": 1}, "factory_name": "builtin_entity_match", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] }, { "args": { @@ -128,12 +84,7 @@ "use_stemming": False }, "factory_name": "word_cluster", - "offsets": [ - -2, - -1, - 0, - 1 - ] + "offsets": [-2, -1, 0, 1] } ], "crf_args": { diff --git a/snips_nlu/default_configs/config_es.py b/snips_nlu/default_configs/config_es.py index e835f94f4..df9c25f15 100644 --- a/snips_nlu/default_configs/config_es.py +++ b/snips_nlu/default_configs/config_es.py @@ -22,13 +22,7 @@ "n": 1 }, "factory_name": "ngram", - "offsets": [ - -2, - -1, - 0, - 1, - 2 - ] + "offsets": [-2, -1, 0, 1, 2] }, { "args": { @@ -38,65 +32,37 @@ "n": 2 }, "factory_name": "ngram", - "offsets": [ - -2, - 1 - ] + "offsets": [-2, 1] }, { "args": {}, "factory_name": "is_digit", - "offsets": [ - -1, - 0, - 1 - ] + "offsets": [-1, 0, 1] }, { "args": {}, "factory_name": "is_first", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] }, { "args": {}, "factory_name": "is_last", - "offsets": [ - 0, - 1, - 2 - ] + "offsets": [0, 1, 2] }, { - "args": { - "n": 1 - }, + "args": {"n": 1}, "factory_name": "shape_ngram", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "n": 2 - }, + "args": {"n": 2}, "factory_name": "shape_ngram", - "offsets": [ - -1, - 0 - ] + "offsets": [-1, 0] }, { - "args": { - "n": 3 - }, + "args": {"n": 3}, "factory_name": "shape_ngram", - "offsets": [ - -1 - ] + "offsets": [-1] }, { "args": { @@ -104,23 +70,13 @@ "tagging_scheme_code": 2 }, "factory_name": "entity_match", - "offsets": [ - -2, - -1, - 0 - ], + "offsets": [-2, -1, 0], "drop_out": 0.5 }, { - "args": { - "tagging_scheme_code": 1 - }, + "args": {"tagging_scheme_code": 1}, "factory_name": "builtin_entity_match", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] } ], "crf_args": { diff --git a/snips_nlu/default_configs/config_fr.py b/snips_nlu/default_configs/config_fr.py index e835f94f4..df9c25f15 100644 --- a/snips_nlu/default_configs/config_fr.py +++ b/snips_nlu/default_configs/config_fr.py @@ -22,13 +22,7 @@ "n": 1 }, "factory_name": "ngram", - "offsets": [ - -2, - -1, - 0, - 1, - 2 - ] + "offsets": [-2, -1, 0, 1, 2] }, { "args": { @@ -38,65 +32,37 @@ "n": 2 }, "factory_name": "ngram", - "offsets": [ - -2, - 1 - ] + "offsets": [-2, 1] }, { "args": {}, "factory_name": "is_digit", - "offsets": [ - -1, - 0, - 1 - ] + "offsets": [-1, 0, 1] }, { "args": {}, "factory_name": "is_first", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] }, { "args": {}, "factory_name": "is_last", - "offsets": [ - 0, - 1, - 2 - ] + "offsets": [0, 1, 2] }, { - "args": { - "n": 1 - }, + "args": {"n": 1}, "factory_name": "shape_ngram", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "n": 2 - }, + "args": {"n": 2}, "factory_name": "shape_ngram", - "offsets": [ - -1, - 0 - ] + "offsets": [-1, 0] }, { - "args": { - "n": 3 - }, + "args": {"n": 3}, "factory_name": "shape_ngram", - "offsets": [ - -1 - ] + "offsets": [-1] }, { "args": { @@ -104,23 +70,13 @@ "tagging_scheme_code": 2 }, "factory_name": "entity_match", - "offsets": [ - -2, - -1, - 0 - ], + "offsets": [-2, -1, 0], "drop_out": 0.5 }, { - "args": { - "tagging_scheme_code": 1 - }, + "args": {"tagging_scheme_code": 1}, "factory_name": "builtin_entity_match", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] } ], "crf_args": { diff --git a/snips_nlu/default_configs/config_it.py b/snips_nlu/default_configs/config_it.py index e835f94f4..df9c25f15 100644 --- a/snips_nlu/default_configs/config_it.py +++ b/snips_nlu/default_configs/config_it.py @@ -22,13 +22,7 @@ "n": 1 }, "factory_name": "ngram", - "offsets": [ - -2, - -1, - 0, - 1, - 2 - ] + "offsets": [-2, -1, 0, 1, 2] }, { "args": { @@ -38,65 +32,37 @@ "n": 2 }, "factory_name": "ngram", - "offsets": [ - -2, - 1 - ] + "offsets": [-2, 1] }, { "args": {}, "factory_name": "is_digit", - "offsets": [ - -1, - 0, - 1 - ] + "offsets": [-1, 0, 1] }, { "args": {}, "factory_name": "is_first", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] }, { "args": {}, "factory_name": "is_last", - "offsets": [ - 0, - 1, - 2 - ] + "offsets": [0, 1, 2] }, { - "args": { - "n": 1 - }, + "args": {"n": 1}, "factory_name": "shape_ngram", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "n": 2 - }, + "args": {"n": 2}, "factory_name": "shape_ngram", - "offsets": [ - -1, - 0 - ] + "offsets": [-1, 0] }, { - "args": { - "n": 3 - }, + "args": {"n": 3}, "factory_name": "shape_ngram", - "offsets": [ - -1 - ] + "offsets": [-1] }, { "args": { @@ -104,23 +70,13 @@ "tagging_scheme_code": 2 }, "factory_name": "entity_match", - "offsets": [ - -2, - -1, - 0 - ], + "offsets": [-2, -1, 0], "drop_out": 0.5 }, { - "args": { - "tagging_scheme_code": 1 - }, + "args": {"tagging_scheme_code": 1}, "factory_name": "builtin_entity_match", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] } ], "crf_args": { diff --git a/snips_nlu/default_configs/config_ja.py b/snips_nlu/default_configs/config_ja.py index bd1c9f14c..f1cbf202f 100644 --- a/snips_nlu/default_configs/config_ja.py +++ b/snips_nlu/default_configs/config_ja.py @@ -21,13 +21,7 @@ "n": 1 }, "factory_name": "ngram", - "offsets": [ - -2, - -1, - 0, - 1, - 2 - ] + "offsets": [-2, -1, 0, 1, 2] }, { "args": { @@ -36,107 +30,57 @@ "n": 2 }, "factory_name": "ngram", - "offsets": [ - -2, - 0, - 1, - 2 - ] + "offsets": [-2, 0, 1, 2] }, { - "args": { - "prefix_size": 1 - }, + "args": {"prefix_size": 1}, "factory_name": "prefix", - "offsets": [ - 0, - 1 - ] + "offsets": [0, 1] }, { - "args": { - "prefix_size": 2 - }, + "args": {"prefix_size": 2}, "factory_name": "prefix", - "offsets": [ - 0, - 1 - ] + "offsets": [0, 1] }, { - "args": { - "suffix_size": 1 - }, + "args": {"suffix_size": 1}, "factory_name": "suffix", - "offsets": [ - 0, - 1 - ] + "offsets": [0, 1] }, { - "args": { - "suffix_size": 2 - }, + "args": {"suffix_size": 2}, "factory_name": "suffix", - "offsets": [ - 0, - 1 - ] + "offsets": [0, 1] }, { "args": {}, "factory_name": "is_digit", - "offsets": [ - -1, - 0, - 1 - ] + "offsets": [-1, 0, 1] }, { "args": {}, "factory_name": "is_first", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] }, { "args": {}, "factory_name": "is_last", - "offsets": [ - 0, - 1, - 2 - ] + "offsets": [0, 1, 2] }, { - "args": { - "n": 1 - }, + "args": {"n": 1}, "factory_name": "shape_ngram", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "n": 2 - }, + "args": {"n": 2}, "factory_name": "shape_ngram", - "offsets": [ - -1, - 0 - ] + "offsets": [-1, 0] }, { - "args": { - "n": 3 - }, + "args": {"n": 3}, "factory_name": "shape_ngram", - "offsets": [ - -1 - ] + "offsets": [-1] }, { "args": { @@ -144,25 +88,13 @@ "tagging_scheme_code": 2 }, "factory_name": "entity_match", - "offsets": [ - -1, - 0, - 1, - 2 - ], + "offsets": [-1, 0, 1, 2], "drop_out": 0.5 }, { - "args": { - "tagging_scheme_code": 1 - }, + "args": {"tagging_scheme_code": 1}, "factory_name": "builtin_entity_match", - "offsets": [ - -1, - 0, - 1, - 2 - ] + "offsets": [-1, 0, 1, 2] }, { "args": { @@ -170,13 +102,7 @@ "use_stemming": False }, "factory_name": "word_cluster", - "offsets": [ - -2, - -1, - 0, - 1, - 2 - ] + "offsets": [-2, -1, 0, 1, 2] } ], "crf_args": { diff --git a/snips_nlu/default_configs/config_ko.py b/snips_nlu/default_configs/config_ko.py index 8d18a3b47..fe4661c3f 100644 --- a/snips_nlu/default_configs/config_ko.py +++ b/snips_nlu/default_configs/config_ko.py @@ -21,13 +21,7 @@ "n": 1 }, "factory_name": "ngram", - "offsets": [ - -2, - -1, - 0, - 1, - 2 - ] + "offsets": [-2, -1, 0, 1, 2] }, { "args": { @@ -36,101 +30,57 @@ "n": 2 }, "factory_name": "ngram", - "offsets": [ - -2, - 1 - ] + "offsets": [-2, 1] }, { - "args": { - "prefix_size": 1 - }, + "args": {"prefix_size": 1}, "factory_name": "prefix", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "prefix_size": 2 - }, + "args": {"prefix_size": 2}, "factory_name": "prefix", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "suffix_size": 1 - }, + "args": {"suffix_size": 1}, "factory_name": "suffix", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "suffix_size": 2 - }, + "args": {"suffix_size": 2}, "factory_name": "suffix", - "offsets": [ - 0 - ] + "offsets": [0] }, { "args": {}, "factory_name": "is_digit", - "offsets": [ - -1, - 0, - 1 - ] + "offsets": [-1, 0, 1] }, { "args": {}, "factory_name": "is_first", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] }, { "args": {}, "factory_name": "is_last", - "offsets": [ - 0, - 1, - 2 - ] + "offsets": [0, 1, 2] }, { - "args": { - "n": 1 - }, + "args": {"n": 1}, "factory_name": "shape_ngram", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "n": 2 - }, + "args": {"n": 2}, "factory_name": "shape_ngram", - "offsets": [ - -1, - 0 - ] + "offsets": [-1, 0] }, { - "args": { - "n": 3 - }, + "args": {"n": 3}, "factory_name": "shape_ngram", - "offsets": [ - -1 - ] + "offsets": [-1] }, { "args": { @@ -138,23 +88,13 @@ "tagging_scheme_code": 2 }, "factory_name": "entity_match", - "offsets": [ - -2, - -1, - 0 - ], + "offsets": [-2, -1, 0], "drop_out": 0.5 }, { - "args": { - "tagging_scheme_code": 1 - }, + "args": {"tagging_scheme_code": 1}, "factory_name": "builtin_entity_match", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] } ], "crf_args": { diff --git a/snips_nlu/default_configs/config_pt_br.py b/snips_nlu/default_configs/config_pt_br.py index e8a478b5b..f831cd59d 100644 --- a/snips_nlu/default_configs/config_pt_br.py +++ b/snips_nlu/default_configs/config_pt_br.py @@ -22,13 +22,7 @@ "n": 1 }, "factory_name": "ngram", - "offsets": [ - -2, - -1, - 0, - 1, - 2 - ] + "offsets": [-2, -1, 0, 1, 2] }, { "args": { @@ -38,65 +32,37 @@ "n": 2 }, "factory_name": "ngram", - "offsets": [ - -2, - 1 - ] + "offsets": [-2, 1] }, { "args": {}, "factory_name": "is_digit", - "offsets": [ - -1, - 0, - 1 - ] + "offsets": [-1, 0, 1] }, { "args": {}, "factory_name": "is_first", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] }, { "args": {}, "factory_name": "is_last", - "offsets": [ - 0, - 1, - 2 - ] + "offsets": [0, 1, 2] }, { - "args": { - "n": 1 - }, + "args": {"n": 1}, "factory_name": "shape_ngram", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "n": 2 - }, + "args": {"n": 2}, "factory_name": "shape_ngram", - "offsets": [ - -1, - 0 - ] + "offsets": [-1, 0] }, { - "args": { - "n": 3 - }, + "args": {"n": 3}, "factory_name": "shape_ngram", - "offsets": [ - -1 - ] + "offsets": [-1] }, { "args": { @@ -104,23 +70,13 @@ "tagging_scheme_code": 2 }, "factory_name": "entity_match", - "offsets": [ - -2, - -1, - 0 - ], + "offsets": [-2, -1, 0], "drop_out": 0.5 }, { - "args": { - "tagging_scheme_code": 1 - }, + "args": {"tagging_scheme_code": 1}, "factory_name": "builtin_entity_match", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] } ], "crf_args": { diff --git a/snips_nlu/default_configs/config_pt_pt.py b/snips_nlu/default_configs/config_pt_pt.py index e8a478b5b..f831cd59d 100644 --- a/snips_nlu/default_configs/config_pt_pt.py +++ b/snips_nlu/default_configs/config_pt_pt.py @@ -22,13 +22,7 @@ "n": 1 }, "factory_name": "ngram", - "offsets": [ - -2, - -1, - 0, - 1, - 2 - ] + "offsets": [-2, -1, 0, 1, 2] }, { "args": { @@ -38,65 +32,37 @@ "n": 2 }, "factory_name": "ngram", - "offsets": [ - -2, - 1 - ] + "offsets": [-2, 1] }, { "args": {}, "factory_name": "is_digit", - "offsets": [ - -1, - 0, - 1 - ] + "offsets": [-1, 0, 1] }, { "args": {}, "factory_name": "is_first", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] }, { "args": {}, "factory_name": "is_last", - "offsets": [ - 0, - 1, - 2 - ] + "offsets": [0, 1, 2] }, { - "args": { - "n": 1 - }, + "args": {"n": 1}, "factory_name": "shape_ngram", - "offsets": [ - 0 - ] + "offsets": [0] }, { - "args": { - "n": 2 - }, + "args": {"n": 2}, "factory_name": "shape_ngram", - "offsets": [ - -1, - 0 - ] + "offsets": [-1, 0] }, { - "args": { - "n": 3 - }, + "args": {"n": 3}, "factory_name": "shape_ngram", - "offsets": [ - -1 - ] + "offsets": [-1] }, { "args": { @@ -104,23 +70,13 @@ "tagging_scheme_code": 2 }, "factory_name": "entity_match", - "offsets": [ - -2, - -1, - 0 - ], + "offsets": [-2, -1, 0], "drop_out": 0.5 }, { - "args": { - "tagging_scheme_code": 1 - }, + "args": {"tagging_scheme_code": 1}, "factory_name": "builtin_entity_match", - "offsets": [ - -2, - -1, - 0 - ] + "offsets": [-2, -1, 0] } ], "crf_args": {