Commits

Hiroyoshi Komatsu  committed eb2b621

the last commit for 3.2.0

  • Participants
  • Parent commits 34d00cb
  • Tags v3.2.0

Comments (0)

Files changed (1)

File corenlp/corenlp.py

         sent['text'] = extract_words_from_xml(raw_sent_list[id])
         sent['parsetree'] = unicode(raw_sent_list[id]['parse'])
         # This only works if sentiment annotation is available.
-        sent['sentimentValue'] = int(raw_sent_list[id]['@sentimentValue']) # TIM
-        sent['sentiment'] = raw_sent_list[id]['@sentiment'] # TIM
+        # sent['sentimentValue'] = int(raw_sent_list[id]['@sentimentValue']) # TIM
+        # sent['sentiment'] = raw_sent_list[id]['@sentiment'] # TIM
         if type(raw_sent_list[id]['tokens']['token']) == type(OrderedDict()):
             # This is also specific case of xmltodict
             token = raw_sent_list[id]['tokens']['token']