org.eml.sir.rel
Class RadialGlossGenerator

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

public class RadialGlossGenerator
extends PseudoGlossGenerator

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

Author:
Hendrik Niederlich (EML-R)

Constructor Summary
RadialGlossGenerator()
          Create a new instance of RadialGlossGenerator.
RadialGlossGenerator(GermaNetObject gno)
          Create a new instance of RadialGlossGenerator.
 
Method Summary
 java.lang.String getGloss(Synset synset)
          Create a RadialGloss according to the current setting.
 void setUseHyponyms(boolean use)
          Set wether hyponyms shall be disposed to build the gloss.
 boolean useHyponmys()
          Return wether hyponyms shall be disposed 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

RadialGlossGenerator

public RadialGlossGenerator()
Create a new instance of RadialGlossGenerator. Default values: only first sense = true, scope = 3, use hyponyms = false


RadialGlossGenerator

public RadialGlossGenerator(GermaNetObject gno)
Create a new instance of RadialGlossGenerator. Default values: only first sense = true, scope = 3, use hyponyms = false

Method Detail

useHyponmys

public boolean useHyponmys()
Return wether hyponyms shall be disposed to build the gloss.


setUseHyponyms

public void setUseHyponyms(boolean use)
Set wether hyponyms shall be disposed to build the gloss.


getGloss

public java.lang.String getGloss(Synset synset)
Create a RadialGloss according to the current setting. In 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