Requirement

需要 dom4j

Javadoc

Sample Code for Java

package tw.cheyingwu.CKIP; public class TestRun { public static void main(String[] args) { CKIP c = new CKIP("ip",port,"username", "password"); String e = "台新金控12月3日將召開股東臨時會進行董監改選。"; c.setRawText(e); c.send(); System.out.print(c.getRawText()); String[] s = c.getSentence(); for(Term t : c.getTerm()){ System.out.println(t.getTerm()+","+t.getTag()); } } }