def get_top_sentences(top_scores, article_size):
    """
        Picks the ordered list of indices of the best sentences to summarize the text
        Arguments:
            `top_scores`   An array containing the top sentences (index and score) for each topic
                           Example: [[(3, 0.5), (4, 0.35), (1, 0.15)], [(6, 0.75), (1, 0.45), (2, 0.3)]]
            `article_size` The number of sentences in the original article
        Returns:
            A list of the indices of the top sentences
    """
    # Algorithm: First choose the best sentence of each topic
    # Then choose the second best sentence of each topic, then the third...
    # Keep going until the desired number of sentences has been reached
    top_sentences = []
    for i in range(article_size):
        for val in top_scores:
            if i >= len(val):
                continue
            elem = val[i][0]
            if isinstance(elem, (list, tuple)):
                elem = elem[0]
            if elem not in top_sentences:
                top_sentences.append(elem)
    return top_sentences