mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Small Doc.count_by
documentation update
Current example doesn't work
This commit is contained in:
parent
e4875834fe
commit
32a22291bc
|
@ -500,7 +500,8 @@ cdef class Doc:
|
|||
by the values of the given attribute ID.
|
||||
|
||||
Example:
|
||||
from spacy.en import English, attrs
|
||||
from spacy.en import English
|
||||
from spacy import attrs
|
||||
nlp = English()
|
||||
tokens = nlp(u'apple apple orange banana')
|
||||
tokens.count_by(attrs.ORTH)
|
||||
|
|
Loading…
Reference in New Issue
Block a user