def checkBadScholarship(leadArray, fundingClassification):
     if fundingClassification == 'Scholarship':
         sponsor = leadArray[4]
         infoText = '%s %s %s' % (leadArray[3], leadArray[6], leadArray[7])
         badScholarshipClassifier = ClassifyBadScholarships()
         badScholarshipPrediction = badScholarshipClassifier.classifyOpportunity(sponsor, infoText)
         return badScholarshipPrediction
     else:
         return ''
Exemple #2
0
 def getPredictedBad(self):
     predictedBad = ClassifyBadScholarships(
         self.sponsorList, self.infoTextList).loopThroughLeadsAndDoStuff()
     return predictedBad