From ad56641324651b26978d00c833e4ef0c634a1df1 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 15 Mar 2019 15:20:09 +0100 Subject: [PATCH] Fix Language.evaluate --- spacy/language.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/language.py b/spacy/language.py index 6432f3e98..4f1e59433 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -597,6 +597,8 @@ class Language(object): ): if scorer is None: scorer = Scorer() + if component_cfg is None: + component_cfg = {} docs, golds = zip(*docs_golds) docs = list(docs) golds = list(golds)