armintabari / Emotional-Embedding

Retraining embedding models to incorporate emotional constraints.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Retraining embedding models to incorporate emotional constraints.


Languages

Language:Python 100.0%