raganato / babelmorph Goto Github PK
View Code? Open in Web Editor NEWBabelMorph: a Multilingual Morphological Library for retrieving word inflections for nouns, verbs and adjectives based on Wiktionary.
License: GNU General Public License v3.0
BabelMorph: a Multilingual Morphological Library for retrieving word inflections for nouns, verbs and adjectives based on Wiktionary.
License: GNU General Public License v3.0
Could not init BabelMorph: Format version is not supported (resource BufferedChecksumIndexInput(SimpleFSIndexInput(path="/home/giuliano/UniMorph/segments_1"))): this index is too old (version: 5.4.1). This version of Lucene only supports indexes created with release 6.0 and later.
Oct 20, 2018 10:16:08 AM it.uniroma1.lcl.babelmorph.BabelMorphConfiguration <init>
INFO: Loading babelmorph.properties FROM /home/giuliano/eclipse-workspace/adj/config/babelmorph.properties
Oct 20, 2018 10:16:08 AM it.uniroma1.lcl.babelmorph.BabelMorph <init>
INFO: Opening index: /home/giuliano/UniMorph
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Could not init BabelMorph: **Format version is not supported (resource BufferedChecksumIndexInput(SimpleFSIndexInput(path="/home/giuliano/UniMorph/segments_1"))): this index is too old (version: 5.4.1). This version of Lucene only supports indexes created with release 6.0 and later.**
at it.uniroma1.lcl.babelmorph.BabelMorph.getInstance(BabelMorph.java:90)
at it.uniroma1.lcl.adjectives.Prova.<clinit>(Prova.java:14)
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?
README says that BabelMorph is licensed as Creative Commons Attribution-Noncommercial-Share Alike 3.0 License, while the LICENSE file in the root of the repository is the GPL 3.0 license. Could you please remove the contradiction and specify unequivocally how the repo is licensed? Thanks!
Experimented with babelmorph example a bit, and is it so that for prepositions or if the word is not recognized as such, as it doesn't give any results?
word = "chez";
System.out.println("morphology from the word \""+word+"\" in "+Language.FRA);
bmwFromWord = bm.getMorphologyFromWord(Language.FRA, word);
System.out.println("Lemma\tLang\tPoS\tinflected forms");
for(BabelMorphWord bmw : bmwFromWord)
System.out.println(bmw);
System.out.println();
word = "xyz";
System.out.println("2morphology from the word \""+word+"\" in "+Language.FRA);
bmwFromWord = bm.getMorphologyFromLemma(Language.FRA, word);
System.out.println("Lemma\tLang\tPoS\tinflected forms");
for(BabelMorphWord bmw : bmwFromWord)
System.out.println(bmw);
System.out.println();
For both of those the result set was empty:
morphology from the word "chez" in French
Lemma Lang PoS inflected forms
2morphology from the word "xyz" in French
Lemma Lang PoS inflected forms
I was hoping to get the preposition info or verification if the word is not valid at all, but have to think a bit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.