Add method inv_dicts, turns rating dict into word dict where words are keys and ratings are values