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
I found your project interesting and wanted to try it out myself. So I did all the steps necessary for installation but I encountered a problem in utilities.py, line 477.
$ python train.py 100_topics_100_tweets.topic-five-point.subtask-CE.train.txt
/home/anaconda2/lib/python2.7/site-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
/home/anaconda2/lib/python2.7/site-packages/sklearn/grid_search.py:43: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. This module will be removed in 0.20.
DeprecationWarning)
System training started
Train data loaded
Clusters loaded
Traceback (most recent call last):
File "train.py", line 148, in <module>
main(sys.argv[1])
File "train.py", line 36, in main
negationList, slangDictionary, lexicons = loadLexicons()
File "/home/aueb.twitter.sentiment/utilities.py", line 477, in loadLexicons
S_pos = MPQALexicon.MPQALexicon(0)
File "/home/aueb.twitter.sentiment/lexicons/MPQALexicon.py", line 19, in __init__
self.loadLexicon(option)
File "/home/aueb.twitter.sentiment/lexicons/MPQALexicon.py", line 28, in loadLexicon
self.loadLexicon0(f)
File "/home/aueb.twitter.sentiment/lexicons/MPQALexicon.py", line 63, in loadLexicon0
if (s[0].split("=")[1] == "strongsubj" and s[5].split("=")[1] == "positive\n"):
IndexError: list index out of range
Do you know what causes the error?
Cheers,
Hendrik
The text was updated successfully, but these errors were encountered:
Hey,
I found your project interesting and wanted to try it out myself. So I did all the steps necessary for installation but I encountered a problem in utilities.py, line 477.
Do you know what causes the error?
Cheers,
Hendrik
The text was updated successfully, but these errors were encountered: