org.eml.sir.rel
Class InformationContentMapFactory

java.lang.Object
  extended byorg.eml.sir.rel.InformationContentMapFactory

public class InformationContentMapFactory
extends java.lang.Object

Factory that produces InformationContentMaps.

Author:
Hendrik Niederlich (EML-R)

Constructor Summary
InformationContentMapFactory()
          Create a new instance of InformationContentMapFactory.
InformationContentMapFactory(StemmingGermaNetObject sgno)
          Create a new instance of InformationContentMapFactory.
 
Method Summary
 InformationContentMap createInformationContentMap(StemFrequencyList sfl)
          Create an instance of InformationContentMap.
 StemFrequencyList getStemsNotInGermaNet()
          Return the stems that are not contained in the GermaNetObject.
 InformationContentMap getSynsetsNotInStemFrequencyList()
          Return the stems that are not in the StemFrequencyList.
 void setStemmer(Stemmer stemmer)
          Set the stemmer of this InformationContentMapFactory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InformationContentMapFactory

public InformationContentMapFactory()
Create a new instance of InformationContentMapFactory.


InformationContentMapFactory

public InformationContentMapFactory(StemmingGermaNetObject sgno)
Create a new instance of InformationContentMapFactory.

Method Detail

setStemmer

public void setStemmer(Stemmer stemmer)
Set the stemmer of this InformationContentMapFactory.


createInformationContentMap

public InformationContentMap createInformationContentMap(StemFrequencyList sfl)
Create an instance of InformationContentMap.

Parameters:
sfl - StemFrequencyList of the corpus that is base for the computation of the information content values. If the type of its stemmer is not the same as the stemmer of this InformationContentMapFactory, the stemmer of this InformationContentMapFactory will be set to the stemmer of the StemFrequencyList.
Returns:
InformationContentMap based on the StemFrequencyList.

getStemsNotInGermaNet

public StemFrequencyList getStemsNotInGermaNet()
Return the stems that are not contained in the GermaNetObject.

Returns:
A list with all stems not included in the GermaNetObject of the InformationContentMap last built by this InformationContentMapFactory.

getSynsetsNotInStemFrequencyList

public InformationContentMap getSynsetsNotInStemFrequencyList()
Return the stems that are not in the StemFrequencyList.

Returns:
A list with all stems not included in the StemFrequencyList that is the base of the InformationContentMap built last by this InformationContentMapFactory.