add line to ensure that apple is in fact in the vocab

This commit is contained in:
svlandeg 2024-01-25 17:18:56 +01:00
parent a493981163
commit dd2564be54

View File

@ -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