def copy_terms_to_metadata(self):
        '''
        Returns a TermDocMatrix which is identical to self except the metadata values are now identical to the
        term document matrix.

        :return: TermDocMatrix
        '''
        return self._make_new_term_doc_matrix(
            new_mX=copy(self._X),
            new_metadata_idx_store=copy(self._term_idx_store),
            new_y_mask=self._y == self._y
        )

        Returns a TermDocMatrix which is identical to self except the metadata values are now identical to the
        term document matrix.

        :return: TermDocMatrix
        
scattertext/TermDocMatrix.py