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 Studio : Init dic library error :org.ansj.exception.LibraryException #806

Open
licryle opened this issue Oct 5, 2024 · 0 comments

Comments

@licryle
Copy link

licryle commented Oct 5, 2024

Hello,

i'm aware this may be an abandoned library but still trying it out...
However, my attempt ends up in dictionaries simply not being loaded:

Gradle:
implementation("org.ansj:ansj_seg:5.1.6")

Code:
val result = ToAnalysis.parse(value)

Logs:

Init ambiguity library error :org.ansj.exception.LibraryException:  path :library/ambiguity.dic file:/library/ambiguity.dic not found or can not to read, path: library/ambiguity.dic

Init dic library error :org.ansj.exception.LibraryException:  path :library/default.dic file:/library/default.dic not found or can not to read, path: library/default.dic

Not too clear whether I was supposed to manually download and configure them somehow.

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