def iterator(self):
     testNoOfDays = self.kwargs['noOfDays']
     self.kwargs['noOfDays'] = 8
     collocations = Collocations(self.collocationMeasure, **self.kwargs)
     collocations.load()
     self.kwargs['noOfDays'] = testNoOfDays
     return Utilities.getTweetsWithCollocations(collocations, fileNameMethod=Utilities.getTestFile, dataDirection=DataDirection.future, bottom=True, **self.kwargs)
 def trainAndSave(self):
     Utilities.createDirectory(self.trainedClassifierFile)
     collocations = Collocations(self.collocationMeasure, **self.kwargs)
     collocations.load()
     self.trainClassifier(
         Utilities.getTweetsWithCollocations(
             collocations,
             fileNameMethod=Utilities.getTrainingFile,
             dataDirection=DataDirection.past,
             **self.kwargs))
     Classifier.saveClassifier(self.classifier, self.trainedClassifierFile)
 def iterator(self):
     testNoOfDays = self.kwargs['noOfDays']
     self.kwargs['noOfDays'] = 8
     collocations = Collocations(self.collocationMeasure, **self.kwargs)
     collocations.load()
     self.kwargs['noOfDays'] = testNoOfDays
     return Utilities.getTweetsWithCollocations(
         collocations,
         fileNameMethod=Utilities.getTestFile,
         dataDirection=DataDirection.future,
         bottom=True,
         **self.kwargs)
 def trainAndSave(self):
     Utilities.createDirectory(self.trainedClassifierFile)
     collocations = Collocations(self.collocationMeasure, **self.kwargs)
     collocations.load()
     self.trainClassifier(Utilities.getTweetsWithCollocations(collocations, fileNameMethod=Utilities.getTrainingFile, dataDirection=DataDirection.past, **self.kwargs))
     Classifier.saveClassifier(self.classifier, self.trainedClassifierFile)