def ttr(text):
    """
    Number of unique tokens

    :param str text: Input string of text
    :return float floatValue: Ratio of the unique/overall tokens
    """

    if len(text.split(" ")) > 1 and len(text.split()) > 0:
        return len(set(text.split())) / len(text.split())
    else:
        return 0