ab2daffdb1b1210ffaee703cdd2b27e25dd32338,snips_nlu/intent_parser/regex_intent_parser.py,RegexIntentParser,get_intent,#RegexIntentParser#Any#,184

Before Change


            raise AssertionError("RegexIntentParser must be fitted before "
                                 "calling `get_entities`")
        if text not in self._cache:
            self._parse(text)
        return self._cache[text].parsed_intent

    def get_slots(self, text, intent=None):
        if not self.fitted:

After Change


            raise AssertionError("RegexIntentParser must be fitted before "
                                 "calling `get_entities`")
        if text not in self._cache:
            self._cache[text] = self._parse(text)
        return self._cache[text].parsed_intent

    def get_slots(self, text, intent=None):
        if not self.fitted:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: snipsco/snips-nlu
Commit Name: ab2daffdb1b1210ffaee703cdd2b27e25dd32338
Time: 2017-05-11
Author: clement.doumouro@snips.ai
File Name: snips_nlu/intent_parser/regex_intent_parser.py
Class Name: RegexIntentParser
Method Name: get_intent


Project Name: astroML/astroML
Commit Name: 72cb7a23af6fbe31367cbfcbbe13994455708593
Time: 2019-01-02
Author: bsipocz@gmail.com
File Name: doc/sphinxext/numpy_ext/docscrape.py
Class Name: NumpyDocString
Method Name: __init__


Project Name: snipsco/snips-nlu
Commit Name: ab2daffdb1b1210ffaee703cdd2b27e25dd32338
Time: 2017-05-11
Author: clement.doumouro@snips.ai
File Name: snips_nlu/intent_parser/regex_intent_parser.py
Class Name: RegexIntentParser
Method Name: get_slots