Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/c/l/cluster-explorer-HEAD/analysis/corpus.py   cluster-explorer(Download)
    import numpy
 
from utils import profile, wirth_n_largest
import bsims
 
        for i in xrange(len(clusters)):
            scores = cluster_counts[i] / (float(len(clusters[i][1]['members'])) + total_counts - cluster_counts[i])
            phrase_idxs = wirth_n_largest(scores, limit)
            top_phrases.append([phrases[idx] for idx in phrase_idxs])