Update tests

This commit is contained in:
Matthew Honnibal 2017-10-05 08:12:27 -05:00
parent 95bca20c17
commit fd4baff475
3 changed files with 7 additions and 8 deletions

View File

@ -57,7 +57,6 @@ def test_en_lemmatizer_punct(en_lemmatizer):
def test_en_lemmatizer_lemma_assignment(EN):
text = "Bananas in pyjamas are geese."
doc = EN.make_doc(text)
EN.tensorizer(doc)
assert all(t.lemma_ == '' for t in doc)
EN.tagger(doc)
assert all(t.lemma_ != '' for t in doc)

View File

@ -52,6 +52,7 @@ def test_en_models_vectors(example):
# this isn't a perfect test since this could in principle fail
# in a sane model as well,
# but that's very unlikely and a good indicator if something is wrong
if example.vocab.vectors_length:
vector0 = example[0].vector
vector1 = example[1].vector
vector2 = example[2].vector

View File

@ -19,7 +19,6 @@ def test_issue429(EN):
matcher = Matcher(EN.vocab)
matcher.add('TEST', merge_phrases, [{'ORTH': 'a'}])
doc = EN.make_doc('a b c')
EN.tensorizer(doc)
EN.tagger(doc)
matcher(doc)
EN.entity(doc)