mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 05:07:03 +03:00
Update inmemorylookupkb.mdx (#12586)
Example does not refer to the in memory lookup
This commit is contained in:
parent
9ec12fcfde
commit
4e1db35f6e
|
@ -292,7 +292,7 @@ Restore the state of the knowledge base from a given directory. Note that the
|
|||
> ```python
|
||||
> from spacy.vocab import Vocab
|
||||
> vocab = Vocab().from_disk("/path/to/vocab")
|
||||
> kb = FullyImplementedKB(vocab=vocab, entity_vector_length=64)
|
||||
> kb = InMemoryLookupKB(vocab=vocab, entity_vector_length=64)
|
||||
> kb.from_disk("/path/to/kb")
|
||||
> ```
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user