(self)
return self.id_to_term_
Mapping of unique term id (int) to unique term string (str), i.e.
        the inverse of :attr:`Vectorizer.vocabulary`. This attribute is only
        generated if needed, and it is automatically kept in sync with the
        corresponding vocabulary.
Mapping of unique term id (int) to unique term string (str), i.e.
        the inverse of :attr:`Vectorizer.vocabulary`. This attribute is only
        generated if needed, and it is automatically kept in sync with the
        corresponding vocabulary.
Mapping of unique term id ( int ) to unique term string ( str ) i . e . the inverse of : attr : Vectorizer . vocabulary . This attribute is only generated if needed and it is automatically kept in sync with the corresponding vocabulary .
def id_to_term(self) -> Dict[int, str]:
        """
        Mapping of unique term id (int) to unique term string (str), i.e.
        the inverse of :attr:`Vectorizer.vocabulary`. This attribute is only
        generated if needed, and it is automatically kept in sync with the
        corresponding vocabulary.
        """
        if len(self.id_to_term_) != self.vocabulary_terms:
            self.id_to_term_ = {
                term_id: term_str for term_str, term_id in self.vocabulary_terms.items()
            }
        return self.id_to_term_
def id_to_term ( self ) -> Dict [ int , str ] : if len ( self . id_to_term_ ) != self . vocabulary_terms : self . id_to_term_ = { term_id : term_str for term_str , term_id in self . vocabulary_terms . items ( ) } return self . id_to_term_