mirror of
https://github.com/explosion/spaCy.git
synced 2025-12-09 03:04:30 +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
|
DOCS: https://spacy.io/api/cli#download
|
||||||
AVAILABLE PACKAGES: https://spacy.io/models
|
AVAILABLE PACKAGES: https://spacy.io/models
|
||||||
"""
|
"""
|
||||||
download(model, direct, sdist, custom_url=url, *ctx.args)
|
download(model, direct, sdist, url, *ctx.args)
|
||||||
|
|
||||||
|
|
||||||
def download(
|
def download(
|
||||||
|
|
|
||||||
|
|
@ -210,7 +210,7 @@ class Lemmatizer(Pipe):
|
||||||
rules = rules_table.get(univ_pos, {})
|
rules = rules_table.get(univ_pos, {})
|
||||||
orig = string
|
orig = string
|
||||||
string = string.lower()
|
string = string.lower()
|
||||||
forms = []
|
forms = [] # type: ignore
|
||||||
oov_forms = []
|
oov_forms = []
|
||||||
for old, new in rules:
|
for old, new in rules:
|
||||||
if string.endswith(old):
|
if string.endswith(old):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user