Fix Language.evaluate

This commit is contained in:
Matthew Honnibal 2019-03-15 15:20:09 +01:00
parent f762c36e61
commit ad56641324

View File

@ -597,6 +597,8 @@ class Language(object):
): ):
if scorer is None: if scorer is None:
scorer = Scorer() scorer = Scorer()
if component_cfg is None:
component_cfg = {}
docs, golds = zip(*docs_golds) docs, golds = zip(*docs_golds)
docs = list(docs) docs = list(docs)
golds = list(golds) golds = list(golds)