diff --git a/website/docs/api/doc.jade b/website/docs/api/doc.jade index 9b8392fcb..4228aed8f 100644 --- a/website/docs/api/doc.jade +++ b/website/docs/api/doc.jade @@ -64,7 +64,7 @@ p doc = nlp(u'Give it back! He pleaded.') assert doc[0].text == 'Give' assert doc[-1].text == '.' - span = doc[1:1] + span = doc[1:3] assert span.text == 'it back' +table(["Name", "Type", "Description"]) diff --git a/website/docs/usage/customizing-tokenizer.jade b/website/docs/usage/customizing-tokenizer.jade index 5c9a9fd78..f56ce9fb1 100644 --- a/website/docs/usage/customizing-tokenizer.jade +++ b/website/docs/usage/customizing-tokenizer.jade @@ -141,7 +141,7 @@ p else: tokens.append(substring) substring = '' - tokens.extend(suffixes) + tokens.extend(reversed(suffixes)) return tokens p