def getRelevancy( self, listOfDicts): #getting relevancy between answerBody, qBody, qTags tp = properties.TextProperties() listOfRel = [] for row in listOfDicts: listOfRel.append( tp.relevancy(row['answerBody'], row['qBody'], row['qTags'])) return self.assignValue(listOfRel)
def getSub(self, listOfDicts): #getting subjectivity of answerBody tp = properties.TextProperties() listOfSub = [] for row in listOfDicts: listOfSub.append(tp.subjective(row['answerBody'])) return self.assignValue(listOfSub)
def getNSWords(self, listOfDicts): #getting Nonstop-Words in answerBody tp = properties.TextProperties() listOfNs = [] for row in listOfDicts: listOfNs.append(tp.NonstopWords(row['answerBody'])) return self.assignValue(listOfNs)
def getUniqueWords(self, listOfDicts): #getting unique words in answerBody tp = properties.TextProperties() listOfUw = [] for row in listOfDicts: listOfUw.append(tp.UniqueWords(row['answerBody'])) return self.assignValue(listOfUw)