|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.datamanager.passiveentityvalue.WordFrequencyMapEntityValue
This class maintains a Map of words mapped to their numerical frequencies of occurrence within a given Document.
| Field Summary | |
static String |
ATTRIBUTE_NAME
This constant represents the attribute name that should be used for the Entity whose EntityValue is this WordFrequencyMapEntityValue. |
static String |
DELIMITERS
Delimiters to be used when tokenizing up a String corpus. |
| Constructor Summary | |
WordFrequencyMapEntityValue(String corpus)
|
|
| Method Summary | |
boolean |
contains(String word)
|
boolean |
equals(Object object)
Returns true if the object in question is a WordFrequencyMapEntityValue and their underlying Maps and corpusi are also .equals() to each other. |
double |
getFrequencyOf(String word)
|
double |
getNumberOfUniqueWords()
|
Map |
getSynchronizedWordFrequencyMap()
|
double |
getTotalNumberOfWords()
Returns an double representing the total number of words in this word frequency map. |
Map |
getWordFrequencyMap()
|
Set |
getWordSet()
|
int |
hashCode()
Returns the hashCode() of the String corpus. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String DELIMITERS
public static final String ATTRIBUTE_NAME
| Constructor Detail |
public WordFrequencyMapEntityValue(String corpus)
| Method Detail |
public int hashCode()
hashCode in interface PassiveEntityValuehashCode in class Objectpublic boolean equals(Object object)
equals in interface PassiveEntityValueequals in class Objectpublic Map getWordFrequencyMap()
public Map getSynchronizedWordFrequencyMap()
public Set getWordSet()
public boolean contains(String word)
public double getFrequencyOf(String word)
public double getNumberOfUniqueWords()
public double getTotalNumberOfWords()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||