armintabari / Emotional-Embedding

Retraining embedding models to incorporate emotional constraints.
11 stars 3 forks source link
embedding embeddings emotion emotional-embedding word-embedding word-embeddings word-vectors

Emotional Embedding

This is the code used in the paper: "Emotional Embeddings: Refining Word Embeddings to Capture Emotional Content of Words" designed to incorporate emotional constraint into pre-trained word embeddings.

How to run

After downloading/cloning the code, put the pre-trained vectors file in "./vectors/" and run the embedding.py. it requires numpy to be installed.

$python embedding.py

Citation:

Seyeditabari, A., Tabari, N., Gholizadeh, S., & Zadrozny, W. (2019). Emotional Embeddings: Refining Word Embeddings to Capture Emotional Content of Words. arXiv preprint arXiv:1906.00112.