Remove kwargs from KnowledgeBase.generate_from_disk().

This commit is contained in:
Raphael Mitsch 2022-12-05 16:38:02 +01:00
parent ff7fc0850d
commit 2870c8f4d6
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

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