Add error in debug-data if no dev docs are available (see #4575)

This commit is contained in:
Ines Montani 2019-11-02 16:08:11 +01:00
parent 56ad3a3988
commit 6ec119d976

View File

@ -121,6 +121,8 @@ def debug_data(
msg.text("{} training docs".format(len(train_docs)))
msg.text("{} evaluation docs".format(len(dev_docs)))
if not len(dev_docs):
msg.fail("No evaluation docs")
overlap = len(train_texts.intersection(dev_texts))
if overlap:
msg.warn("{} training examples also in evaluation data".format(overlap))