fairseq/tests
Davide Caroselli bbb4120b00 Support custom Dictionary implementations in 'preprocess.py' (#448)
Summary:
The `preprocess.py` script has been refactored in order to:

1. Use the `options` module for command line arguments  parsing. This will give to `preprocess.py` the ability to load custom modules with `--user-dir` flag (already implemented to all other binaries)
2. Dictionary loading and building code has moved to Task implementation. This allows custom Dictionary classes to be used during the data generation step.
Pull Request resolved: https://github.com/pytorch/fairseq/pull/448

Differential Revision: D13674819

Pulled By: myleott

fbshipit-source-id: b40648a98ed6c08284577e5ec25876e018d8c822
2019-02-01 09:45:59 -08:00
..
__init__.py fairseq-py goes distributed (#106) 2018-02-27 17:09:42 -05:00
test_average_checkpoints.py Merge internal changes (#136) 2018-04-02 10:13:07 -04:00
test_backtranslation_dataset.py Refactor BacktranslationDataset to be more reusable (#354) 2018-11-25 21:26:03 -08:00
test_binaries.py Support custom Dictionary implementations in 'preprocess.py' (#448) 2019-02-01 09:45:59 -08:00
test_character_token_embedder.py fix tests 2018-09-03 19:15:23 -04:00
test_convtbc.py Remove more Variable() calls (#198) 2018-06-25 12:23:04 -04:00
test_dictionary.py Remove more Variable() calls (#198) 2018-06-25 12:23:04 -04:00
test_iterators.py Further generalize EpochBatchIterator and move iterators into new file 2018-09-03 19:15:23 -04:00
test_label_smoothing.py Add FairseqTask 2018-06-15 13:05:22 -06:00
test_noising.py Refactor BacktranslationDataset to be more reusable (#354) 2018-11-25 21:26:03 -08:00
test_reproducibility.py Merge internal changes (#283) 2019-01-04 20:03:19 -08:00
test_sequence_generator.py Online backtranslation module 2018-09-25 17:36:43 -04:00
test_sequence_scorer.py Add FairseqTask 2018-06-15 13:05:22 -06:00
test_token_block_dataset.py Merge internal changes (#483) 2019-01-30 09:01:10 -08:00
test_train.py Add code for "Pay Less Attention with Lightweight and Dynamic Convolutions" (#473) 2019-01-25 15:40:26 -08:00
test_utils.py Remove more Variable() calls (#198) 2018-06-25 12:23:04 -04:00
utils.py Fix tests + style nits + Python 3.5 compat 2018-11-01 01:28:30 -07:00