@Override public void finish() throws CleartkProcessingException { // close and remove all-false file allFalseWriter.close(); allFalseFile.delete(); // flush and close all training data writers for (PrintWriter pw : trainingDataWriters.values()) { pw.flush(); pw.close(); } // finish in the superclass super.finish(); }
public void write(Instance<OUTCOME_TYPE> instance) throws CleartkProcessingException { writeEncoded( this.classifierBuilder.getFeaturesEncoder().encodeAll(instance.getFeatures()), this.classifierBuilder.getOutcomeEncoder().encode(instance.getOutcome())); }
@Override public void finish() throws CleartkProcessingException { // close and remove all-false file allFalseWriter.close(); allFalseFile.delete(); // flush and close all training data writers for (PrintWriter pw : trainingDataWriters.values()) { pw.flush(); pw.close(); } // finish in the superclass super.finish(); }
/** * Callback called after the last feature vector has been written. Flushes the various streams and * deletes the all false file. */ @Override public void finish() throws CleartkProcessingException { // close and remove all-false file allFalseWriter.close(); allFalseFile.delete(); // flush and close all training data writers for (PrintWriter pw : trainingDataWriters.values()) { pw.flush(); pw.close(); } // finish in the superclass super.finish(); }
/** * Callback called after the last feature vector has been written. Flushes the various streams and * deletes the all false file. */ @Override public void finish() throws CleartkProcessingException { // close and remove all-false file allFalseWriter.close(); allFalseFile.delete(); // flush and close all training data writers for (PrintWriter pw : trainingDataWriters.values()) { pw.flush(); pw.close(); } // finish in the superclass super.finish(); }
super.finish();