Michael Tu 09b3a790a2 Use torchtext for MP-CNN (#76)
* Add SICK torchtext Dataset

* SICK dataset - torchtext postprocess into class probs

* Update model, driver, trainer, evaluator for SICK for torchtext

* MP-CNN: Fix bugs that prevent SICK from running on gpu 0

* MP-CNN: make SICK dataset w/ torchtext GPU-agnostic

* MP-CNN: support sparse features / idf overlap with torchtext

* Add MSRVID dataset with torchtext and update MP-CNN code to use it

* MP-CNN: Make torchtext deterministic by setting python random seed

* SICK and MSRVID datasets - add pair id for debug and build test vocab

* MP-CNN: Update readme to address potential module not found error

* MP-CNN: address review comments, can run on cpu
2017-11-01 12:13:30 -04:00
2017-10-29 15:55:36 -04:00
2017-11-01 12:13:30 -04:00
2017-05-07 22:28:35 -04:00
2017-10-30 22:23:00 -04:00
2017-11-01 12:13:30 -04:00
2017-10-12 22:54:45 -04:00
2017-04-18 12:32:43 -04:00

Castor

PyTorch deep learning models.

  1. 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,

"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.

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 overlap between question and candidate answers.

Tutorials

SM Model tutorial: sm_cnn/tutorial.ipynb - notebook that walks through SM CNN model, good for beginnners.

S
Description
PyTorch deep learning models for text processing
Readme Apache-2.0
1.2 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 93.7%
JavaScript 3.2%
Java 2.2%
HTML 0.5%
Shell 0.4%