From dd2564be54b9a578ae98f23af36b43e67d1cb343 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Thu, 25 Jan 2024 17:18:56 +0100 Subject: [PATCH] add line to ensure that apple is in fact in the vocab --- website/docs/api/vocab.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/website/docs/api/vocab.mdx b/website/docs/api/vocab.mdx index fe774d1a8..3b0e83d9f 100644 --- a/website/docs/api/vocab.mdx +++ b/website/docs/api/vocab.mdx @@ -93,6 +93,7 @@ given string, you need to look it up in > #### Example > > ```python +> nlp("I'm eating an apple") > apple = nlp.vocab.strings["apple"] > oov = nlp.vocab.strings["dskfodkfos"] > assert apple in nlp.vocab