/** * Sets this parser back to the beginning of the raw data. */ public void reset() { parser.reset(); next = null; }
/** * Frees any resources this parser may be holding. */ public void close() { parser.close(); } }
/** * <!-- <init>(Learner,String,boolean) --> Creates a new trainer that doesn't produce status * messages. * * @param l The learner to be trained. * @param p The path to an example file. * @param z Whether or not the example file is compressed. **/ public BatchTrainer(Learner l, String p, boolean z) { this(l, new ArrayFileParser(p, z)); }
/** * Initializes the parser with a data array, specifying whether the data is zipped. * * @param data The examples can be parsed out of this array. * @param zip Whether or not the input stream is zipped. **/ public ArrayFileParser(byte[] data, boolean zip) { exampleData = data; zipped = zip; reset(); }
/** * Sets this parser back to the beginning of the raw data. */ public void reset() { parser.reset(); }
/** * Frees any resources this parser may be holding. */ public void close() { parser.close(); } }
/** * <!-- <init>(Learner,String,boolean,int) --> Creates a new trainer that produces status * messages. * * @param l The learner to be trained. * @param p The path to an example file. * @param z Whether or not the example file is compressed. * @param o The number of examples in between status messages on STDOUT. **/ public BatchTrainer(Learner l, String p, boolean z, int o) { this(l, new ArrayFileParser(p, z), o); }
/** * Sets this parser back to the beginning of the raw data. */ public void reset() { parser.reset(); }
/** * Frees any resources this parser may be holding. */ public void close() { parser.close(); } }
/** * Sets this parser back to the beginning of the raw data. */ public void reset() { parser.reset(); next = null; }
/** * Frees any resources this parser may be holding. */ public void close() { parser.close(); } }
/** * Sets this parser back to the beginning of the raw data. */ public void reset() { parser.reset(); }
/** * Frees any resources this parser may be holding. */ public void close() { parser.close(); } }
/** * Sets this parser back to the beginning of the raw data. */ public void reset() { parser.reset(); }
/** * Frees any resources this parser may be holding. */ public void close() { parser.close(); } }
/** * Sets this parser back to the beginning of the raw data. */ public void reset() { parser.reset(); }
/** * Frees any resources this parser may be holding. */ public void close() { parser.close(); } }
/** Sets this parser back to the beginning of the raw data. */ public void reset() { parser.reset(); next = null; }
/** * Sets this parser back to the beginning of the raw data. */ public void reset() { parser.reset(); }