mirror of https://github.com/open-mmlab/mmocr.git
update
parent
ee48713a89
commit
4246b1eaee
|
@ -39,7 +39,7 @@ def parse_legacy_data(in_path: str,
|
||||||
if format == 'txt':
|
if format == 'txt':
|
||||||
for line in f:
|
for line in f:
|
||||||
line = strip_cls(line)
|
line = strip_cls(line)
|
||||||
file_path, label = line.split() # Assume no extra spaces
|
file_path, label = line.split()[:2]
|
||||||
file_paths.append(file_path)
|
file_paths.append(file_path)
|
||||||
labels.append(label)
|
labels.append(label)
|
||||||
elif format == 'jsonl':
|
elif format == 'jsonl':
|
||||||
|
|
Loading…
Reference in New Issue