nltk.cluster.Dendrogram.groups

Dendrogram.groups(n)[source]

Finds the n-groups of items (leaves) reachable from a cut at depth n. :param n: number of groups :type n: int