def _generate_corpus_table(self, labels, ngrams):
        """Returns an HTML table containing data on each corpus' n-grams."""
        html = []
        for label in labels:
            html.append(self._render_corpus_row(label, ngrams))
        return '\n'.join(html)