ee0dab4ec731092cb6a976c86320c7c681b42718,snips_nlu/tests/test_probabilistic_intent_parser.py,TestProbabilisticIntentParser,test_should_parse_top_intents,#TestProbabilisticIntentParser#,101

Before Change


        slot_filler_config = CRFSlotFillerConfig(random_seed=42)
        parser_config = ProbabilisticIntentParserConfig(
            classifier_config, slot_filler_config)
        parser = ProbabilisticIntentParser(parser_config).fit(dataset)
        text = "foo bar baz"

        // When

After Change


        slot_filler_config = CRFSlotFillerConfig(random_seed=42)
        parser_config = ProbabilisticIntentParserConfig(
            classifier_config, slot_filler_config)
        resources = self.get_resources("en")
        parser = ProbabilisticIntentParser(parser_config, resources=resources)
        parser.fit(dataset)
        text = "foo bar baz"

        // When
        results = parser.parse(text, top_n=2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: snipsco/snips-nlu
Commit Name: ee0dab4ec731092cb6a976c86320c7c681b42718
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_probabilistic_intent_parser.py
Class Name: TestProbabilisticIntentParser
Method Name: test_should_parse_top_intents


Project Name: snipsco/snips-nlu
Commit Name: ee0dab4ec731092cb6a976c86320c7c681b42718
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_probabilistic_intent_parser.py
Class Name: TestProbabilisticIntentParser
Method Name: test_should_parse_with_filter


Project Name: snipsco/snips-nlu
Commit Name: ee0dab4ec731092cb6a976c86320c7c681b42718
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_probabilistic_intent_parser.py
Class Name: TestProbabilisticIntentParser
Method Name: test_should_get_intents


Project Name: snipsco/snips-nlu
Commit Name: ee0dab4ec731092cb6a976c86320c7c681b42718
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_probabilistic_intent_parser.py
Class Name: TestProbabilisticIntentParser
Method Name: test_should_parse