diff --git a/tests/test_read_pos.py b/tests/test_read_pos.py deleted file mode 100644 index 5590679b1..000000000 --- a/tests/test_read_pos.py +++ /dev/null @@ -1,15 +0,0 @@ -import py.test -from spacy.pos_util import realign_tagged -from spacy.pos_util import _parse_line - -def test_realign(): - rules = [",", "can't", "``"] - tagged = "``/`` I/PRP ca/MD n't/RB" - assert realign_tagged(rules, tagged) == "``I/``_PRP can't/MD_RB" - - -def test_parse_line(): - line = "Pierre/NNP Vinken,/NNP_, isn't/VBZ_RB 61/CD years/NNS old./RB_.\n" - tokens, tags = _parse_line(line, '/') - assert len(tokens) == len(tags) - assert len(tokens) == 9