sentence1: the distances are then used to construct an affinity matrix which is partitioned using standard spectral clustering techniques .
sentence2: the segmentation of the data is then obtained by applying spectralclustering to the similarity matrix .