This commit is contained in:
Matthew Honnibal 2021-01-26 18:05:15 +11:00
parent e8674c5c42
commit ad1c02a4ba
12 changed files with 12 additions and 12 deletions

View File

@ -27,7 +27,7 @@ class Bengali(Language):
default_score_weights={"lemma_acc": 1.0},
)
def make_lemmatizer(
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool = False
):
return Lemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)

View File

@ -32,7 +32,7 @@ class Greek(Language):
default_score_weights={"lemma_acc": 1.0},
)
def make_lemmatizer(
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool = False
):
return GreekLemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)

View File

@ -30,7 +30,7 @@ class English(Language):
default_score_weights={"lemma_acc": 1.0},
)
def make_lemmatizer(
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool = False
):
return EnglishLemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)

View File

@ -30,7 +30,7 @@ class Persian(Language):
default_score_weights={"lemma_acc": 1.0},
)
def make_lemmatizer(
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool = False
):
return Lemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)

View File

@ -35,7 +35,7 @@ class French(Language):
default_score_weights={"lemma_acc": 1.0},
)
def make_lemmatizer(
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool = False
):
return FrenchLemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)

View File

@ -42,7 +42,7 @@ class Macedonian(Language):
default_score_weights={"lemma_acc": 1.0},
)
def make_lemmatizer(
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool = False
):
return MacedonianLemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)

View File

@ -30,7 +30,7 @@ class Norwegian(Language):
default_score_weights={"lemma_acc": 1.0},
)
def make_lemmatizer(
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool = False
):
return Lemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)

View File

@ -31,7 +31,7 @@ class Dutch(Language):
default_score_weights={"lemma_acc": 1.0},
)
def make_lemmatizer(
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool = False
):
return DutchLemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)

View File

@ -37,7 +37,7 @@ class Polish(Language):
default_score_weights={"lemma_acc": 1.0},
)
def make_lemmatizer(
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool = False
):
return PolishLemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)

View File

@ -30,7 +30,7 @@ def make_lemmatizer(
model: Optional[Model],
name: str,
mode: str,
overwrite: bool,
overwrite: bool = False,
):
return RussianLemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)

View File

@ -33,7 +33,7 @@ class Swedish(Language):
default_score_weights={"lemma_acc": 1.0},
)
def make_lemmatizer(
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool = False
):
return Lemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)

View File

@ -27,7 +27,7 @@ class Ukrainian(Language):
default_score_weights={"lemma_acc": 1.0},
)
def make_lemmatizer(
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool
nlp: Language, model: Optional[Model], name: str, mode: str, overwrite: bool = False
):
return UkrainianLemmatizer(nlp.vocab, model, name, mode=mode, overwrite=overwrite)