Package org.fnlp.nlp.parser.dep.train

Examples of org.fnlp.nlp.parser.dep.train.JointParerTrainer.train()



    JointParerTrainer trainer = new JointParerTrainer(model);
    int maxite = 100;
    float c = 0.01f;
    trainer.train(allfile, maxite, c);
   
    float thres = 0.00001f;
    ModelOptimization op = new ModelOptimization(thres);
    op.optimizeDep(model);
   
View Full Code Here


   

    JointParerTrainer trainer = new JointParerTrainer(model);
    int maxite = 50;
    float c = 0.01f;
    trainer.train(trainfile, maxite, c);

    eval();

    bw.println("优化");
    float thres = 1.0E-5f;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.