mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-22 18:12:00 +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,
|
||||
exclude=[],
|
||||
annotating_components=[],
|
||||
rehearse_components=[],
|
||||
before_update=before_update,
|
||||
)
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ def train_while_improving(
|
|||
max_steps: int,
|
||||
exclude: List[str],
|
||||
annotating_components: List[str],
|
||||
rehearse_components: Optional[List[str]] = [],
|
||||
rehearse_components: List[str],
|
||||
before_update: Optional[Callable[["Language", Dict[str, Any]], None]],
|
||||
):
|
||||
"""Train until an evaluation stops improving. Works as a generator,
|
||||
|
|
Loading…
Reference in New Issue
Block a user