28f7be306332f7a3a3d96842356f35b25830337f,stanfordnlp/run_pipeline.py,,,#,12
Before Change
input_text = open(args.text_file).read()
// build document
print("running pipeline...")
doc = pipeline(input_text)
// write conll to file
doc.write_conll_to_file(output_file_path)
print("done.")
print("results written to: "+output_file_path)
After Change
pipeline = Pipeline(lang=args.language, models_dir=args.models_dir)
// build document
print("running pipeline...")
doc = pipeline(open(args.text_file).read())
// write conll to file
doc.write_conll_to_file(output_file_path)
print("done.")
print("results written to: "+output_file_path)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: stanfordnlp/stanza
Commit Name: 28f7be306332f7a3a3d96842356f35b25830337f
Time: 2019-01-23
Author: jebolton@stanford.edu
File Name: stanfordnlp/run_pipeline.py
Class Name:
Method Name:
Project Name: pytorch/text
Commit Name: e58d3536e55a1c136d4868fb47593b95eb511534
Time: 2020-09-21
Author: 6156351+zhangguanheng66@users.noreply.github.com
File Name: examples/data_pipeline/pipelines.py
Class Name:
Method Name: run_benchmark_lookup
Project Name: pytorch/text
Commit Name: ee177fefcfc038e7148497018cec1c9a8c944383
Time: 2020-09-02
Author: 6156351+zhangguanheng66@users.noreply.github.com
File Name: examples/data_pipeline/pipelines.py
Class Name:
Method Name: run_benchmark_lookup