75df2742635b09f97e8d7ec9396750aa17046567,snips_nlu/intent_parser/builtin_intent_parser.py,BuiltinIntentParser,_parse,#BuiltinIntentParser#Any#,33
Before Change
return result(text)
entities = get_built_in_intent_entities(
text, BuiltInIntent[most_likely_intent["intent"]])
return result(text, most_likely_intent, entities)
def get_intent(self, text):
After Change
return {"text": text, "intent": None, "entities": []}
intent = self.get_intent(text)
entities = self.get_entities(text, intent=intent.get("name"))
return {"text": text, "intent": intent, "entities": entities}
def get_intent(self, text):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: snipsco/snips-nlu
Commit Name: 75df2742635b09f97e8d7ec9396750aa17046567
Time: 2017-03-24
Author: tristan.deleu@gmail.com
File Name: snips_nlu/intent_parser/builtin_intent_parser.py
Class Name: BuiltinIntentParser
Method Name: _parse
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: parse
Project Name: Hironsan/anago
Commit Name: 8e855e7b97d0367e835bc682818d6a5f4381fd0e
Time: 2017-08-21
Author: light.tree.1.13@gmail.com
File Name: anago/server/server.py
Class Name: MainHandler
Method Name: post