Skip to content

Commit

Permalink
Need default, empty optimizers & schedulers to load & resave a coref …
Browse files Browse the repository at this point in the history
…model
  • Loading branch information
AngledLuffa committed Oct 31, 2023
1 parent edf24d1 commit 98ea5bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stanza/models/coref/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ def __init__(self,
self.epochs_trained = epochs_trained
self._docs: Dict[str, List[Doc]] = {}
self._build_model()

self.optimizers = {}
self.schedulers = {}

if build_optimizers:
self._build_optimizers()
self._set_training(False)
Expand Down

0 comments on commit 98ea5bf

Please sign in to comment.