diff --git a/spacy/kb/kb.pyx b/spacy/kb/kb.pyx index 3a4d3b4be..fa537edc9 100644 --- a/spacy/kb/kb.pyx +++ b/spacy/kb/kb.pyx @@ -111,7 +111,7 @@ cdef class KnowledgeBase: @classmethod def generate_from_disk( - cls: Type[_KBType], path: Union[str, Path], exclude: Iterable[str] = SimpleFrozenList(), **kwargs + cls: Type[_KBType], path: Union[str, Path], exclude: Iterable[str] = SimpleFrozenList() ) -> _KBType: """ Factory method for generating KnowledgeBase subclass instance from file. diff --git a/spacy/kb/kb_in_memory.pyx b/spacy/kb/kb_in_memory.pyx index ddebc468d..2b245d76f 100644 --- a/spacy/kb/kb_in_memory.pyx +++ b/spacy/kb/kb_in_memory.pyx @@ -48,7 +48,7 @@ cdef class InMemoryLookupKB(KnowledgeBase): @classmethod def generate_from_disk( - cls, path: Union[str, Path], exclude: Iterable[str] = SimpleFrozenList(), **kwargs + cls, path: Union[str, Path], exclude: Iterable[str] = SimpleFrozenList() ) -> "InMemoryLookupKB": kb = InMemoryLookupKB(vocab=Vocab(strings=["."]), entity_vector_length=1) kb.from_disk(path)