Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

can not be opened zipped data from sunny-side-up-master\src\datasets\downloads\ #79

Open
Sandy4321 opened this issue Feb 4, 2016 · 2 comments

Comments

@Sandy4321
Copy link

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

@kfoss
Copy link
Contributor

kfoss commented Mar 18, 2016

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.

@Sandy4321
Copy link
Author

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.

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=) argument.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#79 (comment)

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

No branches or pull requests

2 participants