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

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



    MyFiles.combine(allfile, trainfile,testfile);


    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


  public static void main(String[] args) throws Exception {   
    bw = new PrintWriter(new OutputStreamWriter(new FileOutputStream(outputPath,true), "utf8"));   
   

    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

Related Classes of org.fnlp.nlp.parser.dep.train.JointParerTrainer

Copyright © 2018 www.massapicom. 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.