resources
Class SynonymsPlwordnet

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

public class SynonymsPlwordnet
extends SynonymDictionary
implements java.io.Serializable

Provides synonyms from plwordnet

Author:
Mateusz Kopec
See Also:
Serialized Form

Constructor Summary
SynonymsPlwordnet()
          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
 void saveCache()
          Saves cache in a file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynonymsPlwordnet

public SynonymsPlwordnet()
Constructor

Method Detail

saveCache

public void saveCache()
Saves cache in a file


loadCache

public void loadCache()
Loads cache from a file


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