How to map the word embedding in ULMFIT to the words in the vocabulary

I want to map the word embedding to the respective words. The idea is to create a dictionary which can map words to the indices of the vectors.

I can derive the vectors using list(encoder.children())[0].encoder.weight but I am not sure how I can map these vectors back to the databunch’s vocab. Is there any existing utility function ?