|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.concept.clustering.ResultKeywordClusterer
Builds a cluster set based on the number of shared keywords between results. Uses a
RelatedDocumentProcessor to build the
Result interrelationships. The RelatedDocumentProcessor in turn contains an implementation
of an IDocumentKeywordProcessor which can extract keywords
from documents based on metadata fields, controlled vocabularies or Entity Extraction tools
using the ITermExtractor interface.
This is basically an ICluster wrapper on the RelatedDocumentProcessor GatewayOutputProcessor.
XML Configuration Template:
<Clusterer class="com.raritantechnologies.concept.clustering.ResultKeywordClusterer" >
<RelatedDocumentProcessor resultKeyField="[ field id for document key value ]"
relatedDocKeyField="[ nested result field name for related docs ]" >
<DocumentProcessor class="[ class of com.raritantechnologies.concept.IDocumentKeywordProcessor ]" >
</DocumentProcessor>
</RelatedDocumentProcessor
</Clusterer>
| Constructor Summary | |
ResultKeywordClusterer()
|
|
| Method Summary | |
void |
dataComplete()
called by cluster input source when all results to be clustered have been added to the clustering engine. |
QueryResultBean |
getCluster(java.lang.String clusterName)
returns the set of clustered result set keys. |
IResultSet |
getCluster(java.lang.String clusterName,
int pageSize,
int startRec)
returns a set of clustered results for a given key. |
java.util.Set |
getClusterNames()
returns the names of the clusters created. |
QueryResultBeanSet |
getClusterSet()
returns the set of clusters as a QueryResultBeanSet. |
int |
getClusterSize(java.lang.String clusterName)
returns the number of results for a given key. |
java.util.List |
getMatchingClusters(IResult result)
Returns a list of the result keys that have this result as a related document. |
QueryResultBeanSet |
getSubCluster(java.lang.String clusterName)
|
java.util.Iterator |
getSubClusterNames()
if clusterer supports hierarchical clustering. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
processResultSet(IResultSet resultSet)
called by cluster input to add results to the clustering engine. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResultKeywordClusterer()
| Method Detail |
public void processResultSet(IResultSet resultSet)
IClusterer
processResultSet in interface IClustererpublic void dataComplete()
dataComplete in interface IClustererpublic java.util.Set getClusterNames()
getClusterNames in interface IClustererpublic int getClusterSize(java.lang.String clusterName)
getClusterSize in interface IClustererpublic QueryResultBeanSet getClusterSet()
getClusterSet in interface IClustererpublic QueryResultBean getCluster(java.lang.String clusterName)
getCluster in interface IClusterer
public IResultSet getCluster(java.lang.String clusterName,
int pageSize,
int startRec)
getCluster in interface IClustererpublic java.util.Iterator getSubClusterNames()
IClusterer
getSubClusterNames in interface IClustererpublic QueryResultBeanSet getSubCluster(java.lang.String clusterName)
getSubCluster in interface IClustererpublic java.util.List getMatchingClusters(IResult result)
getMatchingClusters in interface IClustererpublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||