def get_unique_3grams(string):
    """ Return the set of different tri-grams in a string
    """
    # Pure Python implementation: no numpy
    string = '  ' + string + '  '
    return set(zip(string, string[1:], string[2:]))