gensim.utils.revdict()

gensim.utils.revdict(d)[source]

Reverse a dictionary mapping.

When two keys map to the same value, only one of them will be kept in the result (which one is kept is arbitrary).