实现android 环境下,自定义data数据的目录
public static final String KEY_ENV_HANLP_ROOT_DIR = "HANLP_ROOT";
public void initNLP() {
try {
String nlpDir = new MyFileSystemAction().getNlpDataAbsPath();
Os.setenv(KEY_ENV_HANLP_ROOT_DIR, nlpDir, true);
} catch (ErrnoException e) {
throw new RuntimeException(e);
}
}
实现android 环境下,自定义data数据的目录
public static final String KEY_ENV_HANLP_ROOT_DIR = "HANLP_ROOT";
public void initNLP() {
try {
String nlpDir = new MyFileSystemAction().getNlpDataAbsPath();
Os.setenv(KEY_ENV_HANLP_ROOT_DIR, nlpDir, true);
} catch (ErrnoException e) {
throw new RuntimeException(e);
}
}