ab1b67c1e958c9a642f57095f3499a893ba0a5b2,snips_nlu/intent_parser/builtin_intent_parser.py,BuiltinIntentParser,parse,#BuiltinIntentParser#Any#,53

Before Change



    def parse(self, text):
        if text not in self._cache:
            self._cache[text] = self._parse(text)
        return self._cache[text]

    def _parse(self, text):
        intent = self.get_intent(text)
        if intent is None:

After Change



    def parse(self, text):
        intent = self.get_intent(text)
        entities = self.get_entities(text, intent=intent["name"])
        return result(text, parsed_intent=intent, parsed_entities=entities)

    def get_intent(self, text):
        tokenized_text = tokenize({"text": unicode(text)})
        intent_classifier = IntentClassifier(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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: 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/nlu_engine/nlu_engine.py
Class Name: SnipsNLUEngine
Method Name: _parse