twitter-sentiment-analysis icon indicating copy to clipboard operation
twitter-sentiment-analysis copied to clipboard

preprocesser.py

Open khushirao opened this issue 7 years ago • 8 comments

I am unable to follow this code.Run preprocesser.py but no file test and train dataset is generated. error

(base) c:\Twitter\twitter-sentiment-analysis-all algos (1)\twitter-sentiment-analysis-master>python preprocess.py C:\Twitter\twitter-sentiment-analysis-all algos (1)\twitter-sentiment-analysis-master\processed Usage: python preprocess.py <raw-CSV>

khushirao avatar Apr 05 '18 11:04 khushirao

What is in C:\Twitter\twitter-sentiment-analysis-all algos (1)\twitter-sentiment-analysis-master\processed? Also, don't use spaces in path.

abdulfatir avatar Apr 05 '18 11:04 abdulfatir

I have the same issue as well

python preprocess.py C:\Users\dina_\Desktop\DATA-MINING\SentAnalysisTwitter\twitter-sentiment-analysis\train.csv ^ SyntaxError: invalid syntax

Mustyy avatar Sep 26 '18 03:09 Mustyy

Screenshot (23)

Arpit25upadhyay avatar Sep 05 '19 13:09 Arpit25upadhyay

i cannot find the file name preprocessed.py

kallesh3131 avatar Jan 27 '20 10:01 kallesh3131

i cannot find the file name preprocessed.csv

kallesh3131 avatar Jan 27 '20 10:01 kallesh3131

def classify(processed_csv, test_file=True, **params): what is the paramater **params in the baseline.py

kallesh3131 avatar Jan 27 '20 11:01 kallesh3131

@Arpit25upadhyay in order to solve the issue -> you will have to modify the line to this -> positive = int(float(line[:line.find(',')]))

sauravjoshi23 avatar Nov 23 '20 07:11 sauravjoshi23

saura

@Arpit25upadhyay in order to solve the issue -> you will have to modify the line to this -> positive = int(float(line[:line.find(',')]))

sorry ValueError: could not convert string to float: '"1467810369"' i am still getting this error.

sanjay-29218 avatar May 27 '22 10:05 sanjay-29218