Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
update skip conditions on const-parser-test (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh authored Jun 23, 2020
1 parent 2754f88 commit d6798ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/pretrained_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,10 @@ def test_ner(self):
]
assert result["tags"] == ["B-PER", "L-PER", "O", "O", "O", "O", "U-LOC", "O"]

@pytest.mark.skipif(spacy.__version__ < "2.1", reason="this model changed from 2.0 to 2.1")
@pytest.mark.skipif(
not ("2.1" <= spacy.__version__ < "2.3"),
reason="this model changed before and after 2.1 and 2.2",
)
def test_constituency_parsing(self):
predictor = pretrained.span_based_constituency_parsing_with_elmo_joshi_2018()

Expand Down

0 comments on commit d6798ce

Please sign in to comment.