def transform(self, dataframe):
    features = []
    for (col1, col2) in self.get_column_pairs():
        try:
            sentence = self.create_word_list(dataframe, col1, col2)
            sentence = self.vectorizer.fit_transform(sentence)
            feature = self.transformer.fit_transform(sentence)
            feature = self.get_feature(dataframe, col1, col2, feature, name=self.name)
            features.append(feature)
        except:
            pass
    features = pd.concat(features, axis=1)
    return features
def transform(self, dataframe):
    features = []
    for (col1, col2) in self.get_column_pairs():
        try:
            sentence = self.create_word_list(dataframe, col1, col2)
            sentence = self.vectorizer.fit_transform(sentence)
            feature = self.transformer.fit_transform(sentence)
            feature = self.get_feature(dataframe, col1, col2, feature, name=self.name)
            features.append(feature)
        except:
            pass
    features = pd.concat(features, axis=1)
    return features