public class SavingAttributeValuesToXml
{
public static void main(String [] args) throws Exception
{
// The label passed to the constructor does not affect the webapp
final AttributeValueSet attributeValueSet = new AttributeValueSet("Example set");
// Add all the attributes you want to change to a non-default value.
// You can use attribute keys from Workbench Attribute Info view or the manuals.
Map<String, Object> attributes = new HashMap<String, Object>();
LingoClusteringAlgorithmDescriptor
.attributeBuilder(attributes)
.desiredClusterCountBase(20)
.matrixReducer()
.factorizationQuality(FactorizationQuality.MEDIUM)
.factorizationFactory(LocalNonnegativeMatrixFactorizationFactory.class);
CompletePreprocessingPipelineDescriptor.attributeBuilder(attributes)
.documentAssigner()
.exactPhraseAssignment(true);
TermDocumentMatrixBuilderDescriptor
.attributeBuilder(attributes)
.titleWordsBoost(2.5);
attributeValueSet.setAttributeValues(attributes);
// We'll need to wrap the exported attribute values in a AttributeValueSets,
// even if we want to export just one set.
final AttributeValueSets attributeValueSets = new AttributeValueSets();
attributeValueSets.addAttributeValueSet("example-id", attributeValueSet);