module mltricks.text_vectorizer_transformer#

Inheritance diagram of papierstat.mltricks.text_vectorizer_transformer

Short summary#

module papierstat.mltricks.text_vectorizer_transformer

Implements TextVectorizerTransformer.

source on GitHub

Classes#

class

truncated documentation

TextVectorizerTransformer

Overwrites TfIdfVectorizer or CountVectorizer so that it can be used in a pipeline. Parameters ———- …

Properties#

property

truncated documentation

_repr_html_

HTML representation of estimator. This is redundant with the logic of _repr_mimebundle_. The latter should …

Methods#

method

truncated documentation

__init__

fit

Trains an estimator on every column.

transform

Applies the vectorizer on X.

Documentation#

Implements TextVectorizerTransformer.

source on GitHub

class papierstat.mltricks.text_vectorizer_transformer.TextVectorizerTransformer(estimator)#

Bases : BaseEstimator, TransformerMixin

Overwrites TfIdfVectorizer or CountVectorizer so that it can be used in a pipeline.

Parameters#

estimator: estimator to fit on every column

estimators_: trained estimators, one per column

source on GitHub

param estimator:

TfIdfVectorizer or CountVectorizer

source on GitHub

__init__(estimator)#
Paramètres:

estimatorTfIdfVectorizer or CountVectorizer

source on GitHub

_sklearn_auto_wrap_output_keys = {'transform'}#
fit(X, y=None)#

Trains an estimator on every column.

source on GitHub

transform(X)#

Applies the vectorizer on X.

source on GitHub