def get_x_y_values(tg, num_words=50):
    """
    Gets a list of most frequently occurring words, with the specific number of occurrences
    :param tg: (TermGenerator) Object with the parsed sentences.
    :param num_words: (int) Number of words to be processed for the top occurring terms.
    :return: (List) List of the top N words in terms of occurrence and the respective occurrence number,
    """

    # get the most frequently occurring words
    top_occurring_words = tg.term_count.most_common(num_words)

    x = [el[0] for el in top_occurring_words]
    y = [el[1] for el in top_occurring_words]

    return x, y