SemEval-2017-Task-5 icon indicating copy to clipboard operation
SemEval-2017-Task-5 copied to clipboard

Missing reference on `Senticnet.data`

Open leckie-chn opened this issue 7 years ago • 2 comments

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 avatar Dec 02 '17 08:12 leckie-chn

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

leckie-chn avatar Dec 02 '17 08:12 leckie-chn

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

cryptexcode avatar Dec 31 '17 01:12 cryptexcode