From 7f21d6138f6d3ac65d81120fecbf1500c6d6df20 Mon Sep 17 00:00:00 2001 From: zhiqiang Date: Sun, 12 May 2019 16:35:11 -0700 Subject: [PATCH] Fix option in docs (#735) Summary: `--output-format` -> `--dataset-impl` in Tutorial: Classifying Names with a Character-Level RNN Pull Request resolved: https://github.com/pytorch/fairseq/pull/735 Differential Revision: D15314625 Pulled By: myleott fbshipit-source-id: 65b8efd1a367ca754e5b9dca088aefbc648864dd --- docs/tutorial_classifying_names.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial_classifying_names.rst b/docs/tutorial_classifying_names.rst index eb974133..c20bf487 100644 --- a/docs/tutorial_classifying_names.rst +++ b/docs/tutorial_classifying_names.rst @@ -32,7 +32,7 @@ Once extracted, let's preprocess the data using the :ref:`fairseq-preprocess` command-line tool to create the dictionaries. While this tool is primarily intended for sequence-to-sequence problems, we're able to reuse it here by treating the label as a "target" sequence of length 1. We'll also output the -preprocessed files in "raw" format using the ``--output-format`` option to +preprocessed files in "raw" format using the ``--dataset-impl`` option to enhance readability: .. code-block:: console @@ -40,7 +40,7 @@ enhance readability: > fairseq-preprocess \ --trainpref names/train --validpref names/valid --testpref names/test \ --source-lang input --target-lang label \ - --destdir names-bin --output-format raw + --destdir names-bin --dataset-impl raw After running the above command you should see a new directory, :file:`names-bin/`, containing the dictionaries for *inputs* and *labels*.