11187c1fd28a0c9a11836aa8b27cc21e47b6855f,nlp_architect/api/intent_extraction_api.py,IntentExtractionApi,display_results,#IntentExtractionApi#Any#Any#Any#,87
Before Change
spans = []
for t, n in zip(text_str, predictions):
if n != "O":
ret["annotation_set"].append(n.lower() )
spans.append({
"start": counter,
"end": counter + len(t),
After Change
"type": tag
})
available_tags.add(tag)
ret["annotation_set"] = list(available_tags)
ret["spans"] = spans
ret["title"] = intent_type
return {"doc": ret, "type": "high_level"}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: NervanaSystems/nlp-architect
Commit Name: 11187c1fd28a0c9a11836aa8b27cc21e47b6855f
Time: 2018-11-11
Author: peteriz@users.noreply.github.com
File Name: nlp_architect/api/intent_extraction_api.py
Class Name: IntentExtractionApi
Method Name: display_results
Project Name: pytorch/text
Commit Name: 2f77be52d2d379a6665af57fb126e9c69490ef00
Time: 2017-01-17
Author: jekbradbury@gmail.com
File Name: torchtext/data.py
Class Name: Dataset
Method Name: __init__
Project Name: EducationalTestingService/skll
Commit Name: 140f9765f4c4f5165fd546bea30b2c473b9abb10
Time: 2014-11-07
Author: dblanchard@ets.org
File Name: skll/utilities/join_features.py
Class Name:
Method Name: main