public static void main (String[] args) throws FileNotFoundException, Exception
{
long start = System.currentTimeMillis();
Options options = new Options(args);
Tagger tagger = new Tagger();
if (options.train) {
tagger.li = new Long2Int(options.hsize);
tagger.pipe = new ExtractorT2 (options, tagger.mf= new MFO());
InstancesTagger is = (InstancesTagger)tagger.pipe.createInstances(options.trainfile);
tagger.params = new ParametersFloat(tagger.li.size());
tagger.train(options, tagger.pipe,tagger.params,is);
tagger.writeModel(options, tagger.pipe, tagger.params);
}
if (options.test) {
tagger.readModel(options);
tagger.out(options,tagger.pipe, tagger.params);
}
System.out.println();
if (options.eval) {
System.out.println("\nEVALUATION PERFORMANCE:");
Evaluator.evaluateTagger(options.goldfile, options.outfile,options.format);
}
long end = System.currentTimeMillis();
System.out.println("used time "+((float)((end-start)/100)/10));
}