CS224n icon indicating copy to clipboard operation
CS224n copied to clipboard

求问Assignment3的问题

Open Lei-Ding07 opened this issue 8 years ago • 2 comments

在q2_rnn.py 中的Config里面 n_word_features = 2 # Number of features for every word in the input. 这个feature是什么feature?每个word用两个feature来表示是什么意思。。。想了好久都没有想通。。。

在后面做embedding的时候发现这个feature也不是word——embedding的length。。

Returns: embeddings: tf.Tensor of shape (None, max_length, n_features*embed_size)

谢谢大神。。

Lei-Ding07 avatar Oct 19 '17 01:10 Lei-Ding07

每个单词有两个feature,一个是Word Embedding,一个是Case Embedding,see:https://github.com/hankcs/CS224n/blob/master/assignment3/data_util.py#L45

hankcs avatar Oct 19 '17 01:10 hankcs

但是如何理解这个Case Embedding, 它的作用是什么。。

Lei-Ding07 avatar Oct 19 '17 20:10 Lei-Ding07