def compute_total_unique_words_fraction(sentence_list):
    '\n    Compute fraction os unique words\n    :param sentence_list: a list of sentences, each being a list of words\n    :return: the fraction of unique words in the sentences\n    '
    all_words = [word for word_list in sentence_list for word in word_list]
    unique_words = set(all_words)
    return (len(unique_words) / len(all_words))
Compute fraction os unique words
:param sentence_list: a list of sentences, each being a list of words
:return: the fraction of unique words in the sentences
def compute_total_unique_words_fraction(sentence_list):
    '\n    Compute fraction os unique words\n    :param sentence_list: a list of sentences, each being a list of words\n    :return: the fraction of unique words in the sentences\n    '
    all_words = [word for word_list in sentence_list for word in word_list]
    unique_words = set(all_words)
    return (len(unique_words) / len(all_words))