All Projects → seanie12 → neural-question-generation

seanie12 / neural-question-generation

Licence: MIT License
Pytorch implementation of Paragraph-level Neural Question Generation with Maxout Pointer and Gated Self-attention Networks

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to neural-question-generation

ConvLSTM-PyTorch
ConvLSTM/ConvGRU (Encoder-Decoder) with PyTorch on Moving-MNIST
Stars: ✭ 202 (+60.32%)
Mutual labels:  pytorch-implementation
MelNet-SpeechGeneration
Implementation of MelNet in PyTorch to generate high-fidelity audio samples
Stars: ✭ 19 (-84.92%)
Mutual labels:  pytorch-implementation
lowshot-shapebias
Learning low-shot object classification with explicit shape bias learned from point clouds
Stars: ✭ 37 (-70.63%)
Mutual labels:  pytorch-implementation
nlp classification
Implementing nlp papers relevant to classification with PyTorch, gluonnlp
Stars: ✭ 224 (+77.78%)
Mutual labels:  pytorch-implementation
photometric optimization
Photometric optimization code for creating the FLAME texture space and other applications
Stars: ✭ 271 (+115.08%)
Mutual labels:  pytorch-implementation
torch-metrics
Metrics for model evaluation in pytorch
Stars: ✭ 99 (-21.43%)
Mutual labels:  pytorch-implementation
OpenNMT-kpg-release
Keyphrase Generation
Stars: ✭ 162 (+28.57%)
Mutual labels:  pytorch-implementation
subjectiveqe-esrgan
PyTorch implementation of ESRGAN (ECCVW 2018) for compressed image subjective quality enhancement.
Stars: ✭ 12 (-90.48%)
Mutual labels:  pytorch-implementation
differentiable-morphogenesis
experimenting with differentiable models of morphogenesis 🔬 🦠
Stars: ✭ 38 (-69.84%)
Mutual labels:  pytorch-implementation
FedLab-benchmarks
Standard federated learning implementations in FedLab and FL benchmarks.
Stars: ✭ 49 (-61.11%)
Mutual labels:  pytorch-implementation
SelfOrganizingMap-SOM
Pytorch implementation of Self-Organizing Map(SOM). Use MNIST dataset as a demo.
Stars: ✭ 33 (-73.81%)
Mutual labels:  pytorch-implementation
Relation-Network-PyTorch
Implementation of Relation Network and Recurrent Relational Network using PyTorch v1.3. Original papers: (RN) https://arxiv.org/abs/1706.01427 (RRN): https://arxiv.org/abs/1711.08028
Stars: ✭ 17 (-86.51%)
Mutual labels:  pytorch-implementation
simclr-pytorch
PyTorch implementation of SimCLR: supports multi-GPU training and closely reproduces results
Stars: ✭ 89 (-29.37%)
Mutual labels:  pytorch-implementation
ElasticFace
Official repository for ElasticFace: Elastic Margin Loss for Deep Face Recognition
Stars: ✭ 86 (-31.75%)
Mutual labels:  pytorch-implementation
abae-pytorch
PyTorch implementation of 'An Unsupervised Neural Attention Model for Aspect Extraction' by He et al. ACL2017'
Stars: ✭ 52 (-58.73%)
Mutual labels:  pytorch-implementation
DAF3D
Deep Attentive Features for Prostate Segmentation in 3D Transrectal Ultrasound
Stars: ✭ 60 (-52.38%)
Mutual labels:  pytorch-implementation
attention-sampling-pytorch
This is a PyTorch implementation of the paper: "Processing Megapixel Images with Deep Attention-Sampling Models".
Stars: ✭ 25 (-80.16%)
Mutual labels:  pytorch-implementation
pytorch-serving
[UNMAINTAINED] A starter pack for creating a lightweight responsive web app for Fast.AI PyTorch models.
Stars: ✭ 16 (-87.3%)
Mutual labels:  pytorch-implementation
Restoring-Extremely-Dark-Images-In-Real-Time
The project is the official implementation of our CVPR 2021 paper, "Restoring Extremely Dark Images in Real Time"
Stars: ✭ 79 (-37.3%)
Mutual labels:  pytorch-implementation
NoisyStudent
"Self-training with Noisy Student improves ImageNet classification" pytorch implementation
Stars: ✭ 31 (-75.4%)
Mutual labels:  pytorch-implementation

Neural Question Generation

This is not official implementation for the paper Paragraph-level Neural Question Generation with Maxout Pointer and Gated Self-attention Networks. I implemented in Pytorch to reproduce similar result as the paper. You can find the checkpoint of pretrained model here.

Dependencies

This code is written in Python. Dependencies include

Download data and Preprocess

mkdir squad
wget http://nlp.stanford.edu/data/glove.840B.300d.zip -O ./data/glove.840B.300d.zip 
unzip ./data/glove.840B.300d.zip 
wget https://rajpurkar.github.io/SQuAD-explorer/dataset/train-v1.1.json -O ./squad/train-v1.1.json
wget https://rajpurkar.github.io/SQuAD-explorer/dataset/dev-v1.1.json -O ./squad/dev-v1.1.json
cd data
python process_data.py

Configuration

You might need to change configuration in config.py.
If you want to train, change train = True and set the gpu device in config.py

Evaluation from this repository

cd qgevalcap
python2 eval.py --out_file prediction_file --src_file src_file --tgt_file target_file

Results

BLEU_1 BLEU_2 BLEU_3 BLEU_4
45.22 29.94 22.01 16.76
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].