org.eml.sir.rel
Class StemFrequencyList

java.lang.Object
  extended byorg.eml.sir.rel.FrequencyList
      extended byorg.eml.sir.rel.StemFrequencyList
All Implemented Interfaces:
java.io.Serializable

public class StemFrequencyList
extends FrequencyList

FrequencyList containing stems of a specific part of speech and their frequency.

Author:
Hendrik Niederlich (EML-R)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.eml.sir.rel.FrequencyList
ORDER_ALPHABETICAL, ORDER_BY_FREQUENCY
 
Constructor Summary
StemFrequencyList()
          Create a new instance of StemFrequencyList.
StemFrequencyList(WordFrequencyList list, Stemmer stemmer)
          Create a new instance of StemFrequencyList.
 
Method Summary
 void createAlphabeticalFile(java.lang.String fileName)
          Create a file with a table of stems and their frequencies ordered alphabetically that is readable by humans.
 void createFrequencyFile(java.lang.String fileName)
          Create a file with a table of stems and their frequencies ordered by frequency that is readable by humans.
 java.lang.String getStemmerName()
          Return the class name of the stemmer of this StemFrequencyList.
 void setStemmerName(java.lang.String stemmerName)
          Set the class name of the stemmer of this StemFrequencyList.
 
Methods inherited from class org.eml.sir.rel.FrequencyList
add, addSome, getAlphabeticalList, getFrequency, getFrequencyList, getMap, getPartOfSpeech, getSumOverAll, load, save, setPartOfSpeech, size, toStrings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StemFrequencyList

public StemFrequencyList()
Create a new instance of StemFrequencyList.


StemFrequencyList

public StemFrequencyList(WordFrequencyList list,
                         Stemmer stemmer)
Create a new instance of StemFrequencyList.

Method Detail

getStemmerName

public java.lang.String getStemmerName()
Return the class name of the stemmer of this StemFrequencyList.


setStemmerName

public void setStemmerName(java.lang.String stemmerName)
Set the class name of the stemmer of this StemFrequencyList.


createFrequencyFile

public void createFrequencyFile(java.lang.String fileName)
                         throws java.io.IOException
Create a file with a table of stems and their frequencies ordered by frequency that is readable by humans.

Throws:
java.io.IOException

createAlphabeticalFile

public void createAlphabeticalFile(java.lang.String fileName)
                            throws java.io.IOException
Create a file with a table of stems and their frequencies ordered alphabetically that is readable by humans.

Throws:
java.io.IOException