I have 30 text files so far which all have multiple lines. I want to apply a LDA Model based on this tutorial . So, for me it should look this:
text of document1
text of document2
text of document3
.....
text of document30
But the whole text of a specific document has to be on one line.
I tried this post and for some reason it keeps saying: csv_output.writerow(row[1] for row in csv_text) IndexError: list index out of range
. Any thoughts? I named the documents in a same way and edited the range, of course.
Basically, I don't care if we can solve this problem with python or not. I'm just done with my nerves so I really appreciate every help