353637383940414243
int maxite = 100; float c = 0.01f; trainer.train(allfile, maxite, c); float thres = 0.00001f; ModelOptimization op = new ModelOptimization(thres); op.optimizeDep(model); }
394041424344454647484950515253545556575859
bw.println("优化"); float thres = 1.0E-5f; bw.println(thres); ModelOptimization op = new ModelOptimization(thres); op.optimizeDep(model); eval(); ///////////////////////////////////////// bw.println("优化"); thres = 1.0E-4f; bw.println(thres); op = new ModelOptimization(thres); op.optimizeDep(model); eval(); bw.close(); }
454647484950515253545556575859606162636465
bw.println("优化"); float thres = 0.00001f; bw.println(thres); ModelOptimization op = new ModelOptimization(thres); op.optimizeTag(model); eval(seg); ///////////////////////////////////////// bw.println("优化"); thres = 0.001f; bw.println(thres); op = new ModelOptimization(thres); op.optimizeTag(model); eval(seg); bw.close();
36373839404142434445
seg.train(); ///////////////////////////////////////// float thres = 0.001f; ModelOptimization op = new ModelOptimization(thres); op.optimizeTag(model); }
464748495051525354555657585960616263646566
bw.println("优化"); float thres = 1.0E-5f; bw.println(thres); ModelOptimization op = new ModelOptimization(thres); op.optimizeTag(model); eval(pos); ///////////////////////////////////////// bw.println("优化"); thres = 1.0E-4f; bw.println(thres); op = new ModelOptimization(thres); op.optimizeTag(model); eval(pos); bw.close();
303132333435363738394041
pos.iterNum = 100; pos.c = 0.01f; pos.train(); float thres = 1.0E-5f; ModelOptimization op = new ModelOptimization(thres); op.optimizeTag(model); POSAddEnTag pp = new POSAddEnTag(); pp.addEnTag(model);