armintabari / Emotional-Embedding

Retraining embedding models to incorporate emotional constraints.
11 stars 3 forks source link

The word embeddings didnt change after running through the code. #1

Open lemy980319 opened 4 years ago

lemy980319 commented 4 years ago

I run the code with gensim pretrained vector text file, but it seem didnt refine the embeddings successfully..

Capture
armintabari commented 4 years ago

The “counter_fitted_vectors.txt” and “counter_fitted_vector_space.txt” should have been generated and saved into results folder. Why do you say they haven't been changed?

On Oct 16, 2019, at 10:29 AM, lemy980319 notifications@github.com wrote:

I run the code with gensim pretrained vector text file, but it seem didnt refine the embeddings successfully.. https://user-images.githubusercontent.com/44187609/66928672-5bdb3800-f064-11e9-9e8c-c05ce888f980.PNG — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/armintabari/Emotional-Embedding/issues/1?email_source=notifications&email_token=AAGCHIYT2HDJXTOK4ZZYNJ3QO4QMZA5CNFSM4JBML7T2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HSFZFYA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGCHIZFLN2EVT264IAH3OLQO4QMZANCNFSM4JBML7TQ.

lemy980319 commented 4 years ago

Ohh, I thought it will rewrite the vectors text file, thanks a lot but may I know how can I load back the “counter_fitted_vectors.txt” and “counter_fitted_vector_space.txt” with the load_word2vec_format function by Word2Vec model, because error occurs when I used the function to load these two files.

Capture
armintabari commented 4 years ago

I have not used gensim to load the vectors so I am not sure, but there is a function for loading vectors in the code. And counter_fitted_vectors.txt is not a complete model. It contains only the vectors that have been changed. The counter_fitted_vector_space.txt file is the one with the complete vector space.

On Oct 21, 2019, at 7:02 AM, lemy980319 notifications@github.com wrote:

Ohh, I thought it will rewrite the vectors text file, thanks a lot but may I know how can I load back the “counter_fitted_vectors.txt” and “counter_fitted_vector_space.txt” with the load_word2vec_format function by Word2Vec model, because error occurs when I used the function to load these two files. https://user-images.githubusercontent.com/44187609/67200046-4f285c80-f435-11e9-9a08-6d26e49fa865.PNG — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/armintabari/Emotional-Embedding/issues/1?email_source=notifications&email_token=AAGCHI2UGXMKHUIICMMNCTDQPWD5ZA5CNFSM4JBML7T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBZ52VI#issuecomment-544464213, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGCHI3YKS27COIXHHHCBV3QPWD5ZANCNFSM4JBML7TQ.