resources
Class RelationsPlwordnet

java.lang.Object
  extended by resources.SynonymDictionary
      extended by resources.RelationsPlwordnet
All Implemented Interfaces:
java.io.Serializable

public class RelationsPlwordnet
extends SynonymDictionary
implements java.io.Serializable

Synonym dictionary for plwordnet with relations

Author:
Mateusz Kopec
See Also:
Serialized Form

Constructor Summary
RelationsPlwordnet()
          Constructor
 
Method Summary
 java.util.Collection<java.lang.String> getSynonymsForLemma(java.lang.String lemma, boolean onlyMonosemous)
          Returns synonyms for given word
 void loadCache()
          Loads cache from a file on disk
 void saveCache()
          Saves cache in a file on disk
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationsPlwordnet

public RelationsPlwordnet()
Constructor

Method Detail

saveCache

public void saveCache()
Saves cache in a file on disk


loadCache

public void loadCache()
Loads cache from a file on disk


getSynonymsForLemma

public java.util.Collection<java.lang.String> getSynonymsForLemma(java.lang.String lemma,
                                                                  boolean onlyMonosemous)
Description copied from class: SynonymDictionary
Returns synonyms for given word

Specified by:
getSynonymsForLemma in class SynonymDictionary
Parameters:
lemma - word
onlyMonosemous - flag telling whether include only synonyms for monosemous word
Returns:
collection of synonyms