Skip to content
Permalink
Browse files
recite location
  • Loading branch information
soperd committed Nov 11, 2018
1 parent 2e9f69e commit 8a0b890d73c85485275e64beb86b43263184849c
Show file tree
Hide file tree
Showing 11 changed files with 134 additions and 96 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,15 +1,15 @@
{
"language": "en",
"training_data": "training_data.json",
"rasa_nlu_version": "0.13.7",
"pipeline": [
{
"class": "rasa_nlu.tokenizers.whitespace_tokenizer.WhitespaceTokenizer",
"name": "tokenizer_whitespace"
"name": "tokenizer_whitespace",
"class": "rasa_nlu.tokenizers.whitespace_tokenizer.WhitespaceTokenizer"
},
{
"BILOU_flag": true,
"L1_c": 0.1,
"class": "rasa_nlu.extractors.crf_entity_extractor.CRFEntityExtractor",
"classifier_file": "crf_model.pkl",
"features": [
[
"low",
@@ -35,63 +35,63 @@
"upper"
]
],
"max_iterations": 50,
"BILOU_flag": true,
"name": "ner_crf",
"L2_c": 0.1
"class": "rasa_nlu.extractors.crf_entity_extractor.CRFEntityExtractor",
"L2_c": 0.1,
"classifier_file": "crf_model.pkl",
"max_iterations": 50
},
{
"synonyms_file": "entity_synonyms.json",
"name": "ner_synonyms",
"class": "rasa_nlu.extractors.entity_synonyms.EntitySynonymMapper",
"name": "ner_synonyms"
"synonyms_file": "entity_synonyms.json"
},
{
"min_ngram": 1,
"max_df": 1.0,
"strip_accents": null,
"max_ngram": 1,
"OOV_token": null,
"lowercase": true,
"OOV_words": [],
"class": "rasa_nlu.featurizers.count_vectors_featurizer.CountVectorsFeaturizer",
"token_pattern": "(?u)\\b\\w\\w+\\b",
"max_features": null,
"strip_accents": null,
"min_df": 1,
"stop_words": null,
"max_features": null,
"featurizer_file": "intent_featurizer_count_vectors.pkl",
"min_ngram": 1,
"name": "intent_featurizer_count_vectors",
"token_pattern": "(?u)\\b\\w\\w+\\b",
"max_ngram": 1,
"lowercase": true,
"OOV_words": []
"max_df": 1.0,
"featurizer_file": "intent_featurizer_count_vectors.pkl"
},
{
"num_neg": 20,
"use_max_sim_neg": true,
"num_hidden_layers_b": 0,
"droprate": 0.2,
"classifier_file": "intent_classifier_tensorflow_embedding.ckpt",
"similarity_type": "cosine",
"intent_tokenization_flag": false,
"num_neg": 20,
"mu_neg": -0.4,
"hidden_layer_size_a": [
256,
128
],
"droprate": 0.2,
"hidden_layer_size_b": [],
"name": "intent_classifier_tensorflow_embedding",
"C2": 0.002,
"intent_tokenization_flag": false,
"mu_pos": 0.8,
"class": "rasa_nlu.classifiers.embedding_intent_classifier.EmbeddingIntentClassifier",
"num_hidden_layers_a": 2,
"batch_size": [
64,
256
],
"num_hidden_layers_a": 2,
"num_hidden_layers_b": 0,
"C2": 0.002,
"mu_pos": 0.8,
"C_emb": 0.8,
"similarity_type": "cosine",
"intent_split_symbol": "_",
"evaluate_every_num_epochs": 10,
"evaluate_on_num_examples": 1000,
"C_emb": 0.8,
"epochs": 300,
"embed_dim": 20,
"intent_split_symbol": "_",
"use_max_sim_neg": true,
"hidden_layer_size_b": [],
"name": "intent_classifier_tensorflow_embedding",
"class": "rasa_nlu.classifiers.embedding_intent_classifier.EmbeddingIntentClassifier",
"evaluate_every_num_epochs": 10
"hidden_layer_size_a": [
256,
128
],
"embed_dim": 20
}
],
"training_data": "training_data.json",
"trained_at": "20181111-012714"
"trained_at": "20181111-135728"
}
@@ -1,169 +1,188 @@
{
"rasa_nlu_data": {
"entity_synonyms": [],
"regex_features": [],
"common_examples": [
{
"intent": "get_weather",
"text": "what's the weather like today",
"entities": [
{
"start": 24,
"value": "today",
"end": 29,
"entity": "day",
"end": 29
"value": "today"
}
]
],
"text": "what's the weather like today"
},
{
"intent": "get_weather",
"text": "what will the weather be like tomorrow",
"entities": [
{
"start": 30,
"value": "tomorrow",
"end": 38,
"entity": "day",
"end": 38
"value": "tomorrow"
}
]
],
"text": "what will the weather be like tomorrow"
},
{
"intent": "get_weather",
"text": "what is the weather like in Coventry",
"entities": [
{
"start": 28,
"value": "Coventry",
"end": 36,
"entity": "location",
"end": 36
"value": "Coventry"
}
]
],
"text": "what is the weather like in Coventry"
},
{
"intent": "get_weather",
"text": "what's the weather like in Tokyo",
"entities": [
{
"start": 27,
"value": "Tokyo",
"end": 32,
"entity": "location",
"end": 32
"value": "Tokyo"
}
]
],
"text": "what's the weather like in Tokyo"
},
{
"intent": "get_weather",
"text": "what's the weather like in Coventry tomorrow",
"entities": [
{
"start": 27,
"value": "Coventry",
"end": 35,
"entity": "location",
"end": 35
"value": "Coventry"
},
{
"start": 36,
"value": "tomorrow",
"end": 44,
"entity": "day",
"end": 44
"value": "tomorrow"
}
]
],
"text": "what's the weather like in Coventry tomorrow"
},
{
"intent": "get_weather",
"text": "what's the weather like in Oxford at 10am",
"entities": [
{
"start": 27,
"value": "Oxford",
"end": 33,
"entity": "location",
"end": 33
"value": "Oxford"
},
{
"start": 37,
"value": "10am",
"end": 41,
"entity": "time",
"end": 41
"value": "10am"
}
]
],
"text": "what's the weather like in Oxford at 10am"
},
{
"intent": "get_weather",
"text": "what's the weather like at 8pm",
"entities": [
{
"start": 27,
"value": "8pm",
"end": 30,
"entity": "time",
"end": 30
"value": "8pm"
}
]
],
"text": "what's the weather like at 8pm"
},
{
"intent": "get_weather",
"text": "what's the weather like on Monday",
"entities": [
{
"start": 27,
"value": "Monday",
"end": 33,
"entity": "day",
"end": 33
"value": "Monday"
}
]
],
"text": "what's the weather like on Monday"
},
{
"intent": "get_weather",
"text": "what's the weather like this week",
"entities": [
{
"start": 29,
"value": "week",
"end": 33,
"entity": "period",
"end": 33
"value": "week"
}
]
],
"text": "what's the weather like this week"
},
{
"intent": "get_weather",
"text": "what's the weather like this week in Oxford",
"entities": [
{
"start": 29,
"value": "week",
"end": 33,
"entity": "period",
"end": 33
"value": "week"
},
{
"start": 37,
"value": "Oxford",
"end": 43,
"entity": "location",
"end": 43
"value": "Oxford"
}
]
],
"text": "what's the weather like this week in Oxford"
},
{
"intent": "remember_location",
"text": "remember my location is Birmingham",
"entities": [
{
"start": 24,
"value": "Birmingham",
"end": 34,
"entity": "location",
"end": 34
"value": "Birmingham"
}
]
],
"text": "remember my location is Birmingham"
},
{
"intent": "remember_location",
"text": "remember that I live in Coventry",
"entities": [
{
"start": 24,
"value": "Coventry",
"end": 32,
"entity": "location",
"end": 32
"value": "Coventry"
}
]
],
"text": "remember that I live in Coventry"
},
{
"intent": "remember_location",
"entities": [
{
"start": 24,
"end": 39,
"entity": "location",
"value": "Chipping Norton"
}
],
"text": "remember that I live in Chipping Norton"
},
{
"intent": "recite_location",
"text": "where do I live?"
},
{
"intent": "recite_location",
"text": "what's my location?"
},
{
"intent": "greet",
@@ -222,6 +241,7 @@
"text": "n"
}
],
"lookup_tables": []
"lookup_tables": [],
"regex_features": []
}
}
@@ -13,6 +13,11 @@
## intent:remember_location
- remember my location is [Birmingham](location)
- remember that I live in [Coventry](location)
- remember that I live in [Chipping Norton](location)

## intent:recite_location
- where do I live?
- what's my location?

## intent:greet
- hello

0 comments on commit 8a0b890

Please sign in to comment.