Fix print statements

This commit is contained in:
Ines Montani 2017-03-20 11:46:37 +01:00 committed by GitHub
parent 9d7c2a46bb
commit b6ee241e26

View File

@ -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.