From 2efdbc08ffecba1555fea5b7af6444eed968d009 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 26 Mar 2017 08:46:44 -0500 Subject: [PATCH] Make training work with directories --- spacy/cli/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/train.py b/spacy/cli/train.py index 70e89fada..52712fe3c 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -93,7 +93,7 @@ def evaluate(Language, gold_tuples, output_path): def check_dirs(output_path, train_path, dev_path): if not output_path.exists(): util.sys_exit(output_path.as_posix(), title="Output directory not found") - if not train_path.exists() or not train_path.is_file(): + if not train_path.exists(): util.sys_exit(train_path.as_posix(), title="Training data not found") if dev_path and not dev_path.exists(): util.sys_exit(dev_path.as_posix(), title="Development data not found")