From 3d56a3f286485a9f1741286476f8872d8e3be1c8 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Mon, 27 Jul 2020 00:27:53 +0200 Subject: [PATCH] Make more args keyword-only --- spacy/language.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/language.py b/spacy/language.py index 4567fe57b..ba5b499ec 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -110,6 +110,7 @@ class Language: def __init__( self, vocab: Union[Vocab, bool] = True, + *, max_length: int = 10 ** 6, meta: Dict[str, Any] = {}, create_tokenizer: Optional[Callable[["Language"], Callable[[str], Doc]]] = None, @@ -1268,6 +1269,7 @@ class Language: def from_config( cls, config: Union[Dict[str, Any], Config] = {}, + *, disable: Iterable[str] = tuple(), overrides: Dict[str, Any] = {}, auto_fill: bool = True,