2e7474237f8b40bd5b3b767135c142ef1658b27b,tests/lang/ro/test_parser.py,,test_ro_parser_corpus,#,12
Before Change
)
def test_ro_parser_corpus(NLP, test_file, uas_threshold, las_threshold):
data_path = TEST_FILES_DIR / test_file
if not data_path.exists():
raise FileNotFoundError("Test corpus not found", data_path)
examples = json_path_to_examples(data_path, NLP)
scores = NLP.evaluate(examples)
assert scores["dep_uas"] > uas_threshold
assert scores["dep_las"] > las_threshold
After Change
)
def test_ro_parser_corpus(NLP, test_file, uas_threshold, las_threshold):
data_path = TEST_FILES_DIR / test_file
evaluate_corpus(NLP, data_path, {"dep_uas": uas_threshold, "dep_las": las_threshold})
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 14
Instances
Project Name: explosion/spacy-models
Commit Name: 2e7474237f8b40bd5b3b767135c142ef1658b27b
Time: 2020-10-15
Author: adrianeboyd@gmail.com
File Name: tests/lang/ro/test_parser.py
Class Name:
Method Name: test_ro_parser_corpus
Project Name: explosion/spacy-models
Commit Name: 2e7474237f8b40bd5b3b767135c142ef1658b27b
Time: 2020-10-15
Author: adrianeboyd@gmail.com
File Name: tests/lang/da/test_ner.py
Class Name:
Method Name: test_da_ner_corpus
Project Name: explosion/spacy-models
Commit Name: 2e7474237f8b40bd5b3b767135c142ef1658b27b
Time: 2020-10-15
Author: adrianeboyd@gmail.com
File Name: tests/lang/ro/test_parser.py
Class Name:
Method Name: test_ro_parser_corpus
Project Name: explosion/spacy-models
Commit Name: 2e7474237f8b40bd5b3b767135c142ef1658b27b
Time: 2020-10-15
Author: adrianeboyd@gmail.com
File Name: tests/lang/ja/test_segmenter.py
Class Name:
Method Name: test_ja_segmenter_corpus
Project Name: explosion/spacy-models
Commit Name: 2e7474237f8b40bd5b3b767135c142ef1658b27b
Time: 2020-10-15
Author: adrianeboyd@gmail.com
File Name: tests/lang/ro/test_ner.py
Class Name:
Method Name: test_ro_ner_corpus
Project Name: explosion/spacy-models
Commit Name: 2e7474237f8b40bd5b3b767135c142ef1658b27b
Time: 2020-10-15
Author: adrianeboyd@gmail.com
File Name: tests/lang/zh/test_segmenter.py
Class Name:
Method Name: test_zh_segmenter_corpus