mirror of https://github.com/explosion/spaCy.git
Test simple indexing for Span
This commit is contained in:
parent
ef2af20cd3
commit
5cc2f2b01a
|
@ -57,6 +57,9 @@ def test_getitem(EN):
|
|||
span = tokens[40:50]
|
||||
assert span.start == span.end == 7 and not to_str(span)
|
||||
|
||||
span = tokens[1:4]
|
||||
assert span[0].orth_ == 'it'
|
||||
|
||||
|
||||
@pytest.mark.models
|
||||
def test_serialize(EN):
|
||||
|
|
Loading…
Reference in New Issue