ClusterLinkage linkage = ClusterLinkage.valueOf(props.getProperty(
CLUSTER_LINKAGE_PROPERTY,
DEFAULT_CLUSTER_LINKAGE_PROPERTY));
SimType similarityFunction = SimType.valueOf(props.getProperty(
SIMILARITY_FUNCTION_PROPERTY,
DEFAULT_SIMILARITY_FUNCTION_PROPERTY));
return toAssignments(cluster(m, clusterSimilarityThreshold, linkage,
similarityFunction, numClusters),
m, numClusters);