class_docstr: BuilderConfig for FLoRes.
class_docstr_tok: ["BuilderConfig","for","FLoRes","."]
docstr: BuilderConfig for FLoRes.
  
  Args:
    language_pair: pair of languages that will be used for translation. Should
      contain 2-letter coded strings. First will be used at source and second
      as target in supervised mode. For example: ("se", "en").
    **kwargs: keyword arguments forwarded to super.
docstr_tok: ["BuilderConfig","for","FLoRes",".","Args",":","language_pair",":","pair","of","languages","that","will","be","used","for","translation",".","Should","contain","2-letter","coded","strings",".","First","will","be","used","at","source","and","second","as","target","in","supervised","mode",".","For","example",":","(","``","se","''",",","``","en","''",")",".","*","*","kwargs",":","keyword","arguments","forwarded","to","super","."]
code: def __init__(self, *, language_pair=(None, None), **kwargs):
      """BuilderConfig for FLoRes.
  
      Args:
        language_pair: pair of languages that will be used for translation. Should
          contain 2-letter coded strings. First will be used at source and second
          as target in supervised mode. For example: ("se", "en").
        **kwargs: keyword arguments forwarded to super.
      """
      name = f"{language_pair[0]}{language_pair[1]}"
  
      description = f"Translation dataset from {language_pair[0]} to {language_pair[1]}."
      super(FloresConfig, self).__init__(
          name=name,
          description=description,
          version=tfds.core.Version("1.2.0"),
          **kwargs,
      )
  
      # Validate language pair.
      assert "en" in language_pair, (
          "Config language pair must contain `en`, got: %s",
          language_pair,
      )
      source, target = language_pair
      non_en = source if target == "en" else target
      assert non_en in ["ne", "si"], (
          "Invalid non-en language in pair: %s",
          non_en,
      )
  
      self.language_pair = language_pair
  
file_path: datasets/tensorflow_datasets/translate/flores.py
imports: import collections
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 to create a new FloresConfig object from inherited base classes: tfds.core with example: obj = FloresConfig()