org.eml.sir.rel
Class HypernymGlossGenerator

java.lang.Object
  extended byorg.eml.sir.rel.PseudoGlossGenerator
      extended byorg.eml.sir.rel.HypernymGlossGenerator

public class HypernymGlossGenerator
extends PseudoGlossGenerator

Class whose instances generate pseudoglosses on the basis of a words properties in the GermaNet.

Author:
Hendrik Niederlich (EML-R)

Constructor Summary
HypernymGlossGenerator()
          Create a new instance of HypernymGlossGenerator.
HypernymGlossGenerator(GermaNetObject gno)
          Create a new instance of HypernymGlossGenerator.
 
Method Summary
 java.lang.String getGloss(Synset synset)
          Create a HypernymGloss according to the current setting.
 int getLimit()
          Get the current limit setting of the pseudo gloss generation.
 void setLimit(int limit)
          Set the limit of the peudo gloss generation.
 void setUseLimit(boolean use)
          Set wether limit shall be used to build the gloss.
 boolean useLimit()
          Return wether limit shall be used to build the gloss.
 
Methods inherited from class org.eml.sir.rel.PseudoGlossGenerator
getGermaNetObject, getScope, onlyFirstSense, setOnlyFirstSense, setScope, setUseScope, useScope
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HypernymGlossGenerator

public HypernymGlossGenerator()
Create a new instance of HypernymGlossGenerator.


HypernymGlossGenerator

public HypernymGlossGenerator(GermaNetObject gno)
Create a new instance of HypernymGlossGenerator.

Method Detail

useLimit

public boolean useLimit()
Return wether limit shall be used to build the gloss.


setUseLimit

public void setUseLimit(boolean use)
Set wether limit shall be used to build the gloss.


getLimit

public int getLimit()
Get the current limit setting of the pseudo gloss generation.


setLimit

public void setLimit(int limit)
Set the limit of the peudo gloss generation.


getGloss

public java.lang.String getGloss(Synset synset)
Create a HypernymGloss according to the current setting. Inside a gloss no word sense occures twice. There are no guarantees to the iteration order of the words in the gloss.

Specified by:
getGloss in class PseudoGlossGenerator