NlpTools API
Class

NlpTools\Clustering\Clusterer

abstract class Clusterer

Methods

array cluster(TrainingSet $documents, FeatureFactoryInterface $ff)

Group the documents together

Details

at line 17
abstract public array cluster(TrainingSet $documents, FeatureFactoryInterface $ff)

Group the documents together

Parameters

TrainingSet $documents The documents to be clustered
FeatureFactoryInterface $ff A feature factory to transform the documents given

Return Value

array The clusters, an array containing arrays of offsets for the documents