mirror of
https://github.com/explosion/spaCy.git
synced 2025-12-08 02:34:17 +03:00
Fix type errors
This commit is contained in:
parent
4ebe774120
commit
68bf84ec5c
|
|
@ -42,7 +42,7 @@ def download_cli(
|
|||
DOCS: https://spacy.io/api/cli#download
|
||||
AVAILABLE PACKAGES: https://spacy.io/models
|
||||
"""
|
||||
download(model, direct, sdist, custom_url=url, *ctx.args)
|
||||
download(model, direct, sdist, url, *ctx.args)
|
||||
|
||||
|
||||
def download(
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ class Lemmatizer(Pipe):
|
|||
rules = rules_table.get(univ_pos, {})
|
||||
orig = string
|
||||
string = string.lower()
|
||||
forms = []
|
||||
forms = [] # type: ignore
|
||||
oov_forms = []
|
||||
for old, new in rules:
|
||||
if string.endswith(old):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user