| 10 | |
| 11 | |
| 12 | def get_parser(): |
| 13 | parser = argparse.ArgumentParser( |
| 14 | description="writes text from binarized file to stdout" |
| 15 | ) |
| 16 | # fmt: off |
| 17 | parser.add_argument('--dataset-impl', help='dataset implementation', |
| 18 | choices=indexed_dataset.get_available_dataset_impl()) |
| 19 | parser.add_argument('--dict', metavar='FP', help='dictionary containing known words', default=None) |
| 20 | parser.add_argument('--input', metavar='FP', required=True, help='binarized file to read') |
| 21 | # fmt: on |
| 22 | |
| 23 | return parser |
| 24 | |
| 25 | |
| 26 | def main(): |