Skip to content
Snippets Groups Projects
Commit 18148cfe authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Merge branch 'fix_exception_in_evaluate.py' into 'master'

Fixed the exception that is raised when score file is not found

See merge request !124
parents a730fbfe 89e4cb12
Branches
Tags
1 merge request!124Fixed the exception that is raised when score file is not found
Pipeline #
...@@ -77,7 +77,7 @@ def command_line_arguments(command_line_parameters): ...@@ -77,7 +77,7 @@ def command_line_arguments(command_line_parameters):
for f in args.dev_files + (args.eval_files or []): for f in args.dev_files + (args.eval_files or []):
real_file = os.path.join(args.directory, f) real_file = os.path.join(args.directory, f)
if not os.path.exists(real_file): if not os.path.exists(real_file):
raise ValueError("The provided score file '%s' does not exist", real_file) raise ValueError("The provided score file '%s' does not exist" % real_file)
if args.eval_files is not None and len(args.dev_files) != len(args.eval_files): if args.eval_files is not None and len(args.dev_files) != len(args.eval_files):
logger.error("The number of --dev-files (%d) and --eval-files (%d) are not identical", len(args.dev_files), len(args.eval_files)) logger.error("The number of --dev-files (%d) and --eval-files (%d) are not identical", len(args.dev_files), len(args.eval_files))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment