Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preprocesser.py #10

Open
khushirao opened this issue Apr 5, 2018 · 8 comments
Open

preprocesser.py #10

khushirao opened this issue Apr 5, 2018 · 8 comments

Comments

@khushirao
Copy link

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

@abdulfatir
Copy link
Owner

abdulfatir commented Apr 5, 2018

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

@Mustyy
Copy link

Mustyy commented Sep 26, 2018

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

@Arpit25upadhyay
Copy link

Screenshot (23)

@kallesh3131
Copy link

i cannot find the file name preprocessed.py

@kallesh3131
Copy link

i cannot find the file name preprocessed.csv

@kallesh3131
Copy link

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

@sauravjoshi23
Copy link

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

@sanjay-29218
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants