650a9bb35b4b0796ee90c5ac0b498af54c32c2e3,core_models/intent_extraction/interactive.py,,,#,34
Before Change
model = IntentExtractionModel()
model.load(args.model_path)
if args.dataset == "atis":
ds = ATIS()
if args.dataset == "snips":
ds = SNIPS()
nlp = spacy.load("en")
After Change
help="Word embedding model vector size")
args = parser.parse_args()
if not os.path.exists(args.model_path):
print("model_path does not exist")
sys.exit(0)
if args.embedding_model is not None and not os.path.exists(args.embedding_model):
print("word embedding model file was not found")
sys.exit(0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: NervanaSystems/nlp-architect
Commit Name: 650a9bb35b4b0796ee90c5ac0b498af54c32c2e3
Time: 2018-05-08
Author: peteriz@users.noreply.github.com
File Name: core_models/intent_extraction/interactive.py
Class Name:
Method Name:
Project Name: ray-project/ray
Commit Name: 55ae567f7a4c6213543d002b42270569454b5378
Time: 2020-12-18
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/examples/sigopt_multi_objective_example.py
Class Name:
Method Name:
Project Name: pytorch/pytorch
Commit Name: 1b35b1a0c4efa0cb14441a53d5f9d50c15484b26
Time: 2021-03-05
Author: hong@topbug.net
File Name: test/distributed/algorithms/ddp_comm_hooks/test_ddp_hooks.py
Class Name:
Method Name: