Skip to content

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

Description

@ahtewlg7

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions