Male the entitylabel files be optional.
@@ -131,6 +131,7 @@ def run(input_file: KGTKFiles,
# Show the final option structures for debugging and documentation.
if show_options:
print("--input-file=%s" % str(input_kgtk_file), file=error_file, flush=True)
+ if len(entity_label_kgtk_files) > 0:
print("--entity-label-files %s" % " ".join([str(f) for f in entity_label_kgtk_files]), file=error_file, flush=True)
print("--output-file=%s" % str(output_kgtk_file), file=error_file, flush=True)
@@ -157,6 +158,7 @@ def run(input_file: KGTKFiles,
lexer: Lexicalize = Lexicalize()
+ if len(entity_label_kgtk_files) > 0:
lexer.load_entity_label_files(entity_label_kgtk_files,
error_file,
reader_options,
