mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-11 16:52:21 +03:00
Fix mypy and tests
This commit is contained in:
parent
209cbe196b
commit
05a2f560ad
|
@ -1144,6 +1144,7 @@ def test_training_before_update(doc):
|
||||||
max_steps=100,
|
max_steps=100,
|
||||||
exclude=[],
|
exclude=[],
|
||||||
annotating_components=[],
|
annotating_components=[],
|
||||||
|
rehearse_components=[],
|
||||||
before_update=before_update,
|
before_update=before_update,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ def train_while_improving(
|
||||||
max_steps: int,
|
max_steps: int,
|
||||||
exclude: List[str],
|
exclude: List[str],
|
||||||
annotating_components: List[str],
|
annotating_components: List[str],
|
||||||
rehearse_components: Optional[List[str]] = [],
|
rehearse_components: List[str],
|
||||||
before_update: Optional[Callable[["Language", Dict[str, Any]], None]],
|
before_update: Optional[Callable[["Language", Dict[str, Any]], None]],
|
||||||
):
|
):
|
||||||
"""Train until an evaluation stops improving. Works as a generator,
|
"""Train until an evaluation stops improving. Works as a generator,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user