mirror of https://github.com/explosion/spaCy.git
Add error in debug-data if no dev docs are available (see #4575)
This commit is contained in:
parent
56ad3a3988
commit
6ec119d976
|
@ -121,6 +121,8 @@ def debug_data(
|
||||||
msg.text("{} training docs".format(len(train_docs)))
|
msg.text("{} training docs".format(len(train_docs)))
|
||||||
msg.text("{} evaluation docs".format(len(dev_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))
|
overlap = len(train_texts.intersection(dev_texts))
|
||||||
if overlap:
|
if overlap:
|
||||||
msg.warn("{} training examples also in evaluation data".format(overlap))
|
msg.warn("{} training examples also in evaluation data".format(overlap))
|
||||||
|
|
Loading…
Reference in New Issue