Skip to content

Commit 8fc3c2c

Browse files
use parameter file_path instead of data_file_path
1 parent bfcf9d3 commit 8fc3c2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def process_file(file_path, data_file_role, dataset_name, max_contexts, max_data
4949
total += 1
5050
outfile.write(target_name + ' ' + " ".join(contexts) + csv_padding + '\n')
5151

52-
print('File: ' + data_file_path)
52+
print('File: ' + file_path)
5353
print('Average total contexts: ' + str(float(sum_total) / total))
5454
print('Average final (after sampling) contexts: ' + str(float(sum_sampled) / total))
5555
print('Total examples: ' + str(total))

0 commit comments

Comments
 (0)