ICTCLAS 中科院分詞 在java上的實現demo

注意點:   1,包名一定要是ICTCLAS.I3S.AC

2,要在ICTCLAS50.java這裏System.loadLibrary("ICTCLAS50");而且要做方法的聲明

eg:  public native boolean ICTCLAS_Init(byte[] sPath);
public native boolean ICTCLAS_Exit();
public native int ICTCLAS_ImportUserDictFile(byte[] sPath,int eCodeType);
public native int ICTCLAS_SaveTheUsrDic();
public native int ICTCLAS_SetPOSmap(int nPOSmap);
public native boolean ICTCLAS_FileProcess(byte[] sSrcFilename, int eCodeType, int bPOSTagged,byte[] sDestFilename);
public native byte[] ICTCLAS_ParagraphProcess(byte[] sSrc, int eCodeType, int bPOSTagged);
public native byte[] nativeProcAPara(byte[] sSrc, int eCodeType, int bPOStagged);

           具體的方法和參數請看http://blog.csdn.net/surehao/article/details/19202735



demo項目代碼請點:http://download.csdn.net/detail/surehao/6922979

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章