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

directory missing to run Java test #26

Open
garfieldnate opened this issue Feb 19, 2016 · 1 comment
Open

directory missing to run Java test #26

garfieldnate opened this issue Feb 19, 2016 · 1 comment

Comments

@garfieldnate
Copy link

This is either a problem with the project setup or with documentation. After compiling the Java binding, running java test gives this error:

Exception in thread "main" java.lang.RuntimeException: feature_index.cpp(193) [mmap_.open(model_filename)] c:\workspace\crfpp\mmap.h(111) [hFile != INVALID_HANDLE_VALUE] CreateFile() failed: ../model
        at org.chasen.crfpp.CRFPPJNI.new_Tagger(Native Method)
        at org.chasen.crfpp.Tagger.<init>(Tagger.java:183)
        at test.main(test.java:6)

The file test.java uses a hard-coded path, ../model, which does not exist. The documentation in the README file in the java directory also says to use -d ../dic, which not only does not exist, but is also ignored inside of the test file.

@eduOS
Copy link

eduOS commented Jul 21, 2016

Hi @garfieldnate , I was plagued by this issue, please help. Since you had not encountered such a problem I suppose you has the file I don't. #33

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

2 participants