2e2e8d2ca323ab447656cdda755ee2e8b018c901,snips_nlu/tests/test_regex_intent_parser.py,TestRegexIntentParser,test_should_parse,#TestRegexIntentParser#,138

Before Change



        // Then
        expected_entities = [
            {
                "range": (10, 17),
                "value": "dummy_a",
                "entity": "dummy_entity_1",
                "slotName": "dummy_slotName"
            },
            {
                "range": (37, 44),
                "value": "dummy_c",

After Change


                          entity="dummy_entity_2", slot_name="dummy_slot_name2")
        ]
        expected_proba = (len("dummy_a") + len("dummy_c")) / float(len(text))
        expected_intent = intent_classification_result(
            intent_name="dummy_intent_1",
            probability=expected_proba)
        expected_parse = result(text=text, parsed_intent=expected_intent,
                                parsed_entities=expected_entities)
        self.assertEqual(parse, expected_parse)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: snipsco/snips-nlu
Commit Name: 2e2e8d2ca323ab447656cdda755ee2e8b018c901
Time: 2017-03-24
Author: adrien.ball@snips.net
File Name: snips_nlu/tests/test_regex_intent_parser.py
Class Name: TestRegexIntentParser
Method Name: test_should_parse


Project Name: snipsco/snips-nlu
Commit Name: c1ba10f9e950fadde16a1c621d97a863d9366038
Time: 2017-02-24
Author: clement.doumouro@snips.ai
File Name: custom_intent_parser/intent_parser/regex_intent_parser.py
Class Name: RegexIntentParser
Method Name: _update_cache


Project Name: snipsco/snips-nlu
Commit Name: 2e2e8d2ca323ab447656cdda755ee2e8b018c901
Time: 2017-03-24
Author: adrien.ball@snips.net
File Name: snips_nlu/tests/test_regex_intent_parser.py
Class Name: TestRegexIntentParser
Method Name: test_should_get_intent