Skip to content

What's the principle of the sum of embedding vector as feature template score ? #8

Description

@smy69

In hybrid_model.py, you add feature template, if I am right, the implementation is line 116,

scores = feat_sum + tf.matmul(outputs, self.W) + self.b

where feat_sum is defined as:

features = tf.nn.embedding_lookup(self.T, F)
feat_sum = tf.reduce_sum(features, axis=2)
feat_sum = tf.reshape(feat_sum, [-1, self.nb_classes])

It seems that feat_sum is just the sum of the embedding vector, so, what's the principle of this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions