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.
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!