* Whitespace

This commit is contained in:
Matthew Honnibal 2016-05-02 16:08:11 +02:00
parent 29a114e645
commit 308a28c26c

View File

@ -12,13 +12,13 @@ def test_root(EN):
@pytest.mark.models @pytest.mark.models
def test_one_word_sentence(EN): def test_one_word_sentence(EN):
# one word sentence # one word sentence
doc = EN.tokenizer.tokens_from_list(['Hello']) doc = EN.tokenizer.tokens_from_list(['Hello'])
EN.tagger(doc) EN.tagger(doc)
assert len(doc) == 1 assert len(doc) == 1
with EN.parser.step_through(doc) as _: with EN.parser.step_through(doc) as _:
pass pass
assert doc[0].dep != 0 assert doc[0].dep != 0
def apply_transition_sequence(model, doc, sequence): def apply_transition_sequence(model, doc, sequence):