@Bindable(prefix="LingoClusteringAlgorithm", inherit=CommonAttributes.class) @Label(value="Lingo Clustering") public class LingoClusteringAlgorithm extends ProcessingComponentBase implements IClusteringAlgorithm
Modifier and Type | Field and Description |
---|---|
ClusterBuilder |
clusterBuilder
Cluster label builder, contains bindable attributes.
|
List<Cluster> |
clusters |
int |
desiredClusterCountBase
Desired cluster count base.
|
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.
|
IPreprocessingPipeline |
preprocessingPipeline
Common preprocessing tasks handler, contains bindable attributes.
|
String |
query
Query that produced the documents.
|
double |
scoreWeight
Balance between cluster score and size during cluster sorting.
|
Constructor and Description |
---|
LingoClusteringAlgorithm() |
Modifier and Type | Method and Description |
---|---|
void |
process()
Performs Lingo clustering of
documents . |
afterProcessing, beforeProcessing, dispose, getContext, getSharedExecutor, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterProcessing, beforeProcessing, dispose, init
@Processing @Input @Internal @Attribute(key="query", inherit=true) public String query
@Processing @Input @Required @Internal @Attribute(key="documents", inherit=true) public List<Document> documents
@Processing @Output @Internal @Attribute(key="clusters", inherit=true) public List<Cluster> clusters
@Input @Processing @Attribute @Label(value="Size-Score sorting ratio") @Level(value=MEDIUM) @Group(value="Clusters") public double scoreWeight
@Input @Processing @Attribute @IntRange(min=2, max=100) @Label(value="Cluster count base") @Level(value=BASIC) @Group(value="Clusters") public int desiredClusterCountBase
@Input @Attribute @Internal @Level(value=ADVANCED) public IPreprocessingPipeline preprocessingPipeline
public final TermDocumentMatrixBuilder matrixBuilder
public final TermDocumentMatrixReducer matrixReducer
public final ClusterBuilder clusterBuilder
public final LabelFormatter labelFormatter
public final MultilingualClustering multilingualClustering
public void process() throws ProcessingException
documents
.process
in interface IProcessingComponent
process
in class ProcessingComponentBase
ProcessingException
- 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.