Remove test

This commit is contained in:
Ines Montani 2019-09-19 17:38:41 +02:00
parent 197406de1d
commit 9bf69bfbb2
1 changed files with 0 additions and 13 deletions

View File

@ -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"]