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 ———- …

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.

Paramètres
  • 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