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

Missing reference on Senticnet.data #2

Open
leckie-chn opened this issue Dec 2, 2017 · 2 comments
Open

Missing reference on Senticnet.data #2

leckie-chn opened this issue Dec 2, 2017 · 2 comments

Comments

@leckie-chn
Copy link

Hi Sudipta,

I encountered the error shown below while trying your code:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-07c1ea415ede> in <module>()
----> 1 from prepare_data.preprocess_csv import tokenize_csv_file, extract_sentic_concepts_and_scores_csv
      2 import config
      3 
      4 import os

/home/niyan/SemEval17-05-kar/prepare_data/preprocess_csv.py in <module>()
     12 from concurrent import futures
     13 from shutil import copyfile
---> 14 import senticnet
     15 import re
     16 

/home/niyan/SemEval17-05-kar/prepare_data/senticnet.py in <module>()
----> 1 import data
      2 
      3 
      4 class Senticnet(object):
      5     """

ImportError: No module named data

Seems that your code in senticnet.py imported an unknown resource named data.
Any solutions for that ?

@leckie-chn
Copy link
Author

I just came across the file senticnet_db.py. Is it the data actually?

@cryptexcode
Copy link
Owner

Yes. The data is saved as a python dictionary.
Sorry for late reply. Somehow missed it.

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