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

About the word2vector #1

Open
kikyou123 opened this issue Aug 15, 2019 · 4 comments
Open

About the word2vector #1

kikyou123 opened this issue Aug 15, 2019 · 4 comments

Comments

@kikyou123
Copy link

Can you tell me how you get the semantic embedding vector for the class label?

@vmichals
Copy link

The relevant code should be here.

The embedding matrix is loaded from the npz file and then the label embeddings are retrieved using tf.nn.embedding_lookup()

@Surflyan
Copy link

hi, where can I find the embedding matrix (.npz) file, and I what to know if you trained the w2v mdoel by yourself? If not , how do you solve the 'two words' noun,like ‘Tobacco shop‘.

@zhangyikaii
Copy link

Hi, @vmichals The .npz file you mentioned will be created here.
BUT I don't know what is the embedding file path here, so the problem is still unresolved.

@spectralpublic
Copy link

Hi, @zhangyikaii
I have the same question as you, what is the embedding file path
--emb_addr', type=str, default=os.path.join(os.sep, 'mnt', 'datasets', 'public', 'mini-imagenet', 'raw-data'),

A file like 'mini_imagenet_class_label_dict3.txt' should exist.
Have you solved it? Thank You!

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

5 participants