mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-14 11:36:24 +03:00
Fix import typo in docs
This commit is contained in:
parent
2e8d0e5d45
commit
fc1d1456de
|
@ -161,7 +161,7 @@ Features
|
||||||
>>> tokens = nlp('Apple computers')
|
>>> tokens = nlp('Apple computers')
|
||||||
>>> tokens[0].is_alpha, tokens[0].is_upper
|
>>> tokens[0].is_alpha, tokens[0].is_upper
|
||||||
>>> True, False
|
>>> True, False
|
||||||
>>> from spact.en.attrs import IS_ALPHA, IS_UPPER
|
>>> from spacy.en.attrs import IS_ALPHA, IS_UPPER
|
||||||
>>> tokens.to_array((IS_ALPHA, IS_UPPER))[0]
|
>>> tokens.to_array((IS_ALPHA, IS_UPPER))[0]
|
||||||
array([1, 0])
|
array([1, 0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user