mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-01 18:33:12 +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
|
> #### Example
|
||||||
>
|
>
|
||||||
> ```python
|
> ```python
|
||||||
|
> nlp("I'm eating an apple")
|
||||||
> apple = nlp.vocab.strings["apple"]
|
> apple = nlp.vocab.strings["apple"]
|
||||||
> oov = nlp.vocab.strings["dskfodkfos"]
|
> oov = nlp.vocab.strings["dskfodkfos"]
|
||||||
> assert apple in nlp.vocab
|
> assert apple in nlp.vocab
|
||||||
|
|
Loading…
Reference in New Issue
Block a user