mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-11 09:00:36 +03:00
Xfail tests
This commit is contained in:
parent
e92be79ffc
commit
5a2d37c18f
|
@ -89,6 +89,9 @@ def test_get_oracle_moves_negative_O(tsys, vocab):
|
||||||
assert names
|
assert names
|
||||||
|
|
||||||
|
|
||||||
|
# We can't easily represent this on a Doc object. Not sure what the best solution
|
||||||
|
# would be, but I don't think it's an important use case?
|
||||||
|
@pytest.mark.xfail(reason="No longer supported")
|
||||||
def test_oracle_moves_missing_B(en_vocab):
|
def test_oracle_moves_missing_B(en_vocab):
|
||||||
words = ["B", "52", "Bomber"]
|
words = ["B", "52", "Bomber"]
|
||||||
biluo_tags = [None, None, "L-PRODUCT"]
|
biluo_tags = [None, None, "L-PRODUCT"]
|
||||||
|
@ -111,7 +114,9 @@ def test_oracle_moves_missing_B(en_vocab):
|
||||||
moves.add_action(move_types.index("U"), label)
|
moves.add_action(move_types.index("U"), label)
|
||||||
moves.get_oracle_sequence(example)
|
moves.get_oracle_sequence(example)
|
||||||
|
|
||||||
|
# We can't easily represent this on a Doc object. Not sure what the best solution
|
||||||
|
# would be, but I don't think it's an important use case?
|
||||||
|
@pytest.mark.xfail(reason="No longer supported")
|
||||||
def test_oracle_moves_whitespace(en_vocab):
|
def test_oracle_moves_whitespace(en_vocab):
|
||||||
words = ["production", "\n", "of", "Northrop", "\n", "Corp.", "\n", "'s", "radar"]
|
words = ["production", "\n", "of", "Northrop", "\n", "Corp.", "\n", "'s", "radar"]
|
||||||
biluo_tags = ["O", "O", "O", "B-ORG", None, "I-ORG", "L-ORG", "O", "O"]
|
biluo_tags = ["O", "O", "O", "B-ORG", None, "I-ORG", "L-ORG", "O", "O"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user