Examples of YamadaParser


Examples of org.fnlp.nlp.parser.dep.YamadaParser

   * @throws ClassNotFoundException
   * @throws IOException
   */
  public ParserTester(String modelfile) throws IOException,
      ClassNotFoundException {
    parser = new YamadaParser(modelfile);
  }
View Full Code Here

Examples of org.fnlp.nlp.parser.dep.YamadaParser

   * @throws IOException
   * @throws ClassNotFoundException
   */
  public static void main(String[] args) throws ClassNotFoundException, IOException {
    String modelfile = "./models/dep.m";
    YamadaParser parser = new YamadaParser(modelfile);
    AlphabetFactory factory = parser.factory;
    Linear[] models = parser.models;
    refineModels(models,factory);

    ParserTrainer.saveModels(modelfile+1,models,factory);
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.