ersatz icon indicating copy to clipboard operation
ersatz copied to clipboard

IndexError: string index out of range

Open robotsp opened this issue 2 years ago • 1 comments

I tried to create a training dataset, but there is an error:

File "dataset.py", line 271, in main() File "dataset.py", line 267, in main determiner=determiner) File "dataset.py", line 66, in split_train_file ''.join(right_temp).replace('\u2581', ' ').replace('', '')): File "/root/study/ersatz/ersatz/candidates.py", line 72, in call if right_context[0] == ' ': IndexError: string index out of range.

I prepared only one sentence in the raw data file, but it still raises this "out of range" error. How can I fix?

robotsp avatar Feb 08 '22 15:02 robotsp