diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 8ce2c7fe4..805a5b30c 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -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)