How do I upload my arff file to WEKA without seeing 'premature end of line, read Token[EOL] line 22'

30 Views Asked by At

This error message has been appearing when I try to upload a dataset I got from twitter using snscrape:

'premature end of line, read Token[EOL] line 22'

How do I resolve it?

I've tried to convert the file, it keeps showing the same error. I downloaded the file in JSON and CSV, tried using it in WEKA, the same thing still happens.

file not recognized.

1

There are 1 best solutions below

0
eGoodluck On

The problem was that WEKA was seeing multiple commas and only 2 column headers in the csv file.

I eventually resolved it by opening the csv file in Excel and using find and replace to remove all the commas that was affecting the shape of the csv. Resaved the file and tried again.

Thanks!