mirror of https://github.com/explosion/spaCy.git
Remove test
This commit is contained in:
parent
197406de1d
commit
9bf69bfbb2
|
@ -82,19 +82,6 @@ def test_get_oracle_moves_negative_O(tsys, vocab):
|
||||||
assert names
|
assert names
|
||||||
|
|
||||||
|
|
||||||
def test_doc_add_entities_set_ents_iob(en_vocab):
|
|
||||||
doc = Doc(en_vocab, words=["This", "is", "a", "lion"])
|
|
||||||
ner = EntityRecognizer(en_vocab)
|
|
||||||
ner.begin_training([])
|
|
||||||
ner(doc)
|
|
||||||
assert len(list(doc.ents)) == 0
|
|
||||||
assert [w.ent_iob_ for w in doc] == (["O"] * len(doc))
|
|
||||||
doc.ents = [(doc.vocab.strings["ANIMAL"], 3, 4)]
|
|
||||||
assert [w.ent_iob_ for w in doc] == ["", "", "", "B"]
|
|
||||||
doc.ents = [(doc.vocab.strings["WORD"], 0, 2)]
|
|
||||||
assert [w.ent_iob_ for w in doc] == ["B", "I", "", ""]
|
|
||||||
|
|
||||||
|
|
||||||
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"]
|
||||||
|
|
Loading…
Reference in New Issue