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

Bug in utilities.py #1

Open
jabberwox opened this issue Feb 19, 2017 · 0 comments
Open

Bug in utilities.py #1

jabberwox opened this issue Feb 19, 2017 · 0 comments

Comments

@jabberwox
Copy link

jabberwox commented Feb 19, 2017

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.

$ 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

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

1 participant