Merge branch 'master' of ssh://github.com/honnibal/spaCy

This commit is contained in:
Matthew Honnibal 2015-06-28 09:43:11 +02:00
commit b05854bc13
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,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])