1
1
mirror of https://github.com/explosion/spaCy.git synced 2025-04-18 08:01:58 +03:00

Update inmemorylookupkb.mdx ()

Example does not refer to the in memory lookup
This commit is contained in:
Kenneth Enevoldsen 2023-05-02 03:51:13 -07:00 committed by Adriane Boyd
parent 9ec12fcfde
commit 4e1db35f6e

View File

@ -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")
> ```