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

Does word embedding use pre-trained word embedding or not? #76

Open
SinDongHwan opened this issue Jul 20, 2018 · 0 comments
Open

Does word embedding use pre-trained word embedding or not? #76

SinDongHwan opened this issue Jul 20, 2018 · 0 comments

Comments

@SinDongHwan
Copy link

i want to know that use pre-trained word embedding or not.

i found this,

    def _word_embedding(self, inputs, reuse=False):
        with tf.variable_scope('word_embedding', reuse=reuse):
            w = tf.get_variable('w', [self.V, self.M], initializer=self.emb_initializer)
            x = tf.nn.embedding_lookup(w, inputs, name='word_vector')  # (N, T, M) or (N, M)
            return x

tf.nn.embedding_lookup uses pre-trained word embedding??
if use, how to be loaded pre-trained word embedding?
if not, train word 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

1 participant