Skip to content

Android Studio : Init dic library error :org.ansj.exception.LibraryException #806

Open
@licryle

Description

@licryle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions