9cecc52e1fbf8b281d88244f6c43d2b76e374993,snips_nlu/nlu_engine/nlu_engine.py,SnipsNLUEngine,parse,#SnipsNLUEngine#Any#Any#,34
Before Change
"`parse`")
language = Language.from_iso_code(
self.dataset_metadata["language_code"])
return parse(text, self.dataset_metadata["entities"], language,
self.intent_parsers, intent)
def fit(self, dataset, intents=None):
Fit the NLU engine.
After Change
entities = self._dataset_metadata["entities"]
for parser in self.intent_parsers:
res = parser.parse(text, intents)
if is_empty(res):
continue
slots = res[RES_SLOTS]
scope = [BuiltInEntity.from_label(s[RES_ENTITY]) for s in slots
if is_builtin_entity(s[RES_ENTITY])]
resolved_slots = resolve_slots(text, slots, entities, language,
scope)
return parsing_result(text, intent=res[RES_INTENT],
slots=resolved_slots)
return empty_result(text)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: snipsco/snips-nlu
Commit Name: 9cecc52e1fbf8b281d88244f6c43d2b76e374993
Time: 2018-02-07
Author: adrien.ball@snips.net
File Name: snips_nlu/nlu_engine/nlu_engine.py
Class Name: SnipsNLUEngine
Method Name: parse
Project Name: shibing624/pycorrector
Commit Name: 4e144c9f842d7415d8be5bdbb5912d88ae32cced
Time: 2018-04-16
Author: 507153809@qq.com
File Name: pycorrector/seq2seq/corpus_reader.py
Class Name: CGEDReader
Method Name: read_samples_by_string
Project Name: chainer/chainer
Commit Name: 75231a39c212fc8066f99633698b7e59b2ce4efb
Time: 2019-10-13
Author: duaipp@gmail.com
File Name: onnx_chainer/onnx_helper.py
Class Name:
Method Name: is_support_non_standard_domain