|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.concept.RelatedKeywordProcessor
Uses clustering to compute related keywords based on co-occurrence of keywords within IResult text fields. Uses a
nested IDocumentKeywordProcessor to handle related keyword extraction. The
related keywords can be determined by proximity within the document text, and a threshold of minimum number of
associations can be set.
Creates an output IResultSet with one result per keyword from the input result sets. Each output result contains a nested result set with the set of related keywords as well as metrics on the strength of the association.
XML Configuration Template:
<OutputProcessor class="com.raritantechnologies.concept.RelatedKeywordProcessor"
keywordField="[ result field that gets main keyword ]"
associatedKeywordsField="[ result field that gets list of associated keywords ]"
minAssociationDistance="[ minimum word distance for association ]"
minNumberAssociations="[ minimum number of associations needed ]" >
<DocumentProcessor class="[ class of com.raritantechnologies.concept.IDocumentKeywordProcessor ]" >
</DocumentProcessor>
<!-- Gateway Output Processor to handle related document results -->
<OutputProcessor class="[ class of com.raritantechnologies.searchApp.dataCollection.IGatewayOutputProcessor ]" >
</OutputProcessor>
</OutputProcessor>
| Constructor Summary | |
RelatedKeywordProcessor()
|
|
| Method Summary | |
void |
dataComplete()
Data feed is complete. |
java.lang.String |
getConfigurationXML()
|
void |
initialize(org.w3c.dom.Element outputProcElem)
Initialize the GatewayOutputProcessor from XML Element. |
void |
initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
Initialize the GatewayOutputProcessor from XML Configuration Element. |
void |
initialize(java.util.Map initParams)
Used for dynamic initialization (connection, collection name, file name, etc.) |
java.lang.String |
processData(IResultSet data)
returns name of XML File created/appended. |
void |
processResultSet(java.lang.String sessionID,
IResultSet data)
processes the IResultSet (somehow) |
void |
setOutputProcessor(IGatewayOutputProcessor outputProc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RelatedKeywordProcessor()
| Method Detail |
public java.lang.String processData(IResultSet data)
IGatewayOutputProcessor
processData in interface IGatewayOutputProcessor
public void processResultSet(java.lang.String sessionID,
IResultSet data)
IResultSetProcessor
processResultSet in interface IResultSetProcessorpublic void dataComplete()
dataComplete in interface IGatewayOutputProcessorpublic void initialize(java.util.Map initParams)
IGatewayOutputProcessor
initialize in interface IGatewayOutputProcessorpublic void initialize(org.w3c.dom.Element outputProcElem)
initialize in interface IResultSetProcessor
public void initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
IGatewayOutputProcessor
initialize in interface IGatewayOutputProcessorpublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IGatewayOutputProcessorpublic void setOutputProcessor(IGatewayOutputProcessor outputProc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||