class_docstr: Translate from one (source) language to another (target) language.
  
  Args:
      src_dict (~fairseq.data.Dictionary): dictionary for the source language
      tgt_dict (~fairseq.data.Dictionary): dictionary for the target language
  
  .. note::
  
      The translation task is compatible with :mod:`fairseq-train`,
      :mod:`fairseq-generate` and :mod:`fairseq-interactive`.
class_docstr_tok: ["Translate","from","one","(","source",")","language","to","another","(","target",")","language",".","Args",":","src_dict","(","~fairseq.data.Dictionary",")",":","dictionary","for","the","source","language","tgt_dict","(","~fairseq.data.Dictionary",")",":","dictionary","for","the","target","language","..","note",":",":","The","translation","task","is","compatible","with",":","mod",":","`","fairseq-train","`",",",":","mod",":","`","fairseq-generate","`","and",":","mod",":","`","fairseq-interactive","`","."]
docstr: Return the target :class:`~fairseq.data.Dictionary`.
docstr_tok: ["Return","the","target",":","class",":","`","~fairseq.data.Dictionary","`","."]
code: def target_dictionary(self):
      """Return the target :class:`~fairseq.data.Dictionary`."""
      return self.tgt_dict
  
imports: from dataclasses import dataclass, field
  import itertools
  import json
  import logging
  import os
  from typing import Optional
  from argparse import Namespace
  from omegaconf import II
  import numpy
  from fairseq import utils
  from fairseq.logging import metrics
  from fairseq.data import AppendTokenDataset, ConcatDataset, LanguagePairDataset, PrependTokenDataset, StripTokenDataset, TruncateDataset, data_utils, encoders, indexed_dataset
  from fairseq.data.indexed_dataset import get_available_dataset_impl
  from fairseq.dataclass import ChoiceEnum, FairseqDataclass
  from fairseq.tasks import FairseqTask, register_task
label_desc: Use image node_id 10 for calling the TranslationTask obj's underlying member method code with example usage: obj.target_dictionary() and returns: self