|
Carrot2 v3.3.0
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.core.ProcessingComponentBase
org.carrot2.clustering.lingo.LingoClusteringAlgorithm
public class LingoClusteringAlgorithm
Lingo clustering algorithm.
| Field Summary | |
|---|---|
ClusterBuilder |
clusterBuilder
Cluster label builder, contains bindable attributes. |
List<Cluster> |
clusters
|
List<Document> |
documents
Documents to cluster. |
LabelFormatter |
labelFormatter
Cluster label formatter, contains bindable attributes. |
TermDocumentMatrixBuilder |
matrixBuilder
Term-document matrix builder for the algorithm, contains bindable attributes. |
TermDocumentMatrixReducer |
matrixReducer
Term-document matrix reducer for the algorithm, contains bindable attributes. |
MultilingualClustering |
multilingualClustering
A helper for performing multilingual clustering. |
boolean |
nativeMatrixUsed
Indicates whether Lingo used fast native matrix computation routines. |
CompletePreprocessingPipeline |
preprocessingPipeline
Common preprocessing tasks handler. |
String |
query
Query that produced the documents. |
double |
scoreWeight
Balance between cluster score and size during cluster sorting. |
| Constructor Summary | |
|---|---|
LingoClusteringAlgorithm()
|
|
| Method Summary | |
|---|---|
void |
init(IControllerContext context)
Invoked after component's attributes marked with Init and Input
annotations have been bound, but before calls to any other methods of this
component. |
void |
process()
Performs Lingo clustering of documents. |
| Methods inherited from class org.carrot2.core.ProcessingComponentBase |
|---|
afterProcessing, beforeProcessing, dispose, getContext, getSharedExecutor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.carrot2.core.IProcessingComponent |
|---|
afterProcessing, beforeProcessing, dispose |
| Field Detail |
|---|
public String query
public List<Document> documents
public List<Cluster> clusters
public boolean nativeMatrixUsed
NNIInterface.isNativeBlasAvailable() at the time of
running the algorithm.
public double scoreWeight
public CompletePreprocessingPipeline preprocessingPipeline
public TermDocumentMatrixBuilder matrixBuilder
public TermDocumentMatrixReducer matrixReducer
public ClusterBuilder clusterBuilder
public LabelFormatter labelFormatter
public MultilingualClustering multilingualClustering
| Constructor Detail |
|---|
public LingoClusteringAlgorithm()
| Method Detail |
|---|
public void init(IControllerContext context)
IProcessingComponentInit and Input
annotations have been bound, but before calls to any other methods of this
component. After a call to this method completes without an exception, attributes
marked with Init Output will be collected. In this method,
components should perform initializations based on the initialization-time
attributes. This method is called once in the life time of a processing
component instance.
init in interface IProcessingComponentinit in class ProcessingComponentBasecontext - An instance of IControllerContext of the controller to which this
component instance will be bound.
public void process()
throws ProcessingException
documents.
process in interface IProcessingComponentprocess in class ProcessingComponentBaseProcessingException - when processing failed. If thrown, the
IProcessingComponent.afterProcessing() method will be called and the component will
be ready to accept further requests or to be disposed of. Finally, the
exception will be rethrown from the controller method that caused the
component to perform processing.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||