gensim.matutils.isbow()

gensim.matutils.isbow(vec)[source]

Checks if vector passed is in bag of words representation or not. Vec is considered to be in bag of words format if it is 2-tuple format.