Code example for FileNotFoundException

Methods: printStackTrace

0
			ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filename));
			oos.writeObject(tt.getTransducer());
			logger.info("Trained model saved: " + filename + ", iter: " + iteration);
		} catch (FileNotFoundException fnfe) {
			logger.warning("Could not save model: " + filename + ", iter: " + iteration);
			fnfe.printStackTrace();
		} catch (IOException ioe) {
			logger.warning("Could not save model: " + filename + ", iter: " + iteration);
			ioe.printStackTrace();
		} 
	} 
 
	@Override 
	public void evaluateInstanceList(TransducerTrainer transducer, InstanceList instances, String description) { }
}