Giter VIP home page Giter VIP logo

babelmorph's People

Contributors

raganato avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

andy-wagner

babelmorph's Issues

Could not init BabelMorph: Format version is not supported

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)

no information of BabelMorphWord

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?

Please clarify the license for this code

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!

Prepositions or valid words?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.