From 4c53a8ecd75e7a7d50c2cd7ecd0761d51044ce3f Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Sat, 30 Jul 2016 16:10:21 +0900 Subject: [PATCH] Fix doc This PR changes the `str`s to `unicode`s because `str`s throw the following error: ``` TypeError: Argument 'x' has incorrect type (expected unicode, got str) ``` --- website/docs/_quickstart-examples.jade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/_quickstart-examples.jade b/website/docs/_quickstart-examples.jade index 2a5dbe5f1..4b967a94a 100644 --- a/website/docs/_quickstart-examples.jade +++ b/website/docs/_quickstart-examples.jade @@ -46,13 +46,13 @@ assert token.shape_ == 'Xxxxx' for lexeme in nlp.vocab: if lexeme.is_alpha: - lexeme.shape_ = 'W' + lexeme.shape_ = u'W' elif lexeme.is_digit: - lexeme.shape_ = 'D' + lexeme.shape_ = u'D' elif lexeme.is_punct: - lexeme.shape_ = 'P' + lexeme.shape_ = u'P' else: - lexeme.shape_ = 'M' + lexeme.shape_ = u'M' assert token.shape_ == 'W' +h3('examples-numpy-arrays') Export to numpy arrays