How to get the gloss from synset Key

Wojdan
2014-04-01
2014-04-05
  • Wojdan

    Wojdan - 2014-04-01

    I have the synset key and I want to get the gloss of that synset,
    Hint: I do not have the synset words
    is there way to do that?

    thanks

     
  • Aliaksandr Autayeu

    Can you clarify, what do you mean by synset key? I can think of "synset offset" and "sense key", but "synset key" remains unclear.

     
    • Wojdan

      Wojdan - 2014-04-02

      I am sorry, I mean synset offset or sense key
      thanks

       
  • Aliaksandr Autayeu

    So is it the first or the second?

    For synset offset:

        Synset s = dictionary.getSynsetAt(pos, offset);
        s.getGloss();
    

    For sense key:

        Word w = dictionary.getWordBySenseKey(sensekey);
        w.getSynset().getGloss();
    
     
    • Wojdan

      Wojdan - 2014-04-05

      Thank you for the quick feedback.

       
  • Aliaksandr Autayeu

    Good, that's resolved then :) Good luck in your project!

     

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