b7a0c9bf60757acdf0586b35ec755ccd8fab5099,examples/pipeline/wikidata_entity_linking.py,,run_pipeline,#,51
Before Change
print("STEP 9: testing NLP IO", datetime.datetime.now())
print()
print("writing to", NLP_2_DIR)
with el_pipe.model.use_params(optimizer.averages) and el_pipe.model.tok2vec.use_params(el_pipe.sgd_context.averages):
nlp_2.to_disk(NLP_2_DIR)
print()
// verify that the IO has gone correctly
if to_read_nlp:
After Change
// measuring combined accuracy (prior + context)
el_pipe.cfg["context_weight"] = 1
el_pipe.cfg["prior_weight"] = 1
dev_acc_combo, dev_acc_combo_dict = _measure_accuracy(dev_data, el_pipe, error_analysis=False)
print("dev acc combo avg:", round(dev_acc_combo, 3),
[(x, round(y, 3)) for x, y in dev_acc_combo_dict.items()])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: explosion/spaCy
Commit Name: b7a0c9bf60757acdf0586b35ec755ccd8fab5099
Time: 2019-07-03
Author: sofie.vanlandeghem@gmail.com
File Name: examples/pipeline/wikidata_entity_linking.py
Class Name:
Method Name: run_pipeline
Project Name: explosion/thinc
Commit Name: 4210de274637540142d538897011e13a60c3c084
Time: 2018-05-19
Author: honnibal+gh@gmail.com
File Name: examples/lstm_tagger.py
Class Name:
Method Name: main
Project Name: explosion/thinc
Commit Name: aae4cf8b61d65b01fbadeb9df9ff8bd966ce59c4
Time: 2018-05-19
Author: honnibal+gh@gmail.com
File Name: examples/lstm_tagger.py
Class Name:
Method Name: main