gensim.matutils.full2sparse_clipped()

gensim.matutils.full2sparse_clipped(vec, topn, eps=1e-09)[source]

Like full2sparse, but only return the topn elements of the greatest magnitude (abs).