Files
Castor/README.md
T
rosequ b893f2a1b1 Idf baseline for QA datasets (#14)
Added a functionality to generate idf scores for TrecQA and WikiQA datasets.
2017-04-12 17:24:29 -04:00

37 lines
1.1 KiB
Markdown

# Castor
Pytorch deep learning models.
1. [SM model](./sm_model/): Similarity between question and candidate answers.
## Setting up Pytorch
You need Python 3.6 to use the models in this repository.
As per [pytorch.org](pytorch.org),
> "[Anaconda](https://www.continuum.io/downloads) 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](pytorch.org).
We also recommend [gensim](https://radimrehurek.com/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](http://docs.nvidia.com/cuda/cuda-installation-guide-linux/)
**NOTE**: Install CUDA libraries **before** installing conda and pytorch.
## data for models
Sourcing and pre-processing of input data for each model is described in respective ```model/README.md```'s
## Baselines
1. [IDF Baseline](./idf_baseline/): IDF overlap between question and candidate answers.