mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-24 19:11:58 +03:00
Remove kwargs from KnowledgeBase.generate_from_disk().
This commit is contained in:
parent
ff7fc0850d
commit
2870c8f4d6
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user