Let's say I have a nested dictionary that looks like:
{ 'word1':
{'VERB': 129}
{'NOUN': 151}
{'DET': 26426}
...
}
I want to get DET
from the nested dict since it has the highest frequency.
I tried to do it by iterating the dict[word1]
but it seemed every inefficient. Is there an easy/simple way to do this?