rosequ / Castor

Deep learning for information retrieval with PyTorch

Home Page:http://castor.ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Deep learning for information retrieval with PyTorch

http://castor.ai/


Languages

Language:C 59.5%Language:Python 31.2%Language:Perl 3.6%Language:Jupyter Notebook 1.9%Language:Java 1.8%Language:Makefile 1.1%Language:C++ 0.8%Language:Shell 0.1%