How to run on slurm cluster
- first make sure to set the
HOME
variable in bothsetup_datadir.sh
andtrain_slurm.s
. - to get the data run
./setup_datadir.sh
- to submit a batch job for training run
sbatch train_slurm.s
(you can change the config in this file)
How to use Jupyter Notebook to examine your trained model
- edit
run-jupyterGPU.sbatch
to reflect your path - run
sbatch run-jupyterGPU.sbatch
https://github.com/kelvinguu/neural-editor
Source code accompanying our paper Generating Sentences by Editing Prototypes.
Authors: Kelvin Guu*, Tatsunori B. Hashimoto*, Yonatan Oren, Percy Liang (* equal contribution)
- We are drafting a more detailed README in the README branch (see here for dataset links)
- This is research code meant to serve as a reference implementation. We do not recommend heavily extending or modifying this codebase for other purposes.
If you have questions, please email Kelvin at guu.kelvin
at gmail.com
.