Skip to content
/ nbrreg Public

Re-implementation of the NbrReg model from the paper "Deep Semantic Text Hashing with Weak Supervision"

License

Notifications You must be signed in to change notification settings

yfy-/nbrreg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Suthee Chaidaroon, Travis Ebesu and Yi Fang

SIGIR2018

This folder provides a re-implementation of this paper in PyTorch, developed as part of the course METU CENG 796 - Deep Generative Models. The re-implementation is provided by:

Please see the jupyter notebook file main.ipynb for a summary of paper, the implementation notes and our experimental results. Optional Download raw data (this includes the data and trained models for the dataset provided by the original authors), process and obtain the BM25 weighted document vectors, then train and test the model

# Download data
./download_data.sh

# Create NewsGroups20 data into ng20_test.mat
./prepare_data.py -i 20ng-all-stemmed.txt -o ng20_test.mat

# Train an 32 bit model with early stopping and save the model into ng20_test.pt
./nbrreg.py -b 32 train -i 3 ng20_test.mat ng20_test.pt

# Test the model on test split and output average precision
./nbrreg.py -b 32 ng20_test.pt

About

Re-implementation of the NbrReg model from the paper "Deep Semantic Text Hashing with Weak Supervision"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published