注意点: 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.youkuaiyun.com/surehao/article/details/19202735
demo项目代码请点:http://download.youkuaiyun.com/detail/surehao/6922979
本文介绍如何在Java环境中使用ICTCLAS50进行文本处理,包括初始化、导入用户词典、文件处理等功能,并提供具体方法及参数说明。
9953

被折叠的 条评论
为什么被折叠?



