Esempio n. 1
0
 def save(self):
     sys.stderr.write('saving model...')
     save_model(self.modelName+'.model', self.model)
     sys.stderr.write('done\nsaving label and feature lists...')
     self.labelCounter.saveToFile(self.modelName+'.labelNumbers')
     self.featCounter.saveToFile(self.modelName+'.featureNumbers')
     sys.stderr.write('done\n')
Esempio n. 2
0
 def save_model(self, ofn):
     try:
         save_model(ofn, self.model)
     except AttributeError:
         logging.warning('No model to save')
Esempio n. 3
0
 def save_model(self, ofn):
     try:
         save_model(ofn, self.model)
     except AttributeError:
         logging.warning('No model to save')