mirror of https://github.com/explosion/spaCy.git
Update doc tests
This commit is contained in:
parent
57efafceb1
commit
6937e311a4
|
@ -102,7 +102,7 @@ def test_doc_api_getitem(en_tokenizer):
|
||||||
def test_doc_api_serialize(en_tokenizer, text):
|
def test_doc_api_serialize(en_tokenizer, text):
|
||||||
tokens = en_tokenizer(text)
|
tokens = en_tokenizer(text)
|
||||||
new_tokens = get_doc(tokens.vocab).from_bytes(tokens.to_bytes())
|
new_tokens = get_doc(tokens.vocab).from_bytes(tokens.to_bytes())
|
||||||
assert tokens.string == new_tokens.string
|
assert tokens.text == new_tokens.text
|
||||||
assert [t.text for t in tokens] == [t.text for t in new_tokens]
|
assert [t.text for t in tokens] == [t.text for t in new_tokens]
|
||||||
assert [t.orth for t in tokens] == [t.orth for t in new_tokens]
|
assert [t.orth for t in tokens] == [t.orth for t in new_tokens]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue