diff options
author | Malik Talha <talhamalik727x@gmail.com> | 2023-10-22 20:54:58 +0500 |
---|---|---|
committer | Malik Talha <talhamalik727x@gmail.com> | 2023-10-22 20:54:58 +0500 |
commit | 69fcf984b733774336952bcc6f8ad42d796e5a5d (patch) | |
tree | 14529f2ee5db3725e08b8da2876d38601e6fc8c4 /model/probabilistic_intent_parser/slot_filler_2 | |
parent | f97f5665a9263cca3609ac8f732e4590a4bf6178 (diff) |
Add pre-trained model for Snips
Add a Snips model trained on HVAC Temperature, Fan Speed,
and Volume Control intents.
SPEC-4856
Signed-off-by: Malik Talha <talhamalik727x@gmail.com>
Change-Id: I624fa48c059d4fa1a5f2ef07e3af88b3076509f2
Diffstat (limited to 'model/probabilistic_intent_parser/slot_filler_2')
-rw-r--r-- | model/probabilistic_intent_parser/slot_filler_2/metadata.json | 3 | ||||
-rw-r--r-- | model/probabilistic_intent_parser/slot_filler_2/model.crfsuite | bin | 0 -> 20716 bytes | |||
-rw-r--r-- | model/probabilistic_intent_parser/slot_filler_2/slot_filler.json | 188 |
3 files changed, 191 insertions, 0 deletions
diff --git a/model/probabilistic_intent_parser/slot_filler_2/metadata.json b/model/probabilistic_intent_parser/slot_filler_2/metadata.json new file mode 100644 index 0000000..18ccb30 --- /dev/null +++ b/model/probabilistic_intent_parser/slot_filler_2/metadata.json @@ -0,0 +1,3 @@ +{ + "unit_name": "crf_slot_filler" +}
\ No newline at end of file diff --git a/model/probabilistic_intent_parser/slot_filler_2/model.crfsuite b/model/probabilistic_intent_parser/slot_filler_2/model.crfsuite Binary files differnew file mode 100644 index 0000000..65a8577 --- /dev/null +++ b/model/probabilistic_intent_parser/slot_filler_2/model.crfsuite diff --git a/model/probabilistic_intent_parser/slot_filler_2/slot_filler.json b/model/probabilistic_intent_parser/slot_filler_2/slot_filler.json new file mode 100644 index 0000000..3ea6fbb --- /dev/null +++ b/model/probabilistic_intent_parser/slot_filler_2/slot_filler.json @@ -0,0 +1,188 @@ +{ + "config": { + "crf_args": { + "algorithm": "lbfgs", + "c1": 0.1, + "c2": 0.1 + }, + "data_augmentation_config": { + "add_builtin_entities_examples": true, + "capitalization_ratio": 0.2, + "min_utterances": 200 + }, + "feature_factory_configs": [ + { + "args": { + "common_words_gazetteer_name": "top_10000_words_stemmed", + "language_code": "en", + "n": 1, + "use_stemming": true + }, + "factory_name": "ngram", + "offsets": [ + -2, + -1, + 0, + 1, + 2 + ] + }, + { + "args": { + "common_words_gazetteer_name": "top_10000_words_stemmed", + "language_code": "en", + "n": 2, + "use_stemming": true + }, + "factory_name": "ngram", + "offsets": [ + -2, + 1 + ] + }, + { + "args": {}, + "factory_name": "is_digit", + "offsets": [ + -1, + 0, + 1 + ] + }, + { + "args": {}, + "factory_name": "is_first", + "offsets": [ + -2, + -1, + 0 + ] + }, + { + "args": {}, + "factory_name": "is_last", + "offsets": [ + 0, + 1, + 2 + ] + }, + { + "args": { + "language_code": "en", + "n": 1 + }, + "factory_name": "shape_ngram", + "offsets": [ + 0 + ] + }, + { + "args": { + "language_code": "en", + "n": 2 + }, + "factory_name": "shape_ngram", + "offsets": [ + -1, + 0 + ] + }, + { + "args": { + "language_code": "en", + "n": 3 + }, + "factory_name": "shape_ngram", + "offsets": [ + -1 + ] + }, + { + "args": { + "entities": [ + "to_or_by", + "numeric_value", + "volume_control_action" + ], + "entity_filter": { + "automatically_extensible": false + }, + "tagging_scheme_code": 2, + "use_stemming": true + }, + "factory_name": "entity_match", + "offsets": [ + -2, + -1, + 0 + ] + }, + { + "args": { + "entities": [], + "entity_filter": { + "automatically_extensible": true + }, + "tagging_scheme_code": 2, + "use_stemming": true + }, + "drop_out": 0.5, + "factory_name": "entity_match", + "offsets": [ + -2, + -1, + 0 + ] + }, + { + "args": { + "entity_labels": [ + "snips/amountOfMoney", + "snips/date", + "snips/datePeriod", + "snips/datetime", + "snips/duration", + "snips/number", + "snips/ordinal", + "snips/percentage", + "snips/temperature", + "snips/time", + "snips/timePeriod" + ], + "language_code": "en", + "tagging_scheme_code": 1 + }, + "factory_name": "builtin_entity_match", + "offsets": [ + -2, + -1, + 0 + ] + }, + { + "args": { + "cluster_name": "brown_clusters", + "use_stemming": false + }, + "factory_name": "word_cluster", + "offsets": [ + -2, + -1, + 0, + 1 + ] + } + ], + "tagging_scheme": 1, + "unit_name": "crf_slot_filler" + }, + "crf_model_file": "model.crfsuite", + "intent": "VolumeControl", + "language_code": "en", + "slot_name_mapping": { + "numeric_value": "numeric_value", + "to_or_by": "to_or_by", + "volume_control_action": "volume_control_action" + } +}
\ No newline at end of file |