0cc6fc510bca56c8a24e729caeb3118c40344433,deeppavlov/models/ner/slotfill.py,DstcSlotFillingNetwork,infer,#DstcSlotFillingNetwork#Any#,71
Before Change
def infer(self, instance, *args, **kwargs):
instance = instance.strip().lower()
if not all([ord(c) < 128 for c in instance]):
print("Non ASCII symbols in the string, returning empty slots", file=sys.stderr)
return {}
tokens = tokenize_reg(instance)
if len(tokens) > 0:
After Change
def infer(self, instance, *args, **kwargs):
instance = instance.strip().lower()
if not all([ord(c) < 128 for c in instance]):
log.warning("Non ASCII symbols in the string, returning empty slots")
return {}
tokens = tokenize_reg(instance)
if len(tokens) > 0:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: deepmipt/DeepPavlov
Commit Name: 0cc6fc510bca56c8a24e729caeb3118c40344433
Time: 2018-02-07
Author: alitinsky@gmail.com
File Name: deeppavlov/models/ner/slotfill.py
Class Name: DstcSlotFillingNetwork
Method Name: infer
Project Name: dmlc/gluon-cv
Commit Name: 92816c9b9fa67b63a5638fd50e012e28f76bb4d9
Time: 2019-11-26
Author: pedro.larroy.lists@gmail.com
File Name: gluoncv/model_zoo/model_store.py
Class Name:
Method Name: get_model_file
Project Name: microsoft/nni
Commit Name: 43de011869b8f6a1778a1e1d7f56c2340cab39d6
Time: 2020-02-17
Author: Quanlu.Zhang@microsoft.com
File Name: src/sdk/pynni/nni/compression/speedup/torch/compressor.py
Class Name: ModelSpeedup
Method Name: _build_graph
Project Name: deepmipt/DeepPavlov
Commit Name: 81a5974482c7f166cbcf3db1f6965be7847662e7
Time: 2018-02-07
Author: alitinsky@gmail.com
File Name: deeppavlov/models/classifiers/intents/intent_model.py
Class Name: KerasIntentModel
Method Name: train