mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +03:00
make rehearse_components optional in functions
This commit is contained in:
parent
e9057d2cc6
commit
209cbe196b
|
@ -155,7 +155,7 @@ def train_while_improving(
|
|||
max_steps: int,
|
||||
exclude: List[str],
|
||||
annotating_components: List[str],
|
||||
rehearse_components: List[str],
|
||||
rehearse_components: Optional[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