Need some help with it! Sorry if it’s sound stupid.
I am new to python and want to try this example….
but labeling was made manually which is hard work if I have two .txt files(pos and neg) each with 1000 tweets.
Using example above how can I use it with text files?
If I understood correctly, you need to figure out a way of reading text file into a Python object.
Considering you have two text files that contain positive and negative samples (
pos.txtandneg.txt) with one tweet per line:Repeat the above loop for negative tweets and you are done populating your
train_samples.