From 6557ff9e854b3a414fb3f08786a04026bf0f8890 Mon Sep 17 00:00:00 2001 From: ines Date: Sat, 20 May 2017 13:00:07 +0200 Subject: [PATCH] Update example --- website/docs/api/language.jade | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/docs/api/language.jade b/website/docs/api/language.jade index cc713f93c..93df56f1a 100644 --- a/website/docs/api/language.jade +++ b/website/docs/api/language.jade @@ -63,9 +63,8 @@ p | is preserved. +aside-code("Example"). - tokens = nlp('An example sentence. Another example sentence.') - tokens[0].text, tokens[0].head.tag_ - # ('An', 'NN') + doc = nlp(u'An example sentence. Another sentence.') + assert (doc[0].text, doc[0].head.tag_) == ('An', 'NN') +table(["Name", "Type", "Description"]) +row