mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-03 02:48:04 +03:00
* Whitespace
This commit is contained in:
parent
29a114e645
commit
308a28c26c
|
@ -12,13 +12,13 @@ def test_root(EN):
|
|||
|
||||
@pytest.mark.models
|
||||
def test_one_word_sentence(EN):
|
||||
# one word sentence
|
||||
doc = EN.tokenizer.tokens_from_list(['Hello'])
|
||||
EN.tagger(doc)
|
||||
assert len(doc) == 1
|
||||
with EN.parser.step_through(doc) as _:
|
||||
pass
|
||||
assert doc[0].dep != 0
|
||||
# one word sentence
|
||||
doc = EN.tokenizer.tokens_from_list(['Hello'])
|
||||
EN.tagger(doc)
|
||||
assert len(doc) == 1
|
||||
with EN.parser.step_through(doc) as _:
|
||||
pass
|
||||
assert doc[0].dep != 0
|
||||
|
||||
|
||||
def apply_transition_sequence(model, doc, sequence):
|
||||
|
|
Loading…
Reference in New Issue
Block a user