|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.concept.Keyword
Maintains associative relationships between keywords based on proximity of keywords to each other within a set of processed documents.
| Nested Class Summary | |
class |
Keyword.AssociatedKeywordData
|
| Constructor Summary | |
Keyword(java.lang.String keyword)
|
|
Keyword(java.lang.String keyword,
int location)
|
|
| Method Summary | |
void |
addDocument(Document doc)
This method builds an associated keywords map. |
void |
addDocument(Document doc,
int minAssocDistance)
Extracts the Keywords from a Document. |
void |
addDocumentUsingSentences(Document doc)
|
OrderedMapEntry[] |
getAssociatedDocumentSentences(java.lang.String keyword)
Returns an array of delimited strings with docName|sentence |
java.util.HashMap |
getAssociatedKeywords()
returns a map of association strength to Keyword |
java.util.TreeMap |
getAssociatedKeywords(double minFraction)
|
java.lang.String |
getCategory()
|
java.lang.String |
getKeyword()
|
int |
getNDocuments()
|
static OrderedMap |
getOrderedKeywordAssociationMap(java.util.HashMap keywordAssociationMap)
returns an OrderedMap of keyword associations in which the order of the keywords is based on the number of associations. |
static java.util.HashMap |
mergeAssociatedKeywordMaps(java.util.HashMap assocKeywords1,
java.util.HashMap assocKeywords2)
Merges two maps of keyword --> AssociatedKeywordData objects. |
void |
setCategory(java.lang.String category)
|
void |
setLocation(int location)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Keyword(java.lang.String keyword)
public Keyword(java.lang.String keyword,
int location)
| Method Detail |
public java.lang.String getKeyword()
public void setCategory(java.lang.String category)
public java.lang.String getCategory()
public void addDocument(Document doc)
public void addDocument(Document doc,
int minAssocDistance)
public void addDocumentUsingSentences(Document doc)
public java.util.HashMap getAssociatedKeywords()
public java.util.TreeMap getAssociatedKeywords(double minFraction)
public static java.util.HashMap mergeAssociatedKeywordMaps(java.util.HashMap assocKeywords1,
java.util.HashMap assocKeywords2)
public static OrderedMap getOrderedKeywordAssociationMap(java.util.HashMap keywordAssociationMap)
public OrderedMapEntry[] getAssociatedDocumentSentences(java.lang.String keyword)
public int getNDocuments()
public void setLocation(int location)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||