.. _f-sklearntext: module ``mlmodel.sklearn_text`` =============================== .. inheritance-diagram:: mlinsights.mlmodel.sklearn_text Short summary +++++++++++++ module ``mlinsights.mlmodel.sklearn_text`` Overloads :epkg:`TfidfVectorizer` and :epkg:`CountVectorizer`. :githublink:`%|py|5` Classes +++++++ +----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +==============================================================================================+==================================================================================================================================================================================+ | :class:`NGramsMixin ` | Overloads method `_word_ngrams `_ ... | +----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`TraceableCountVectorizer ` | Inherits from :class:`NGramsMixin` which overloads method `_word_ngrams `_ ... | +----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :class:`TraceableTfidfVectorizer ` | Inherits from :class:`NGramsMixin` which overloads method `_word_ngrams `_ ... | +----------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Properties ++++++++++ +-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | property | truncated documentation | +===============================================================================================+==================================================================================================================+ | :py:meth:`_repr_html_ ` | HTML representation of estimator. This is redundant with the logic of `_repr_mimebundle_`. The latter should ... | +-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_repr_html_ ` | HTML representation of estimator. This is redundant with the logic of `_repr_mimebundle_`. The latter should ... | +-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | :meth:`idf_ ` | Inverse document frequency vector, only defined if `use_idf=True`. Returns ------- ndarray of shape ... | +-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ Methods +++++++ +-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | method | truncated documentation | +=================================================================================================+===================================================================+ | :py:meth:`_word_ngrams ` | Turn tokens into a sequence of n-grams after stop words filtering | +-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`_word_ngrams ` | | +-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | :py:meth:`_word_ngrams ` | | +-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlinsights.mlmodel.sklearn_text :members: :special-members: __init__ :show-inheritance: