a249db187c104e18d375c7544bacc5dadb9c7438,snips_nlu/tests/test_nlu_engine.py,TestSnipsNLUEngine,test_should_parse_with_builtin_when_customs_return_nothing,#TestSnipsNLUEngine#,83

Before Change


        mocked_builtin_parser.get_intent.return_value = builtin_intent_result
        mocked_builtin_parser.get_slots.return_value = builtin_entities

        engine = SnipsNLUEngine([mocked_parser1, mocked_parser2],
                                mocked_builtin_parser)

        // When
        text = "hello world"
        parse = engine.parse(text)

After Change


        mocked_builtin_parser.get_intent.return_value = builtin_intent_result
        mocked_builtin_parser.get_slots.return_value = builtin_entities

        engine = SnipsNLUEngine()
        engine.custom_parsers = [mocked_parser1, mocked_parser2]
        engine.builtin_parser = mocked_builtin_parser

        // When
        text = "hello world"
        parse = engine.parse(text)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: snipsco/snips-nlu
Commit Name: a249db187c104e18d375c7544bacc5dadb9c7438
Time: 2017-04-03
Author: adrien.ball@snips.net
File Name: snips_nlu/tests/test_nlu_engine.py
Class Name: TestSnipsNLUEngine
Method Name: test_should_parse_with_builtin_when_customs_return_nothing


Project Name: snipsco/snips-nlu
Commit Name: a249db187c104e18d375c7544bacc5dadb9c7438
Time: 2017-04-03
Author: adrien.ball@snips.net
File Name: snips_nlu/tests/test_nlu_engine.py
Class Name: TestSnipsNLUEngine
Method Name: test_should_use_parsers_sequentially


Project Name: snipsco/snips-nlu
Commit Name: a249db187c104e18d375c7544bacc5dadb9c7438
Time: 2017-04-03
Author: adrien.ball@snips.net
File Name: snips_nlu/tests/test_nlu_engine.py
Class Name: TestSnipsNLUEngine
Method Name: test_should_parse_with_builtin_when_no_custom