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

no information of BabelMorphWord #1

Closed
eveliao opened this issue Jun 5, 2018 · 3 comments
Closed

no information of BabelMorphWord #1

eveliao opened this issue Jun 5, 2018 · 3 comments

Comments

@eveliao
Copy link

eveliao commented Jun 5, 2018

I ran Example.java. But the output is

Lemma Lang PoS inflected forms
eat EN verb ate info:[no-info] eats info:[no-info] eating info:[no-info] eaten info:[no-info] et info:[no-info]

There is no specific information of inflected forms, such as present, past participate.

But I need the information. How can I get it? Should I update the index files myself?

@raganato
Copy link
Owner

raganato commented Jun 9, 2018

i've updated the project with a new index with the data from the UniMorph project.
The available information depend from the UniMorph project.

@raganato raganato closed this as completed Jun 9, 2018
@eveliao
Copy link
Author

eveliao commented Jun 11, 2018

I downloaded the latest version of BabelMorph. However the directory that should contain the data file is empty.

INFO: Opening index: path/to/indexFolder
Exception in thread "main" java.lang.RuntimeException: Could not init BabelMorph: no segments* file found in SimpleFSDirectory@\BabelMorph\path\to\indexFolder lockFactory=org.apache.lucene.store.NativeFSLockFactory@2d8e6db6: files: []
at it.uniroma1.lcl.babelmorph.BabelMorph.getInstance(BabelMorph.java:90)
at it.uniroma1.lcl.babelmorph.example.Example.main(Example.java:21)

@raganato
Copy link
Owner

you need to download the index, extract it, and configure the file located inside the config folder (babelmorph.properties) with the path to the index folder.
From the error it seems that it's trying still to open the fake path "\path\to\indexFolder" in the babelmorph.properties file.

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