pull/1178/head
Mountchicken 2022-05-26 12:41:18 +08:00 committed by gaotongxiao
parent ee48713a89
commit 4246b1eaee
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def parse_legacy_data(in_path: str,
if format == 'txt':
for line in f:
line = strip_cls(line)
file_path, label = line.split() # Assume no extra spaces
file_path, label = line.split()[:2]
file_paths.append(file_path)
labels.append(label)
elif format == 'jsonl':