class_docstr: Translation evaluator.
  This translation generation evaluator can currently be loaded from [`evaluator`] using the default task name
  `translation`.
  Methods in this class assume a data format compatible with the [`~transformers.TranslationPipeline`].
class_docstr_tok: ["Translation","evaluator",".","This","translation","generation","evaluator","can","currently","be","loaded","from","[","`","evaluator","`","]","using","the","default","task","name","`","translation","`",".","Methods","in","this","class","assume","a","data","format","compatible","with","the","[","`","~transformers.TranslationPipeline","`","]","."]
code: def __init__(self, task="translation", default_metric_name=None):
      super().__init__(task, default_metric_name=default_metric_name)
  
file_path: evaluate/src/evaluate/evaluator/text2text_generation.py
imports: from typing import TYPE_CHECKING, Any, Callable, Dict, Optional, Tuple, Union
  from datasets import Dataset
  from typing_extensions import Literal
  from ..module import EvaluationModule
  from ..utils.file_utils import add_start_docstrings
  from .base import EVALUATOR_COMPUTE_RETURN_DOCSTRING, EVALUTOR_COMPUTE_START_DOCSTRING, Evaluator
label_desc: Use image node_id 1 to create a new TranslationEvaluator object from inherited base classes: Text2TextGenerationEvaluator with example: obj = TranslationEvaluator(task, default_metric_name)