mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-20 00:51:58 +03:00
add line to ensure that apple is in fact in the vocab
This commit is contained in:
parent
a493981163
commit
dd2564be54
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user