I am working in Python with a dictionary in this form:
{1:[(word1, word2), (word3, word4)], 2:[(word5, word6), (word7, word8), (word9, word10)], 3:[(word11,