org.carrot2.clustering.synthetic
Class ByUrlClusteringAlgorithmDescriptor.AttributeBuilder

java.lang.Object
  extended by org.carrot2.clustering.synthetic.ByUrlClusteringAlgorithmDescriptor.AttributeBuilder
Enclosing class:
ByUrlClusteringAlgorithmDescriptor

public static class ByUrlClusteringAlgorithmDescriptor.AttributeBuilder
extends Object

Attribute map builder for the ByUrlClusteringAlgorithm component. You can use this builder as a type-safe alternative to populating the attribute map using attribute keys.


Field Summary
 Map<String,Object> map
          The attribute map populated by this builder.
 
Constructor Summary
protected ByUrlClusteringAlgorithmDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 List<Cluster> clusters()
          Clusters created by the algorithm.
 ByUrlClusteringAlgorithmDescriptor.AttributeBuilder documents(List<Document> value)
          Documents to cluster.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

public final Map<String,Object> map
The attribute map populated by this builder.

Constructor Detail

ByUrlClusteringAlgorithmDescriptor.AttributeBuilder

protected ByUrlClusteringAlgorithmDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.

Method Detail

documents

public ByUrlClusteringAlgorithmDescriptor.AttributeBuilder documents(List<Document> value)
Documents to cluster.

See Also:
ByUrlClusteringAlgorithm.documents

clusters

public List<Cluster> clusters()
Clusters created by the algorithm.

See Also:
ByUrlClusteringAlgorithm.clusters


Copyright (c) Dawid Weiss, Stanislaw Osinski