Esempio n. 1
0
 def save(self, filename):
     toolbox = SentimentAnalysisToolbox()
     filename += ".classifier"
     toolbox.save_binary(filename, self.__classifier)
Esempio n. 2
0
 def save(self, filename):
     toolbox = SentimentAnalysisToolbox()
     filename += ".classifier"
     toolbox.save_binary(filename, self.__classifier)
Esempio n. 3
0
 def save(self):
     toolbox = SentimentAnalysisToolbox()
     filename = '{}.classifier'.format(self.get_name())
     toolbox.save_binary(filename,self.__classifier)
     filename = '{}.vectorizer'.format(self.get_name())
     toolbox.save_binary(filename, self.__vectorizer)
Esempio n. 4
0
 def save(self):
     toolbox = SentimentAnalysisToolbox()
     filename = '{}.classifier'.format(self.get_name())
     toolbox.save_binary(filename, self.__classifier)
     filename = '{}.vectorizer'.format(self.get_name())
     toolbox.save_binary(filename, self.__vectorizer)