code: def _apply_pipeline_and_get_build_instance(self,
  	                                           X_factory,
  	                                           mX_factory,
  	                                           category_idx_store,
  	                                           df,
  	                                           parse_pipeline,
  	                                           term_idx_store,
  	                                           metadata_idx_store,
  	                                           y):
  		'''
  		Parameters
  		----------
  		X_factory
  		mX_factory
  		category_idx_store
  		df
  		parse_pipeline
  		term_idx_store
  		metadata_idx_store
  		y
  
  		Returns
  		-------
  		CorpusDF
  		'''
  		df.apply(parse_pipeline.parse, axis=1)
  		y = np.array(y)
  		X, mX = build_sparse_matrices(y, X_factory, mX_factory)
  		return CorpusDF(df,
  		                X,
  		                mX,
  		                y,
  		                self._text_col,
  		                term_idx_store,
  		                category_idx_store,
  		                metadata_idx_storef _apply_pipeline_and_get_build_instance(self,
  	                                           X_factory,
  	                                           mX_factory,
  	                                           category_idx_store,
  	                                           df,
  	                                           parse_pipeline,
  	                                           term_idx_store,
  	                                           metadata_idx_store,
  	                                           y):
  		'''
  		Parameters
  		----------
  		X_factory
  		mX_factory
  		category_idx_store
  		df
  		parse_pipeline
  		term_idx_store
  		metadata_idx_store
  		y
  
  		Returns
  		-------
  		CorpusDF
  		'''
  		df.apply(parse_pipeline.parse, axis=1)
  		y = np.array(y)
  		X, mX = build_sparse_matrices(y, X_factory, mX_factory)
  		return CorpusDF(df,
  		                X,
  		                mX,
  		                y,
  		                self._text_col,
  		                term_idx_store,
  		                category_idx_store,
  		                metadata_idx_store)
docs: Parameters
  		----------
  		X_factory
  		mX_factory
  		category_idx_store
  		df
  		parse_pipeline
  		term_idx_store
  		metadata_idx_store
  		y
  
  		Returns
  		-------
  		CorpusDF