|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.sir.rel.InformationContentMap
Contains synsets and their information content value. An InformationContentMap can be in two states: unaccomplished and accomplished. To create an InformationContentMap, first call the constructor. You get an unaccomplished instance. Now report all identifications and concepts to the unaccomplished map and then accomplish it by calling the accomplish()-method. Afterwards it is not possible to make any further reports.
Field Summary | |
static char |
ORDER_ALPHABETICAL
|
static char |
ORDER_BY_INFO_CONTENT
|
Constructor Summary | |
InformationContentMap()
Create a new instance of InformationContentMap. |
Method Summary | |
void |
accomplish()
Accomplish this InformationContentMap. |
void |
createAlphabeticalFile(java.lang.String fileName)
Create a file with a table of concepts and their values ordered alphabetically that is readable by humans. |
void |
createFrequencyFile(java.lang.String fileName)
Create a file with a table of concepts and their values ordered by values that is readable by humans. |
int |
getConceptsNumber()
Return the number of unique concepts in this InformationContentMap. |
java.lang.Integer |
getFrequency(Synset concept)
Return the frequency of a specific concept. |
double |
getHighestIC()
Return the highest information content value of this InformationContentMap. |
int |
getIdentificationsNumber()
Return the number of identified items while creating this InformationContentMap. |
java.lang.Double |
getInformationContent(Synset concept)
Return the information content value of a specific concept. |
double |
getLowestIC()
Return the lowest information content value of this InformationContentMap. |
char |
getPartOfSpeech()
Return part of speech of this InformationContentMap. |
java.lang.Double |
getProbability(Synset concept)
Return the probability of a specific concept. |
double |
getShortestDistance()
Return shortest distance of this InformationContentMap. |
Stemmer |
getStemmer()
Return a stemmer of this InformationContentMap's stemmer class name. |
java.lang.String |
getStemmerName()
Return the class name of the stemmer of this InformationContentMap. |
static InformationContentMap |
load(java.lang.String fileName)
Load a serialized instance of InformationContentMap. |
boolean |
reportConcept(Synset concept,
java.lang.Integer number)
Count a concept and its frequency. |
boolean |
reportConcepts(java.util.ArrayList concepts,
java.lang.Integer number)
Count concepts and their frequencies. |
boolean |
reportIdentifications(java.lang.Integer number)
Count the number of identified items in this InformationContentMap. |
boolean |
save(java.lang.String fileName)
Serialize an instance of InformationContentMap and save it to a file. |
boolean |
setPartOfSpeech(char pos)
Set part of speech of this InformationContentMap. |
boolean |
setStemmerName(java.lang.String stemmerName)
Set the class name of the stemmer of this InformationContentMap. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final char ORDER_ALPHABETICAL
public static final char ORDER_BY_INFO_CONTENT
Constructor Detail |
public InformationContentMap()
Method Detail |
public char getPartOfSpeech()
public boolean setPartOfSpeech(char pos)
public java.lang.String getStemmerName()
public boolean setStemmerName(java.lang.String stemmerName)
public Stemmer getStemmer()
public double getShortestDistance()
public boolean reportIdentifications(java.lang.Integer number)
public boolean reportConcept(Synset concept, java.lang.Integer number)
public boolean reportConcepts(java.util.ArrayList concepts, java.lang.Integer number)
public void accomplish()
public int getConceptsNumber()
public int getIdentificationsNumber()
public java.lang.Integer getFrequency(Synset concept)
public java.lang.Double getProbability(Synset concept)
public double getHighestIC()
public double getLowestIC()
public java.lang.Double getInformationContent(Synset concept)
public void createFrequencyFile(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void createAlphabeticalFile(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static InformationContentMap load(java.lang.String fileName)
fileName
- Complete path and file name.public boolean save(java.lang.String fileName)
fileName
- Complete path and file name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |