Examples of POSTagger


Examples of org.fnlp.nlp.cn.tag.POSTagger

    ep = new EntitiesGetter();   
    cl = Linear.loadFrom(armodel);
  }
 
  public Anaphora(String segmodel, String posmodel, String armodel) throws LoadModelException{
    pos = new POSTagger(segmodel,posmodel);
    ep = new EntitiesGetter();   
    cl = Linear.loadFrom(armodel);
  }
View Full Code Here

Examples of org.fnlp.nlp.cn.tag.POSTagger

  public RuleAnaphora() throws Exception
    ep = new EntitiesGetter()
  }
 
  public RuleAnaphora(String segmodel, String posmodel) throws Exception{
    pos = new POSTagger(segmodel,posmodel);
    ep = new EntitiesGetter()
  }
View Full Code Here

Examples of org.fnlp.nlp.cn.tag.POSTagger

  public LinkedList<Instance> getLlist(){
    return this.llist;
   
  }
  public static void main(String args[]) throws Exception{
    FileGroupReader.tag = new POSTagger("../models/seg.m", "../models/pos.m");
   
    MyDocumentWriter dr1 = new MyDocumentWriter("../tmp/ar");
    dr1.writeOut("../tmp/ar-train.txt");
    System.out.print("已经写入文档");
  }
View Full Code Here

Examples of org.fnlp.nlp.cn.tag.POSTagger

    System.out.print("Done");
  }

  public void addEnTag(String file) throws LoadModelException,
      IOException {
    AbstractTagger cl = new POSTagger(file);
     

    addEnTag(cl,file);
    cl.saveTo(file);
  }
View Full Code Here

Examples of org.fnlp.nlp.cn.tag.POSTagger

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

    RLSeg rlseg = new RLSeg(seg,"./tmpdata/FNLPDATA/all.dict");
//    tag.setDictionary(rlseg.tempdict);
    String file = "./tmpdata/20120927-微博分词-5000-test-utf-8.txt";
    BufferedReader bfr = new BufferedReader(new InputStreamReader(new FileInputStream(file),"utf8"));
View Full Code Here

Examples of org.fnlp.nlp.cn.tag.POSTagger

   * @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

Examples of org.fnlp.nlp.cn.tag.POSTagger

   * @throws IOException
   * @throws 
   */
  public static void main(String[] args) throws Exception {
    // TODO Auto-generated method stub
    tag = new POSTagger("models/seg.m","models/pos.m");
   
    ArrayList<String> str = MyCollection.loadList("./testcase/test case pos.txt",null);
    str.add("周杰伦 生 于 台湾\n我们");
    str.add("分析和比较");
   
View Full Code Here

Examples of org.fnlp.nlp.cn.tag.POSTagger

      case 1:
        stag = new CWSTagger("../models/seg.m");
        System.out.println("分词");
        break;
      case 2:
        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");
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.