2018-05-23 16:26:39 -04:00
2017-10-29 15:55:36 -04:00
2018-01-03 18:12:57 -05:00
2018-01-24 20:11:26 -05:00
2018-01-03 18:12:57 -05:00
2017-11-04 18:22:40 -04:00
2017-04-18 12:32:43 -04:00
2018-05-23 16:26:39 -04:00
2017-11-25 14:39:39 -05:00

Castor

This is the common repo for PyTorch deep learning models by the Data Systems Group at the University of Waterloo.

Models

Predictions Over One Input Sequence

For sentiment analysis, topic classification, etc.

  • Kim CNN: baseline convolutional neural networks
  • conv-RNN: convolutional RNN

Predictions Over Two Input Sequences

For paraphrase detection, question answering, etc.

  • SM-CNN: Ranking short text pairs with Convolutional Neural Networks
  • MP-CNN: Sentence pair modelling with Multi-Perspective Convolutional Neural Networks
  • NCE: Noise-Contrastive Estimation for answer selection applied on SM-CNN and MP-CNN
  • IDF Baseline: IDF overlap between question and candidate answers

Setting up PyTorch

Copy and run the command at https://pytorch.org/ for your environment. PyTorch recommends the Anaconda environment, which we use in our lab.

The typical installation command is

conda install pytorch torchvision -c pytorch

Data and Pre-Trained Models

Data associated for use with this repository can be found at: https://git.uwaterloo.ca/jimmylin/Castor-data.git.

Pre-trained models can be found at: https://github.com/castorini/models.git.

Your directory structure should look like

.
├── Castor
├── Castor-data
└── models

For example (if you use HTTPS instead of SSH):

git clone https://github.com/castorini/Castor.git
git clone https://git.uwaterloo.ca/jimmylin/Castor-data.git
git clone https://github.com/castorini/models.git

Sourcing and pre-processing of input data for each model is described in the respective model/README.md's.

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%