am3 icon indicating copy to clipboard operation
am3 copied to clipboard

About the word2vector

Open kikyou123 opened this issue 6 years ago • 4 comments

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

kikyou123 avatar Aug 15 '19 04:08 kikyou123

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

vmichals avatar Aug 28 '19 16:08 vmichals

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‘.

Surflyan avatar May 19 '20 12:05 Surflyan

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.

zhangyikaii avatar Dec 20 '20 01:12 zhangyikaii

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!

spectralpublic avatar Dec 29 '20 08:12 spectralpublic