Skip to content

Commit

Permalink
Fix option in docs (#735)
Browse files Browse the repository at this point in the history
Summary:
`--output-format` -> `--dataset-impl` in Tutorial: Classifying Names with a Character-Level RNN
Pull Request resolved: facebookresearch/fairseq#735

Differential Revision: D15314625

Pulled By: myleott

fbshipit-source-id: 65b8efd1a367ca754e5b9dca088aefbc648864dd
  • Loading branch information
zhiqwang authored and yzpang committed Feb 19, 2021
1 parent 8f4229d commit 7f21d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial_classifying_names.rst
Expand Up @@ -32,15 +32,15 @@ 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
> 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*.
Expand Down

0 comments on commit 7f21d61

Please sign in to comment.