Skip to content

Commit

Permalink
Minify a bit default configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienball committed Mar 13, 2019
1 parent 1379636 commit 0ba13e0
Show file tree
Hide file tree
Showing 9 changed files with 151 additions and 612 deletions.
100 changes: 21 additions & 79 deletions snips_nlu/default_configs/config_de.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@
"n": 1
},
"factory_name": "ngram",
"offsets": [
-2,
-1,
0,
1,
2
]
"offsets": [-2, -1, 0, 1, 2]
},
{
"args": {
Expand All @@ -38,125 +32,73 @@
"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": {
"use_stemming": True,
"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": {
Expand Down
79 changes: 15 additions & 64 deletions snips_nlu/default_configs/config_en.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@
"n": 1
},
"factory_name": "ngram",
"offsets": [
-2,
-1,
0,
1,
2
]
"offsets": [-2, -1, 0, 1, 2]
},
{
"args": {
Expand All @@ -38,102 +32,59 @@
"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": {
"use_stemming": True,
"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": {
"cluster_name": "brown_clusters",
"use_stemming": False
},
"factory_name": "word_cluster",
"offsets": [
-2,
-1,
0,
1
]
"offsets": [-2, -1, 0, 1]
}
],
"crf_args": {
Expand Down
Loading

0 comments on commit 0ba13e0

Please sign in to comment.