mirror of
https://github.com/facebookresearch/fairseq.git
synced 2024-10-26 17:32:57 +03:00
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
This commit is contained in:
parent
287d31e210
commit
d0577ba7a5
3
.gitignore
vendored
3
.gitignore
vendored
@ -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`
|
|||||||
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:
|
|||||||
> 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*.
|
||||||
|
Loading…
Reference in New Issue
Block a user