mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
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]
|
span = tokens[40:50]
|
||||||
assert span.start == span.end == 7 and not to_str(span)
|
assert span.start == span.end == 7 and not to_str(span)
|
||||||
|
|
||||||
|
span = tokens[1:4]
|
||||||
|
assert span[0].orth_ == 'it'
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.models
|
@pytest.mark.models
|
||||||
def test_serialize(EN):
|
def test_serialize(EN):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user