def convert_raw_rating(x):
    """
    8 is positive, 5 is neutral, and 2 is negative.
    Converts to a -1, 0, 1 scale.
    """
    if x == '8':
        return 1
    elif x == '5':
        return 0
    elif x == '2':
        return -1