|
IBM Information Integrator for Content V8.2 APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mm.beans.infomining.CMBInfoMiningBean | +--com.ibm.mm.beans.infomining.CMBConnectedMiningBean | +--com.ibm.mm.beans.infomining.CMBTextAnalysisBean | +--com.ibm.mm.beans.infomining.CMBClusteringService
The CMBClusteringService is a non-visual bean that can be used to
group documents to clusters according to the similarity of their content.
Properties and Events Overview: pre-conditions open server connection properties (default) clusterFeatureCount (1) maxClusterCount (20) minClusterCount (1) traceEnabled (false) bound properties none constrained properties none event target for CMBTextAnalysisRequestEvent CMBConnectionReplyEvent event source for CMBExceptionEvent CMBTraceEvent CMBTextAnalysisReplyEvent CMBTextAnalysisRequestEvent CMBStoreRecordRequestEvent
Constructor Summary | |
CMBClusteringService()
Creates a new CMBClusteringService. |
Method Summary | |
void |
analyze(java.util.Vector itemVector)
Adds a document to the set of documents to be clustered. |
CMBClusterResult |
cluster()
Clusters all documents sent to analyze(Vector) . |
int |
getClusterFeatureCount()
Returns the number of cluster features to be returned. |
int |
getMaxClusterCount()
Returns the maximum number of clusters to be returned. |
int |
getMinClusterCount()
Returns the minimum number of clusters to be returned. |
void |
setClusterFeatureCount(int clusterFeatureCount)
Sets the number of cluster features to be returned. |
void |
setMaxClusterCount(int maxClusterCount)
Sets the maximum number of clusters to be returned during the analysis of an item. |
void |
setMinClusterCount(int minClusterCount)
Sets the minimum number of clusters to be returned during the analysis of an item. |
Methods inherited from class com.ibm.mm.beans.infomining.CMBTextAnalysisBean |
addCMBStoreRecordRequestListener, addCMBTextAnalysisReplyListener, addCMBTextAnalysisRequestListener, finalize, onCMBTextAnalysisRequest, removeCMBStoreRecordRequestListener, removeCMBTextAnalysisReplyListener, removeCMBTextAnalysisRequestListener |
Methods inherited from class com.ibm.mm.beans.infomining.CMBConnectedMiningBean |
getConnection, isConnected, onCMBConnectionReply, setConnection, validateConnection |
Methods inherited from class com.ibm.mm.beans.infomining.CMBInfoMiningBean |
addCMBExceptionListener, addCMBTraceListener, isTraceEnabled, removeCMBExceptionListener, removeCMBTraceListener, setTraceEnabled |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CMBClusteringService()
Method Detail |
public void setMinClusterCount(int minClusterCount)
minClusterCount
- the minimal number of clusters to be returnedgetMinClusterCount()
public void setMaxClusterCount(int maxClusterCount)
maxClusterCount
- the maximal number of clusters to be returnedgetMaxClusterCount()
public int getMinClusterCount()
setMinClusterCount(int)
public int getMaxClusterCount()
setMaxClusterCount(int)
public void setClusterFeatureCount(int clusterFeatureCount)
0
means all the cluster features are shownclusterFeatureCount
- the number of cluster features to be returnedgetClusterFeatureCount()
public int getClusterFeatureCount()
setClusterFeatureCount(int)
public CMBClusterResult cluster() throws CMBClusteringException
analyze(Vector)
.CMBClusteringException
- if an error occured while processing the documents.public void analyze(java.util.Vector itemVector) throws CMBInvalidTypeException, CMBNoSuchKeyException
CMBInvalidTypeException
- if the content read from the record is of the wrong typeCMBNoSuchKeyException
- if the wrong key is used to read the content from the recordCMBDocumentAlreadyAnalyzedException
- if the document for the specified item has already been analyzedCMBInvalidLanguageCodeException
- if a wrong language code is read from the recordCMBUnsupportedLanguageException
- if the language specified in the record is not supportedCMBDocumentProcessingException
- if an error occured while processing the document for the itemcluster()
|
IBM Information Integrator for Content V8.2 APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |