From b6ee241e260d23bf5e21aad55e332b7f266c4ab4 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Mon, 20 Mar 2017 11:46:37 +0100 Subject: [PATCH] Fix print statements --- spacy/tests/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spacy/tests/README.md b/spacy/tests/README.md index 489335153..a7699ed54 100644 --- a/spacy/tests/README.md +++ b/spacy/tests/README.md @@ -144,10 +144,10 @@ Here's how to quickly get these values from within spaCy: ```python doc = nlp(u'Some text here') -print [token.head.i-token.i for token in doc] -print [token.tag_ for token in doc] -print [token.pos_ for token in doc] -print [token.dep_ for token in doc] +print([token.head.i-token.i for token in doc]) +print([token.tag_ for token in doc]) +print([token.pos_ for token in doc]) +print([token.dep_ for token in doc]) ``` **Note:** There's currently no way of setting the serializer data for the parser without loading the models. If this is relevant to your test, constructing the `Doc` via `get_doc()` won't work.