class_docstr: Translation (Sequence Generation) task for Levenshtein Transformer
  See `"Levenshtein Transformer" <https://arxiv.org/abs/1905.11006>`_.
class_docstr_tok: ["Translation","(","Sequence","Generation",")","task","for","Levenshtein","Transformer","See","`","``","Levenshtein","Transformer","''","<","https",":","\/\/arxiv.org\/abs\/1905.11006",">","`","_","."]
code: def __init__(
      self,
      args,
      src_dict,
      tgt_dict,
      char_source_dict=None,
      char_target_dict=None,
  ):
      super().__init__(
          args, src_dict, tgt_dict, char_source_dict, char_target_dict
      )
      self.src_dict = src_dict
      self.tgt_dict = tgt_dict
      self.char_source_dict = char_source_dict
      self.char_target_dict = char_target_dict
      self.trans_lev_task = TranslationLevenshteinTask(
          args, src_dict, tgt_dict
      )
  
file_path: translate/pytorch_translate/tasks/translation_lev_task.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from fairseq import options
  from fairseq.tasks import register_task
  from fairseq.tasks.translation_lev import TranslationLevenshteinTask
  from pytorch_translate.data import dictionary
  from pytorch_translate.tasks.pytorch_translate_task import PytorchTranslateTask
label_desc: Use image node_id 1 to create a new PytorchTranslationLevenshteinTask object from inherited base classes: PytorchTranslateTask with example: obj = PytorchTranslationLevenshteinTask(args, src_dict, tgt_dict, char_source_dict, char_target_dict)