def load(self, filename): toolbox = SentimentAnalysisToolbox() filename += ".classifier" self.__classifier = toolbox.load_binary(filename)
def load(self): toolbox = SentimentAnalysisToolbox() filename = '{}.classifier'.format(self.get_name()) self.__classifier = toolbox.load_binary(filename) filename = '{}.vectorizer'.format(self.get_name()) self.__vectorizer = toolbox.load_binary(filename)