Package org.fnlp.nlp.cn.tag

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


   
    ArrayList<String> str1 = MyCollection.loadList("data/FNLPDATA/seg/bad case.txt",null);
    for(String s:str1){   
      s = s.trim();
      String s1 = s.replaceAll(" ", "");
      String t = tag.tag(s1);
      System.out.println("处理: "+t);
      if(!t.equals(s))
        System.err.println("正确: "+s)
    }
   
View Full Code Here


      }else if(line.startsWith("<doc")){
        count++;       
      }else if(line.startsWith("</doc>")){
        count--;
      }else{
        line = seg.tag(line);     
      }
      out.append(line);
      out.append("\n");
    }
    System.out.println(count);
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.