I'm using sklearn.pipeline.Pipeline to chain feature extractors and a classifier. Is there a way to combine multiple feature selection classes (for example the ones from sklearn.feature_selection.text) in parallel and join their output?
My code right now looks as follows:
pipeline = Pipeline([
It results in the following:
vect -> tfidf -> clf
I want to be able to specify a pipeline that looks as follows:
vect1 -> tfidf1 \
vect2 -> tfidf2 /