TypeError: [E1046] KnowledgeBase is an abstract class and cannot be instantiated #13703
Unanswered
tamilselvan1588
asked this question in
Help: Coding & Implementations
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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