class_docstr: BuilderConfig for Opus.
docstr: BuilderConfig for Opus.
  
  Args:
    language_pair: `(string, string)`, pair of languages used for translation.
      Should contain 2 letter coded strings (e.g. "de", "en")
    subsets: `<list>(string)`, list of the subdatasets to use.
    **kwargs: keyword arguments forwarded to super.
docstr_tok: ["BuilderConfig","for","Opus",".","Args",":","language_pair",":","`","(","string",",","string",")","`",",","pair","of","languages","used","for","translation",".","Should","contain","2","letter","coded","strings","(","e.g",".","``","de","''",",","``","en","''",")","subsets",":","`","<","list",">","(","string",")","`",",","list","of","the","subdatasets","to","use",".","*","*","kwargs",":","keyword","arguments","forwarded","to","super","."]
code: def __init__(self, *, language_pair, subsets, **kwargs):
      """BuilderConfig for Opus.
  
      Args:
        language_pair: `(string, string)`, pair of languages used for translation.
          Should contain 2 letter coded strings (e.g. "de", "en")
        subsets: `<list>(string)`, list of the subdatasets to use.
        **kwargs: keyword arguments forwarded to super.
      """
      sorted_language_pair = sorted(language_pair)
      name = kwargs.get(
          "name",
          "%s-%s for %s"
          % (
              sorted_language_pair[0],
              sorted_language_pair[1],
              ", ".join(subsets),
          ),
      )
  
      description = name + " documents"
  
      super(OpusConfig, self).__init__(
          description=description, **dict(kwargs, name=name)
      )
  
      self.language_pair = sorted_language_pair
      self.subsets = subsets
  
file_path: datasets/tensorflow_datasets/datasets/opus/opus_dataset_builder.py
imports: import os
  from absl import logging
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 to create a new OpusConfig object from inherited base classes: tfds.core with example: obj = OpusConfig()