├── .gitignore ├── LICENSE ├── README.md ├── buffer.py ├── copy_results_to_dropbox.py ├── fixed_util.py ├── language_modelling ├── __init__.py ├── baselines │ ├── __init__.py │ ├── model.py │ └── weight_drop.py ├── data.py ├── embed_regularize.py ├── locked_dropout.py ├── ptb_data │ ├── test.txt │ ├── train.txt │ └── valid.txt ├── rev_training │ ├── __init__.py │ ├── model.py │ ├── revlocked_dropout.py │ └── weight_drop.py ├── train.py ├── usual_training │ ├── __init__.py │ ├── model.py │ └── weight_drop.py └── wt2_data │ ├── test.txt │ ├── train.txt │ └── valid.txt ├── nmt ├── clean.py ├── custom_models.py ├── download_iwslt.sh ├── download_multi30k.sh ├── onmt │ ├── Loss.py │ ├── ModelConstructor.py │ ├── Models.py │ ├── Optim.py │ ├── Trainer.py │ ├── Utils.py │ ├── __init__.py │ ├── io │ │ ├── DatasetBase.py │ │ ├── IO.py │ │ ├── TextDataset.py │ │ └── __init__.py │ ├── modules │ │ ├── GlobalAttention.py │ │ ├── MultiSizeAttention.py │ │ ├── UtilClass.py │ │ ├── WeightNorm.py │ │ └── __init__.py │ └── translate │ │ ├── Beam.py │ │ ├── Translation.py │ │ ├── Translator.py │ │ └── __init__.py ├── opts.py ├── preprocess.py ├── revdecoder.py ├── revdecoder_test.py ├── revencoder.py ├── revencoder_test.py ├── testing_util.py ├── tools │ ├── detokenize.perl │ ├── lowercase.perl │ ├── multi-bleu-detok.perl │ ├── multi-bleu.perl │ ├── nonbreaking_prefixes │ │ ├── README.txt │ │ ├── nonbreaking_prefix.ca │ │ ├── nonbreaking_prefix.cs │ │ ├── nonbreaking_prefix.de │ │ ├── nonbreaking_prefix.el │ │ ├── nonbreaking_prefix.en │ │ ├── nonbreaking_prefix.es │ │ ├── nonbreaking_prefix.fi │ │ ├── nonbreaking_prefix.fr │ │ ├── nonbreaking_prefix.ga │ │ ├── nonbreaking_prefix.hu │ │ ├── nonbreaking_prefix.is │ │ ├── nonbreaking_prefix.it │ │ ├── nonbreaking_prefix.lt │ │ ├── nonbreaking_prefix.lv │ │ ├── nonbreaking_prefix.nl │ │ ├── nonbreaking_prefix.pl │ │ ├── nonbreaking_prefix.ro │ │ ├── nonbreaking_prefix.ru │ │ ├── nonbreaking_prefix.sk │ │ ├── nonbreaking_prefix.sl │ │ ├── nonbreaking_prefix.sv │ │ ├── nonbreaking_prefix.ta │ │ ├── nonbreaking_prefix.yue │ │ └── nonbreaking_prefix.zh │ └── tokenizer.perl ├── train.py ├── train_scripts │ ├── train_script_iwslt_revgru.sh │ ├── train_script_iwslt_revlstm.sh │ ├── train_script_multi30k_revgru.sh │ └── train_script_multi30k_revlstm.sh └── translate.py ├── requirements.txt ├── revgru.py ├── revlocked_dropout.py ├── revlstm.py └── revweight_drop.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/README.md -------------------------------------------------------------------------------- /buffer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/buffer.py -------------------------------------------------------------------------------- /copy_results_to_dropbox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/copy_results_to_dropbox.py -------------------------------------------------------------------------------- /fixed_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/fixed_util.py -------------------------------------------------------------------------------- /language_modelling/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /language_modelling/baselines/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /language_modelling/baselines/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/baselines/model.py -------------------------------------------------------------------------------- /language_modelling/baselines/weight_drop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/baselines/weight_drop.py -------------------------------------------------------------------------------- /language_modelling/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/data.py -------------------------------------------------------------------------------- /language_modelling/embed_regularize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/embed_regularize.py -------------------------------------------------------------------------------- /language_modelling/locked_dropout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/locked_dropout.py -------------------------------------------------------------------------------- /language_modelling/ptb_data/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/ptb_data/test.txt -------------------------------------------------------------------------------- /language_modelling/ptb_data/train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/ptb_data/train.txt -------------------------------------------------------------------------------- /language_modelling/ptb_data/valid.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/ptb_data/valid.txt -------------------------------------------------------------------------------- /language_modelling/rev_training/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /language_modelling/rev_training/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/rev_training/model.py -------------------------------------------------------------------------------- /language_modelling/rev_training/revlocked_dropout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/rev_training/revlocked_dropout.py -------------------------------------------------------------------------------- /language_modelling/rev_training/weight_drop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/rev_training/weight_drop.py -------------------------------------------------------------------------------- /language_modelling/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/train.py -------------------------------------------------------------------------------- /language_modelling/usual_training/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /language_modelling/usual_training/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/usual_training/model.py -------------------------------------------------------------------------------- /language_modelling/usual_training/weight_drop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/usual_training/weight_drop.py -------------------------------------------------------------------------------- /language_modelling/wt2_data/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/wt2_data/test.txt -------------------------------------------------------------------------------- /language_modelling/wt2_data/train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/wt2_data/train.txt -------------------------------------------------------------------------------- /language_modelling/wt2_data/valid.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/language_modelling/wt2_data/valid.txt -------------------------------------------------------------------------------- /nmt/clean.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/clean.py -------------------------------------------------------------------------------- /nmt/custom_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/custom_models.py -------------------------------------------------------------------------------- /nmt/download_iwslt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/download_iwslt.sh -------------------------------------------------------------------------------- /nmt/download_multi30k.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/download_multi30k.sh -------------------------------------------------------------------------------- /nmt/onmt/Loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/Loss.py -------------------------------------------------------------------------------- /nmt/onmt/ModelConstructor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/ModelConstructor.py -------------------------------------------------------------------------------- /nmt/onmt/Models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/Models.py -------------------------------------------------------------------------------- /nmt/onmt/Optim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/Optim.py -------------------------------------------------------------------------------- /nmt/onmt/Trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/Trainer.py -------------------------------------------------------------------------------- /nmt/onmt/Utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/Utils.py -------------------------------------------------------------------------------- /nmt/onmt/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/__init__.py -------------------------------------------------------------------------------- /nmt/onmt/io/DatasetBase.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/io/DatasetBase.py -------------------------------------------------------------------------------- /nmt/onmt/io/IO.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/io/IO.py -------------------------------------------------------------------------------- /nmt/onmt/io/TextDataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/io/TextDataset.py -------------------------------------------------------------------------------- /nmt/onmt/io/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/io/__init__.py -------------------------------------------------------------------------------- /nmt/onmt/modules/GlobalAttention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/modules/GlobalAttention.py -------------------------------------------------------------------------------- /nmt/onmt/modules/MultiSizeAttention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/modules/MultiSizeAttention.py -------------------------------------------------------------------------------- /nmt/onmt/modules/UtilClass.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/modules/UtilClass.py -------------------------------------------------------------------------------- /nmt/onmt/modules/WeightNorm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/modules/WeightNorm.py -------------------------------------------------------------------------------- /nmt/onmt/modules/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/modules/__init__.py -------------------------------------------------------------------------------- /nmt/onmt/translate/Beam.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/translate/Beam.py -------------------------------------------------------------------------------- /nmt/onmt/translate/Translation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/translate/Translation.py -------------------------------------------------------------------------------- /nmt/onmt/translate/Translator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/translate/Translator.py -------------------------------------------------------------------------------- /nmt/onmt/translate/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/onmt/translate/__init__.py -------------------------------------------------------------------------------- /nmt/opts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/opts.py -------------------------------------------------------------------------------- /nmt/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/preprocess.py -------------------------------------------------------------------------------- /nmt/revdecoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/revdecoder.py -------------------------------------------------------------------------------- /nmt/revdecoder_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/revdecoder_test.py -------------------------------------------------------------------------------- /nmt/revencoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/revencoder.py -------------------------------------------------------------------------------- /nmt/revencoder_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/revencoder_test.py -------------------------------------------------------------------------------- /nmt/testing_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/testing_util.py -------------------------------------------------------------------------------- /nmt/tools/detokenize.perl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/detokenize.perl -------------------------------------------------------------------------------- /nmt/tools/lowercase.perl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/lowercase.perl -------------------------------------------------------------------------------- /nmt/tools/multi-bleu-detok.perl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/multi-bleu-detok.perl -------------------------------------------------------------------------------- /nmt/tools/multi-bleu.perl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/multi-bleu.perl -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/README.txt -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.ca: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.ca -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.cs -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.de: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.de -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.el: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.el -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.en: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.en -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.es: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.es -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.fi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.fi -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.fr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.fr -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.ga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.ga -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.hu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.hu -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.is: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.is -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.it: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.it -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.lt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.lt -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.lv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.lv -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.nl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.nl -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.pl -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.ro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.ro -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.ru -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.sk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.sk -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.sl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.sl -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.sv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.sv -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.ta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.ta -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.yue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.yue -------------------------------------------------------------------------------- /nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.zh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/nonbreaking_prefixes/nonbreaking_prefix.zh -------------------------------------------------------------------------------- /nmt/tools/tokenizer.perl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/tools/tokenizer.perl -------------------------------------------------------------------------------- /nmt/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/train.py -------------------------------------------------------------------------------- /nmt/train_scripts/train_script_iwslt_revgru.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/train_scripts/train_script_iwslt_revgru.sh -------------------------------------------------------------------------------- /nmt/train_scripts/train_script_iwslt_revlstm.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/train_scripts/train_script_iwslt_revlstm.sh -------------------------------------------------------------------------------- /nmt/train_scripts/train_script_multi30k_revgru.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/train_scripts/train_script_multi30k_revgru.sh -------------------------------------------------------------------------------- /nmt/train_scripts/train_script_multi30k_revlstm.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/train_scripts/train_script_multi30k_revlstm.sh -------------------------------------------------------------------------------- /nmt/translate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/nmt/translate.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | torchtext==0.2.3 2 | ruamel.yaml 3 | ipdb -------------------------------------------------------------------------------- /revgru.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/revgru.py -------------------------------------------------------------------------------- /revlocked_dropout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/revlocked_dropout.py -------------------------------------------------------------------------------- /revlstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/revlstm.py -------------------------------------------------------------------------------- /revweight_drop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewmackay/reversible-rnn/HEAD/revweight_drop.py --------------------------------------------------------------------------------