com.carrotsearch.lingo3g
Class Lingo3GClusteringAlgorithmDescriptor.AttributeBuilder

java.lang.Object
  extended by com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithmDescriptor.AttributeBuilder
Enclosing class:
Lingo3GClusteringAlgorithmDescriptor

public static class Lingo3GClusteringAlgorithmDescriptor.AttributeBuilder
extends Object

Attribute map builder for the Lingo3GClusteringAlgorithm 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 Lingo3GClusteringAlgorithmDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 Lingo3GAttributesDescriptor.AttributeBuilder attributes()
          Returns an attribute builder for the nested Lingo3GAttributes component, backed by the same attribute map as the current builder.
 List<Cluster> clusters()
          Output clusters after processing or an empty list.
 Lingo3GClusteringAlgorithmDescriptor.AttributeBuilder clusters(List<Cluster> value)
          Output clusters after processing or an empty list.
 Lingo3GClusteringAlgorithmDescriptor.AttributeBuilder documents(List<Document> value)
          Documents to cluster.
 MultilingualClusteringDescriptor.AttributeBuilder multilingualClustering()
          Returns an attribute builder for the nested MultilingualClustering component, backed by the same attribute map as the current builder.
 Lingo3GClusteringAlgorithmDescriptor.AttributeBuilder query(String value)
          Query that produced the documents.
 
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

Lingo3GClusteringAlgorithmDescriptor.AttributeBuilder

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

Method Detail

query

public Lingo3GClusteringAlgorithmDescriptor.AttributeBuilder query(String value)
Query that produced the documents. The query will help the algorithm to create better clusters. Therefore, providing the query is optional but desirable.

See Also:
Lingo3GClusteringAlgorithm.query

documents

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

See Also:
Lingo3GClusteringAlgorithm.documents

clusters

public Lingo3GClusteringAlgorithmDescriptor.AttributeBuilder clusters(List<Cluster> value)
Output clusters after processing or an empty list.

See Also:
Lingo3GClusteringAlgorithm.clusters

clusters

public List<Cluster> clusters()
Output clusters after processing or an empty list.

See Also:
Lingo3GClusteringAlgorithm.clusters

attributes

public Lingo3GAttributesDescriptor.AttributeBuilder attributes()
Returns an attribute builder for the nested Lingo3GAttributes component, backed by the same attribute map as the current builder.


multilingualClustering

public MultilingualClusteringDescriptor.AttributeBuilder multilingualClustering()
Returns an attribute builder for the nested MultilingualClustering component, backed by the same attribute map as the current builder.



Copyright (c) Dawid Weiss, Stanislaw Osinski