mirror of https://github.com/explosion/spaCy.git
Fix print statements
This commit is contained in:
parent
9d7c2a46bb
commit
b6ee241e26
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue