def _create_bow(self, sequence_features: List[Union[(tf.Tensor, tf.SparseTensor)]], sentence_features: List[Union[(tf.Tensor, tf.SparseTensor)]], sequence_feature_lengths: tf.Tensor, name: Text) -> tf.Tensor:
    (x, _) = self._tf_layers[f'feature_combining_layer.{name}']((sequence_features, sentence_features, sequence_feature_lengths), training=self._training)
    x = tf.reduce_sum(x, axis=1)
    return self._tf_layers[f'ffnn.{name}'](x, self._training)
def _create_bow(self, sequence_features: List[Union[(tf.Tensor, tf.SparseTensor)]], sentence_features: List[Union[(tf.Tensor, tf.SparseTensor)]], sequence_feature_lengths: tf.Tensor, name: Text) -> tf.Tensor:
    (x, _) = self._tf_layers[f'feature_combining_layer.{name}']((sequence_features, sentence_features, sequence_feature_lengths), training=self._training)
    x = tf.reduce_sum(x, axis=1)
    return self._tf_layers[f'ffnn.{name}'](x, self._training)