Package org.fnlp.nlp.cn.tag

Examples of org.fnlp.nlp.cn.tag.CWSTagger.tagFile()


    RLSeg rlseg = new RLSeg(tag,"./tmpdata/FNLPDATA/all.dict");

    tag.setDictionary(tempdict);

    System.out.println("\n处理文件:");
    String s4 = tag.tagFile("../example-data/data-tag.txt");
    System.out.println(s4);
    String[] toks = s4.split("\\s+");
    int newset = rlseg.update(toks);
    rlseg.close();
View Full Code Here


    rlseg.close();

    tag.setDictionary(tempdict);

    System.out.println("\n处理文件:");
    String s = tag.tagFile("../example-data/data-tag.txt");
    System.out.println(s);


  }
View Full Code Here

    for(String s:str){
      String t = tag.tag(s);
      System.out.println(t);
    }
   
    String t = tag.tagFile("data/FNLPDATA/seg/bad case.txt");
    System.out.println(t);
   
  }
 
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.