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)[source]

Bases : sklearn.base.BaseEstimator, sklearn.base.TransformerMixin

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

estimator: estimator to fit on every column

estimators_: trained estimators, one per column

source on GitHub

Paramètres

estimatorTfIdfVectorizer or CountVectorizer

source on GitHub

__init__(estimator)[source]
Paramètres

estimatorTfIdfVectorizer or CountVectorizer

source on GitHub

fit(X, y=None)[source]

Trains an estimator on every column.

source on GitHub

transform(X)[source]

Applies the vectorizer on X.

source on GitHub