From 6937e311a48db3d06698b8fa4e7f2585b9a90891 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 30 May 2017 23:34:23 +0200 Subject: [PATCH] Update doc tests --- spacy/tests/doc/test_doc_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/doc/test_doc_api.py b/spacy/tests/doc/test_doc_api.py index 4281193dd..cbe1bbc66 100644 --- a/spacy/tests/doc/test_doc_api.py +++ b/spacy/tests/doc/test_doc_api.py @@ -102,7 +102,7 @@ def test_doc_api_getitem(en_tokenizer): def test_doc_api_serialize(en_tokenizer, text): tokens = en_tokenizer(text) 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.orth for t in tokens] == [t.orth for t in new_tokens]