def loadMaxDiffTwitterLexicon(self):
folder = "MaxDiff-Twitter-Lexicon/"
file1 = "Maxdiff-Twitter-Lexicon_-1to1.txt"
#clear previous dictionaries
self.clearDictionaries()
#load unigrams - reverse = true due to the .txt file format
self.loadUnigrams(NRCLexicon.directory+folder+file1,True)
#this lexicon has no bigrams so d_bigrams remains empty
#Sentiment140AffLexNegLex
评论列表
文章目录