Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求问Assignment3的问题 #7

Open
Lei-Ding07 opened this issue Oct 19, 2017 · 2 comments
Open

求问Assignment3的问题 #7

Lei-Ding07 opened this issue Oct 19, 2017 · 2 comments

Comments

@Lei-Ding07
Copy link

在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)

谢谢大神。。

@hankcs
Copy link
Owner

hankcs commented Oct 19, 2017

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

@Lei-Ding07
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants