class documentation
Interface covering basic clustering functionality.
Method | classification |
Classifies the token into a cluster, returning a probability distribution over the cluster identifiers. |
Method | classify |
Classifies the token into a cluster, setting the token's CLUSTER parameter to that cluster identifier. |
Method | cluster |
Assigns the vectors to clusters, learning the clustering parameters from the data. Returns a cluster identifier for each vector. |
Method | cluster |
Returns the names of the cluster at index. |
Method | cluster |
Returns the names of the clusters. :rtype: list |
Method | likelihood |
Returns the likelihood (a float) of the token having the corresponding cluster. |
Method | num |
Returns the number of clusters. |
Classifies the token into a cluster, returning a probability distribution over the cluster identifiers.
overridden in
nltk.cluster.util.VectorSpaceClusterer
Classifies the token into a cluster, setting the token's CLUSTER parameter to that cluster identifier.
overridden in
nltk.cluster.util.VectorSpaceClusterer
Assigns the vectors to clusters, learning the clustering parameters from the data. Returns a cluster identifier for each vector.
overridden in
nltk.cluster.util.VectorSpaceClusterer
Returns the likelihood (a float) of the token having the corresponding cluster.
overridden in
nltk.cluster.em.EMClusterer
, nltk.cluster.gaac.GAAClusterer
, nltk.cluster.kmeans.KMeansClusterer
Returns the number of clusters.