mirror of https://github.com/explosion/spaCy.git
Fix train arg
This commit is contained in:
parent
142b58be92
commit
2af741d7e3
|
@ -246,7 +246,7 @@ def create_evaluation_callback(
|
|||
) -> Callable[[], Tuple[float, Dict[str, float]]]:
|
||||
def evaluate() -> Tuple[float, Dict[str, float]]:
|
||||
dev_examples = corpus.dev_dataset(
|
||||
nlp, gold_preproc=cfg["gold_preproc"], ignore_misaligned=True
|
||||
nlp, gold_preproc=cfg["gold_preproc"]
|
||||
)
|
||||
dev_examples = list(dev_examples)
|
||||
n_words = sum(len(ex.predicted) for ex in dev_examples)
|
||||
|
|
Loading…
Reference in New Issue