mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-03 11:50:19 +03:00
Mypy correction
This commit is contained in:
parent
a2acedfd6f
commit
904764a790
|
@ -228,7 +228,7 @@ class EditTreeLemmatizer(TrainablePipe):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _get_lowercasing_values(
|
def _get_lowercasing_values(
|
||||||
self, token: Token, lowercasing_flags: Floats2d
|
self, token: Token, lowercasing_flags: Optional[Floats2d]
|
||||||
) -> Tuple[int, str]:
|
) -> Tuple[int, str]:
|
||||||
if lowercasing_flags is not None and lowercasing_flags[token.i] > 0.5:
|
if lowercasing_flags is not None and lowercasing_flags[token.i] > 0.5:
|
||||||
return 1, token.lower_
|
return 1, token.lower_
|
||||||
|
|
Loading…
Reference in New Issue
Block a user