|
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.sdk.common.infomining.analysis.DKIKFClusterer
A cluster can be used to partition a document collection into sets of similar documents. You can use only one clusterer object with the same service object. If you create a second clusterer object for the same service, all previously analyzed documents get lost and both clusterer objects represent the same clusterer.
Constructor Summary | |
DKIKFClusterer(DKIKFService ikfService)
Creates a new clusterer object. |
Method Summary | |
void |
analyze(DKIKFTextDocument doc)
Adds a document to the set of documents to be clustered. |
DKIKFClusterResult |
cluster()
Clusters all documents sent to analyze(DKIKFTextDocument) . |
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. |
DKIKFService |
getService()
Returns the current service. |
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. |
void |
setMinClusterCount(int minClusterCount)
Sets the minimum number of clusters to be returned. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DKIKFClusterer(DKIKFService ikfService)
ikfService
- a service objectDKIKFAuthorizationException
- if the user or group does not have the privilege IKFRunAnalysisFuncMethod Detail |
public DKIKFService getService()
public void setMinClusterCount(int minClusterCount)
minClusterCount
- the minimum number of clusters to be returnedgetMinClusterCount()
public int getMinClusterCount()
setMinClusterCount(int)
public void setMaxClusterCount(int maxClusterCount)
maxClusterCount
- the maximum number of clusters to be returnedgetMaxClusterCount()
public int getMaxClusterCount()
setMaxClusterCount(int)
public void setClusterFeatureCount(int clusterFeatureCount)
getClusterFeatureCount()
public int getClusterFeatureCount()
setClusterFeatureCount(int)
public void analyze(DKIKFTextDocument doc) throws DKIKFUnsupportedLanguageException, DKIKFDocumentAlreadyAnalyzedException, DKIKFDocumentProcessingException
doc
- a document to be added for clusteringDKIKFDocumentLanguageNotSetException
- if the specified document has no languageDKIKFDocumentNameNotSetException
- if the specified document has no nameDKIKFUnsupportedLanguageException
- if the document language is not supported by the clustererDKIKFDocumentAlreadyAnalyzedException
- if a document with the same name has already been analyzedDKIKFDocumentProcessingException
- if an error occours during document processingcluster()
public DKIKFClusterResult cluster() throws DKIKFClusteringException
analyze(DKIKFTextDocument)
.DKIKFClusteringException
- if an error occours during processing
|
IBM Information Integrator for Content V8.2 APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |