Merge pull request #465 from izeye/patch-1

Fix doc
This commit is contained in:
Matthew Honnibal 2016-08-10 05:17:22 +10:00 committed by GitHub
commit cccadbf2a2

View File

@ -46,13 +46,13 @@
assert token.shape_ == 'Xxxxx' assert token.shape_ == 'Xxxxx'
for lexeme in nlp.vocab: for lexeme in nlp.vocab:
if lexeme.is_alpha: if lexeme.is_alpha:
lexeme.shape_ = 'W' lexeme.shape_ = u'W'
elif lexeme.is_digit: elif lexeme.is_digit:
lexeme.shape_ = 'D' lexeme.shape_ = u'D'
elif lexeme.is_punct: elif lexeme.is_punct:
lexeme.shape_ = 'P' lexeme.shape_ = u'P'
else: else:
lexeme.shape_ = 'M' lexeme.shape_ = u'M'
assert token.shape_ == 'W' assert token.shape_ == 'W'
+h3('examples-numpy-arrays') Export to numpy arrays +h3('examples-numpy-arrays') Export to numpy arrays