Commit d0577ba7 authored by zhiqiang's avatar zhiqiang Committed by Facebook Github Bot
Browse files

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
parent 287d31e2
...@@ -9,6 +9,9 @@ __pycache__/ ...@@ -9,6 +9,9 @@ __pycache__/
# C extensions # C extensions
*.so *.so
# macOS dir files
.DS_Store
# Distribution / packaging # Distribution / packaging
.Python .Python
env/ env/
......
...@@ -32,7 +32,7 @@ Once extracted, let's preprocess the data using the :ref:`fairseq-preprocess` ...@@ -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 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 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 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: enhance readability:
.. code-block:: console .. code-block:: console
...@@ -40,7 +40,7 @@ enhance readability: ...@@ -40,7 +40,7 @@ enhance readability:
> fairseq-preprocess \ > fairseq-preprocess \
--trainpref names/train --validpref names/valid --testpref names/test \ --trainpref names/train --validpref names/valid --testpref names/test \
--source-lang input --target-lang label \ --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, After running the above command you should see a new directory,
:file:`names-bin/`, containing the dictionaries for *inputs* and *labels*. :file:`names-bin/`, containing the dictionaries for *inputs* and *labels*.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment