├── .gitignore ├── README.md ├── notebooks ├── translation_eval.ipynb ├── unconditional_eval.ipynb └── word_reorder_eval.ipynb ├── requirements.txt ├── setup.py └── tree_text_gen ├── __init__.py └── binary ├── .gitignore ├── __init__.py ├── bagorder ├── __init__.py ├── args.py ├── evaluate.py ├── metrics.py └── train.py ├── common ├── __init__.py ├── attention.py ├── constants.py ├── data.py ├── encoder.py ├── evaluate.py ├── losses.py ├── model.py ├── oracle.py ├── samplers.py ├── trajectory_sampler.py ├── transformer.py ├── tree.py └── util.py ├── translation ├── __init__.py ├── args.py ├── data.py ├── evaluate.py ├── evaluation │ └── ribes.py ├── metrics.py ├── train.py └── train_transformer.py └── unconditional ├── __init__.py ├── args.py ├── evaluate.py ├── metrics.py └── train.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/README.md -------------------------------------------------------------------------------- /notebooks/translation_eval.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/notebooks/translation_eval.ipynb -------------------------------------------------------------------------------- /notebooks/unconditional_eval.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/notebooks/unconditional_eval.ipynb -------------------------------------------------------------------------------- /notebooks/word_reorder_eval.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/notebooks/word_reorder_eval.ipynb -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/setup.py -------------------------------------------------------------------------------- /tree_text_gen/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tree_text_gen/binary/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/.gitignore -------------------------------------------------------------------------------- /tree_text_gen/binary/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tree_text_gen/binary/bagorder/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tree_text_gen/binary/bagorder/args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/bagorder/args.py -------------------------------------------------------------------------------- /tree_text_gen/binary/bagorder/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/bagorder/evaluate.py -------------------------------------------------------------------------------- /tree_text_gen/binary/bagorder/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/bagorder/metrics.py -------------------------------------------------------------------------------- /tree_text_gen/binary/bagorder/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/bagorder/train.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tree_text_gen/binary/common/attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/attention.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/constants.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/data.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/encoder.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/evaluate.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/losses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/losses.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/model.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/oracle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/oracle.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/samplers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/samplers.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/trajectory_sampler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/trajectory_sampler.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/transformer.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/tree.py -------------------------------------------------------------------------------- /tree_text_gen/binary/common/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/common/util.py -------------------------------------------------------------------------------- /tree_text_gen/binary/translation/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tree_text_gen/binary/translation/args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/translation/args.py -------------------------------------------------------------------------------- /tree_text_gen/binary/translation/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/translation/data.py -------------------------------------------------------------------------------- /tree_text_gen/binary/translation/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/translation/evaluate.py -------------------------------------------------------------------------------- /tree_text_gen/binary/translation/evaluation/ribes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/translation/evaluation/ribes.py -------------------------------------------------------------------------------- /tree_text_gen/binary/translation/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/translation/metrics.py -------------------------------------------------------------------------------- /tree_text_gen/binary/translation/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/translation/train.py -------------------------------------------------------------------------------- /tree_text_gen/binary/translation/train_transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/translation/train_transformer.py -------------------------------------------------------------------------------- /tree_text_gen/binary/unconditional/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tree_text_gen/binary/unconditional/args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/unconditional/args.py -------------------------------------------------------------------------------- /tree_text_gen/binary/unconditional/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/unconditional/evaluate.py -------------------------------------------------------------------------------- /tree_text_gen/binary/unconditional/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/unconditional/metrics.py -------------------------------------------------------------------------------- /tree_text_gen/binary/unconditional/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wellecks/nonmonotonic_text/HEAD/tree_text_gen/binary/unconditional/train.py --------------------------------------------------------------------------------