Package org.fnlp.nlp.parser.dep

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


   * @throws LoadModelException
   */
  public static void loadParser(String path) throws LoadModelException {
    if(parser==null){
      String file = path+parseModel;
      parser = new JointParser(file);
    }
  }
View Full Code Here


  /**
   * @param args
   * @throws Exception
   */
  public static void main(String[] args) throws Exception {
    parser = new JointParser("../models/dep.m");
   
    System.out.println("得到支持的依存关系类型集合");
    System.out.println(parser.getSupportedTypes());
   
    String word = "中国进出口银行与中国银行加强合作。";
View Full Code Here

  /**
   * @param args
   * @throws Exception
   */
  public static void main(String[] args) throws Exception {
    parser = new JointParser("../models/dep.m");
    tag = new POSTagger("../models/seg.m","../models/pos.m");

    test();

  }
View Full Code Here

        ttag = new POSTagger("../models/seg.m","../models/pos.m");
        System.out.println("词性标注");
        break;
      case 3:
        ttag = new POSTagger("../models/seg.m","../models/pos.m");
        parser = new JointParser("../models/dep.m");
        System.out.println("句法分析");
        break;
      case 4:
        normalizer = new TimeNormalizer("../models/time.m");
        System.out.println("时间");
View Full Code Here

   * @param modelfile
   *            模型目录
   * @throws LoadModelException
   */
  public JointParerTester(String modelfile) throws LoadModelException {
    parser = new JointParser(modelfile);
  }
View Full Code Here

TOP

Related Classes of org.fnlp.nlp.parser.dep.JointParser

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.