hankcs / hankcs/HanLPAndroidDemo

实现android环境下自定义data目录

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
27
Forks
6
PR merge metrics
No merged PRs in 30d

Description

实现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);
}
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.