Help - running ewn tool to edit use count

  • ashish

    ashish - 2012-11-30

    Hi Autayeu,
    I wanted to add new synset to inherent synset list of word "cart"
    As per my understanding of API i did  following command -
    ewn.bat carewn%1:09:00:: -add -addword cart -setusecount 10

    and then checked status with following program

    IndexWord WORD;
    WORD = dictionary.getIndexWord(POS.VERB, "cart");
    List<Synset> l = WORD.getSenses();
    for(Synset s : l)
    List<Word> pl = s.getWords();
    for(Word t:pl)
      System.out.println( "Sense Key:" + t.getSenseKey() + ",Lemma:" + t.getLemma() + ",useCount:" + t.getUseCount());

    This prints -
    Sense Key:carewn%1:09:00::,Lemma:carewn,useCount:0
    with other ouput.
    But here useCount is 0.
    That i want to change.
    I mean I want to add new synset "carewn" to indexed word "cart" with use count.

    Please help?


  • Aliaksandr Autayeu

    It looks like a big, I'm fixing it.

  • Aliaksandr Autayeu

    Fixed. The fix is in my repo, to be included in the next release.

  • ashish

    ashish - 2012-12-03

    Thanks for quick reply and quick fix. It's working now.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks