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

Getting hacker news example working #93

Open
thommiano opened this issue Feb 18, 2019 · 1 comment
Open

Getting hacker news example working #93

thommiano opened this issue Feb 18, 2019 · 1 comment

Comments

@thommiano
Copy link

To get preprocess.py running for Hacker News, I did the following from the lda2vec root:

mkdir ./examples/hacker_news/lib
cp -r ./lda2vec ./examples/hacker_news/lib/

In the hacker_news data/preprocess.py file I added the following:

import sys
sys.path.append('./lib')

In the hacker_news lda2vec module in /lib , I added the following to preprocess.py:

import spacy
spacy.load('en')
from spacy.lang.en import English
# from spacy.en import English

In my python environment I did the following:

python -m spacy download en

Note that pandas is a requirement.
Then, in lda2vec/exampels/hacker_news you can run python ./data/preprocess.py
Will update if I get everything else working.

@amitbikram2913
Copy link

Have you been able to run the remaining part as well? Are there any more changes that need to be made?

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

2 participants