e60e036923b4f57ddc23b4f5e6e13ec3cc79fb61,tests/lang/en/test_parser.py,,test_en_parser_depset,#Any#Any#,37

Before Change


def test_en_parser_depset(NLP, test_file):
    Check that no tags outside the tagset are produced.
    // fmt: off
    gold_deps = set(["ROOT", "acl", "acomp", "advcl", "advmod", "agent", "amod",
                     "appos", "attr", "aux", "auxpass", "case", "cc", "ccomp",
                     "compound", "conj", "csubj", "csubjpass", "dative", "dep",
                     "det", "dobj", "expl", "intj", "mark", "meta", "neg",
                     "nmod", "npadvmod", "nsubj", "nsubjpass", "nummod", "oprd",
                     "parataxis", "pcomp", "pobj", "poss", "preconj", "predet",
                     "prep", "prt", "punct", "quantmod", "relcl", "root", "xcomp"])
    // fmt: on
    data_path = TEST_FILES_DIR / test_file
    if not data_path.exists():
        raise FileNotFoundError("Test corpus not found", data_path)

After Change


)
def test_en_parser_depset(NLP, test_file):
    Check that no tags outside the tagset are produced.
    gold_deps = set(NLP.get_pipe("parser").labels)
    data_path = TEST_FILES_DIR / test_file
    if not data_path.exists():
        raise FileNotFoundError("Test corpus not found", data_path)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: explosion/spacy-models
Commit Name: e60e036923b4f57ddc23b4f5e6e13ec3cc79fb61
Time: 2019-11-07
Author: adrianeboyd@gmail.com
File Name: tests/lang/en/test_parser.py
Class Name:
Method Name: test_en_parser_depset


Project Name: explosion/spacy-models
Commit Name: e60e036923b4f57ddc23b4f5e6e13ec3cc79fb61
Time: 2019-11-07
Author: adrianeboyd@gmail.com
File Name: tests/lang/de/test_parser.py
Class Name:
Method Name: test_de_parser_depset


Project Name: explosion/spaCy
Commit Name: d82241218a5b8240e0072b1c1ad92b61275d7f71
Time: 2019-10-02
Author: adrianeboyd@gmail.com
File Name: examples/streamlit_spacy.py
Class Name:
Method Name: