if train_data_path is not None:
print("___Reading train data from %s" % train_data_path)
if os.path.isfile(train_data_path):
data_dict["train"] = IntentDatasetReader.read_from_json(train_data_path)
else:
raise IOError("Error: Train file does not exist")
After Change
raise IOError("Error: Valid file does not exist")
if Path(test_data_path).is_file():
print("___Reading test data from %s" % train_data_path)
data_dict["test"] = IntentDatasetReader.read_from_json(test_data_path)
else: