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: