Combining parallel representations of the same text

FeatureUnion feeds the same input to parallel transformers and concatenates their output columns.

FeatureUnion in practice

Product titles can yield both word and character n-grams. The branches can have different widths but must preserve the same rows in the same order.

中文

同一段文字如何同时提取两种特征?

FeatureUnion 将同一输入分别送入多种变换器,再按列拼接输出。

FeatureUnion 应用实例

商品标题可同时提取词级与字符级片段。并排拼接要求各分支保留同一批样本及顺序,列数则可以不同。

References / 参考来源

Keep reading / 继续阅读