Interpolating Metaphors with Variational Autoencoders
- Python 3.6
- Pytorch 0.4.1
- Fastai 0.7
- Create a conda environment:
conda env create -n metaphors python=3.6
- Install dependencies
pip install fastai==0.7.0 torchtext==0.2.3 opencv-python spacy sudo apt update && sudo apt install -y libsm6 libxext6
- Install Spacy
en
model:python -m spacy download en
- Install Pytorch
0.4.1
(default version of pytorch with fastai 0.7.0 is 0.3.0):pip install torch==0.4.1
The data was originally scraped from http://metaphors.iath.virginia.edu/metaphors and is licensed under CC BY-NC-SA 4.0