import collections


def build_dicts(reviewText):
    """
    Build dictionaries mapping words to unique integer values.
    """
    counts = collections.Counter(reviewText).most_common()
    dictionary = {}
    for word, _ in counts:
        dictionary[word] = len(dictionary)
    return dictionary