c1ba10f9e950fadde16a1c621d97a863d9366038,custom_intent_parser/intent_parser/regex_intent_parser.py,RegexIntentParser,get_intent,#RegexIntentParser#Any#,31

Before Change


        if text not in self._cache:
            self._update_cache(text)
        parse = self._cache[text]
        return {"intent": parse["intent"], "text": text}

    def get_entities(self, text, intent=None):
        if text not in self._cache:
            self._update_cache(text)

After Change


        if text not in self._cache:
            self._update_cache(text)
        parse = self._cache[text]
        return intent_classification_result(
            parse["intent"].get("name"), parse["intent"].get("prob"))

    def get_entities(self, text, intent=None):
        if text not in self._cache:
            self._update_cache(text)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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: get_intent


Project Name: snipsco/snips-nlu
Commit Name: ab1b67c1e958c9a642f57095f3499a893ba0a5b2
Time: 2017-03-24
Author: adrien.ball@snips.net
File Name: snips_nlu/intent_parser/builtin_intent_parser.py
Class Name: BuiltinIntentParser
Method Name: get_intent


Project Name: snipsco/snips-nlu
Commit Name: 09124c74cc53726a4ae873e91c060979f9fdaeb7
Time: 2017-03-24
Author: tristan.deleu@gmail.com
File Name: snips_nlu/intent_parser/builtin_intent_parser.py
Class Name: BuiltinIntentParser
Method Name: get_intent