PyTorch deep learning models.
- SM model: Similarity between question and candidate answers.
You need Python 3.6 to use the models in this repository.
As per pytorch.org,
"Anaconda is our recommended package manager"
conda install pytorch torchvision -c soumith
Other pytorch installation modalities (e.g. via pip
) can be seen at pytorch.org.
We also recommend gensim. We use some gensim modules to cache word embeddings.
conda install gensim
PyTorch has good support for GPU computations. CUDA installation guide for linux can be found here
NOTE: Install CUDA libraries before installing conda and pytorch.
Sourcing and pre-processing of input data for each model is described in respective model/README.md
's
- IDF Baseline: IDF overlap between question and candidate answers.
SM Model tutorial: sm_cnn/tutorial.ipynb - notebook that walks through SM CNN model, good for beginnners.