mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
commit
52412867a9
|
@ -174,7 +174,7 @@ Features
|
|||
>>> tokens = nlp('Apple computers')
|
||||
>>> tokens[0].is_alpha, tokens[0].is_upper
|
||||
>>> 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]
|
||||
array([1, 0])
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user