mirror of
https://github.com/facebookresearch/fairseq.git
synced 2024-09-11 17:25:31 +03:00
Summary: - fairseq can now be installed via pip: `pip install fairseq` - command-line tools are globally accessible: `fairseq-preprocess`, `fairseq-train`, `fairseq-generate`, etc. Pull Request resolved: https://github.com/pytorch/fairseq/pull/495 Differential Revision: D14017761 Pulled By: myleott fbshipit-source-id: 10c9f6634a3056074eac2f33324b4f1f404d4235
57 lines
1.1 KiB
ReStructuredText
57 lines
1.1 KiB
ReStructuredText
.. role:: hidden
|
|
:class: hidden-section
|
|
|
|
.. module:: fairseq.data
|
|
|
|
Data Loading and Utilities
|
|
==========================
|
|
|
|
.. _datasets:
|
|
|
|
Datasets
|
|
--------
|
|
|
|
**Datasets** define the data format and provide helpers for creating
|
|
mini-batches.
|
|
|
|
.. autoclass:: fairseq.data.FairseqDataset
|
|
:members:
|
|
.. autoclass:: fairseq.data.LanguagePairDataset
|
|
:members:
|
|
.. autoclass:: fairseq.data.MonolingualDataset
|
|
:members:
|
|
|
|
**Helper Datasets**
|
|
|
|
These datasets wrap other :class:`fairseq.data.FairseqDataset` instances and
|
|
provide additional functionality:
|
|
|
|
.. autoclass:: fairseq.data.BacktranslationDataset
|
|
:members:
|
|
.. autoclass:: fairseq.data.ConcatDataset
|
|
:members:
|
|
.. autoclass:: fairseq.data.RoundRobinZipDatasets
|
|
:members:
|
|
.. autoclass:: fairseq.data.TransformEosDataset
|
|
:members:
|
|
|
|
|
|
Dictionary
|
|
----------
|
|
|
|
.. autoclass:: fairseq.data.Dictionary
|
|
:members:
|
|
|
|
|
|
Iterators
|
|
---------
|
|
|
|
.. autoclass:: fairseq.data.CountingIterator
|
|
:members:
|
|
.. autoclass:: fairseq.data.EpochBatchIterator
|
|
:members:
|
|
.. autoclass:: fairseq.data.GroupedIterator
|
|
:members:
|
|
.. autoclass:: fairseq.data.ShardedIterator
|
|
:members:
|