Removed duplicate empty_kb_for_config().

This commit is contained in:
Raphael Mitsch 2023-04-19 10:11:09 +02:00
parent 0a36f9d9e1
commit c1faf6d7c7

View File

@ -89,14 +89,6 @@ def load_kb(
return kb_from_file
@registry.misc("spacy.EmptyKB.v2")
def empty_kb_for_config() -> Callable[[Vocab, int], KnowledgeBase]:
def empty_kb_factory(vocab: Vocab, entity_vector_length: int):
return InMemoryLookupKB(vocab=vocab, entity_vector_length=entity_vector_length)
return empty_kb_factory
@registry.misc("spacy.EmptyKB.v1")
def empty_kb(
entity_vector_length: int,