cfed78eb5817ba8e688f363df75e9160a103f134,snips_nlu/nlu_engine/nlu_engine.py,SnipsNLUEngine,parse,#SnipsNLUEngine#Any#Any#,100

Before Change


                     if is_builtin_entity(s[RES_ENTITY])]
            resolved_slots = resolve_slots(text, slots, entities, language,
                                           scope)
            return parsing_result(text, intent=res[RES_INTENT],
                                  slots=resolved_slots)
        logging.debug("Parsed query in {}".format(elapsed_since(start)))
        return empty_result(text)

    def to_dict(self):

After Change


            resolved_slots = resolve_slots(text, slots, entities, language,
                                           scope)

            result = parsing_result(text, intent=res[RES_INTENT],
                                    slots=resolved_slots)
            break
        result = result or empty_result(text)
        logging.debug("Parsed query in {}".format(elapsed_since(start)))
        logger.debug("Result -> {}".format(json_debug_string(result)))
        return result

    def to_dict(self):
        Returns a json-serializable dict
        intent_parsers = [parser.to_dict() for parser in self.intent_parsers]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: snipsco/snips-nlu
Commit Name: cfed78eb5817ba8e688f363df75e9160a103f134
Time: 2018-04-25
Author: clement.doumouro@gmail.com
File Name: snips_nlu/nlu_engine/nlu_engine.py
Class Name: SnipsNLUEngine
Method Name: parse


Project Name: snipsco/snips-nlu
Commit Name: cfed78eb5817ba8e688f363df75e9160a103f134
Time: 2018-04-25
Author: clement.doumouro@gmail.com
File Name: snips_nlu/nlu_engine/nlu_engine.py
Class Name: SnipsNLUEngine
Method Name: parse


Project Name: snipsco/snips-nlu
Commit Name: cfed78eb5817ba8e688f363df75e9160a103f134
Time: 2018-04-25
Author: clement.doumouro@gmail.com
File Name: snips_nlu/intent_parser/probabilistic_intent_parser.py
Class Name: ProbabilisticIntentParser
Method Name: parse


Project Name: snipsco/snips-nlu
Commit Name: cfed78eb5817ba8e688f363df75e9160a103f134
Time: 2018-04-25
Author: clement.doumouro@gmail.com
File Name: snips_nlu/intent_parser/deterministic_intent_parser.py
Class Name: DeterministicIntentParser
Method Name: parse