You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
I sue windows computer and try to run
sunny-side-up-master\src\datasets\sentiment140.py
but error hapend and I can not open this file manually as well
File "C:\Anaconda\Lib\zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
For this issue, you'll want to build and run frameworks/docker/sentiment-ml since that contains all the necessary NLP (including gensim) libraries. After building with 1-build.sh and running with 2-run.sh, you can execute python src/datasets/sentiment140.py to download that dataset into the .downloads folder.
Alternatively, you could manually download from http://cs.stanford.edu/people/alecmgo/trainingandtestdata.zip and place in that folder (or an alternate one and update the Sentiment140(file_path=<alternate>) argument.
Thanks
On Mar 18, 2016 12:32, "Kyle Foster" [email protected] wrote:
For this issue, you'll want to build and run
frameworks/docker/sentiment-ml since that contains all the necessary NLP
(including gensim) libraries. After building with 1-build.sh and running
with 2-run.sh, you can execute python src/datasets/sentiment140.py to
download that dataset into the .downloads folder.
I sue windows computer and try to run
sunny-side-up-master\src\datasets\sentiment140.py
but error hapend and I can not open this file manually as well
File "C:\Anaconda\Lib\zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file
code
backwards-compatibility
def load_data(file_path="./.downloads/sentiment140.csv", feat_extractor=None, verbose=False, return_iter=True, rng_seed=None):
loader = Sentiment140(file_path)
return loader.load_data(feat_extractor=feat_extractor, verbose=verbose, return_iter=return_iter, rng_seed=rng_seed)
from
sunny-side-up-master\src\datasets\sentiment140.py
The text was updated successfully, but these errors were encountered: