Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ahtewlg7 opened this issue Feb 28, 2019 · 0 comments
Open

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

ahtewlg7 opened this issue Feb 28, 2019 · 0 comments

Comments

@ahtewlg7
Copy link

ahtewlg7 commented Feb 28, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant