mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Fix quickstart docs
This commit is contained in:
parent
7d9d8c1489
commit
42e25dce79
|
@ -56,7 +56,7 @@ a convenient API:
|
|||
>>> tokens = nlp(u'I ate the pizza with anchovies.')
|
||||
>>> pizza = tokens[3]
|
||||
>>> (pizza.orth, pizza.orth_, pizza.head.lemma, pizza.head.lemma_)
|
||||
... (14702, 'pizza', 14702, 'ate')
|
||||
... (14702, u'pizza', 14702, u'eat')
|
||||
|
||||
spaCy maps all strings to sequential integer IDs --- a common trick in NLP.
|
||||
If an attribute `Token.foo` is an integer ID, then `Token.foo_` is the string,
|
||||
|
|
Loading…
Reference in New Issue
Block a user