TypeError: [E1046] KnowledgeBase is an abstract class and cannot be instantiated #13703
Unanswered
ghost
asked this question in
Help: Coding & Implementations
Replies: 1 comment
-
Yes, I think classes have changed a bit. I do this with the latest version:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
During the poetry train, i am getting the below error. Can you please help me how to resolve the issue ?
kb = KnowledgeBase(vocab=nlp.vocab, entity_vector_length=vectors_dim)
File "spacy/kb/kb.pyx", line 27, in spacy.kb.kb.KnowledgeBase.init
TypeError: [E1046] KnowledgeBase is an abstract class and cannot be instantiated. If you are looking for spaCy's default knowledge base, use
InMemoryLookupKB
.Error: Sequence aborted after failed subtask 'train[2]'
Beta Was this translation helpful? Give feedback.
All reactions