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
When installing the guide the absolute paths are different and the lxmls.readers do not find the data.
How to solve this:
Dependencies of local files inside code should be avoided. One pythonic solution would be to force the user to give the data path when instantiating the data.
Way to reproduce:
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
pip install . # As opposed to python setup.py develop
the run the code
import lxmls.readers.sentiment_reader as srs
corpus = srs.SentimentCorpus("books")
note that python setup.py develop will work.
The text was updated successfully, but these errors were encountered:
What happens:
When installing the guide the absolute paths are different and the
lxmls.readers
do not find the data.How to solve this:
Dependencies of local files inside code should be avoided. One pythonic solution would be to force the user to give the data path when instantiating the data.
Way to reproduce:
the run the code
note that
python setup.py develop
will work.The text was updated successfully, but these errors were encountered: