def format_theta(theta_topic_row, limit=10):
        """
        Convert full theta row (topic) into compact form

        The result will be sorted by probability (high to low).
        """
        topics = theta_topic_row;
        topics = [(i, val) for i, val in enumerate(topics)];
        topics = sorted(topics, key=lambda x: x[1], reverse=True);
        topics = topics[:limit];

        return topics;