class_docstr: BuilderConfig for CFQ splits.
docstr: BuilderConfig for CFQ.
  
  Can be constucted in two ways:
  1. With directory and name in which case these determine the split file.
  2. With compound_divergence (and optionally random_seed).
  
  Args:
    name: Unique name of the split.
    directory: Which subdirectory to read the split from.
    compound_divergence: The desired compound divergence.
    random_seed: The random seed. Can be either the specific random-seeds used
      to generate the split as string or an index in the range [1, 9].
    **kwargs: keyword arguments forwarded to super.
docstr_tok: ["BuilderConfig","for","CFQ",".","Can","be","constucted","in","two","ways",":","1",".","With","directory","and","name","in","which","case","these","determine","the","split","file",".","2",".","With","compound_divergence","(","and","optionally","random_seed",")",".","Args",":","name",":","Unique","name","of","the","split",".","directory",":","Which","subdirectory","to","read","the","split","from",".","compound_divergence",":","The","desired","compound","divergence",".","random_seed",":","The","random","seed",".","Can","be","either","the","specific","random-seeds","used","to","generate","the","split","as","string","or","an","index","in","the","range","[","1",",","9","]",".","*","*","kwargs",":","keyword","arguments","forwarded","to","super","."]
code: def __init__(
      self,
      *,
      name=None,
      directory=None,
      compound_divergence=None,
      random_seed=None,
      **kwargs,
  ):
      """BuilderConfig for CFQ.
  
      Can be constucted in two ways:
      1. With directory and name in which case these determine the split file.
      2. With compound_divergence (and optionally random_seed).
  
      Args:
        name: Unique name of the split.
        directory: Which subdirectory to read the split from.
        compound_divergence: The desired compound divergence.
        random_seed: The random seed. Can be either the specific random-seeds used
          to generate the split as string or an index in the range [1, 9].
        **kwargs: keyword arguments forwarded to super.
      """
      if compound_divergence is not None:
          if random_seed is None:
              random_seed_index = 1
              random_seed = _RANDOM_SEEDS[0]
          elif random_seed in range(0, 10):
              random_seed_index = random_seed
              random_seed = _RANDOM_SEEDS[random_seed - 1]
          elif random_seed in _RANDOM_SEEDS:
              random_seed_index = _RANDOM_SEEDS.index(random_seed)
          else:
              raise ValueError("Invalid random seed: %s" % random_seed)
          directory = "splits/all_divergence_splits"
          split_name = "divergence_split_s0.4_d%s_r%s" % (
              compound_divergence,
              random_seed,
          )
          name = "cd%s_r%s" % (compound_divergence, random_seed_index)
      else:
          directory = "splits"
          split_name = name
      super(CFQConfig, self).__init__(
          name=name, version=tfds.core.Version("1.2.0"), **kwargs
      )
      self.split_file = os.path.join(directory, split_name + ".json")
  
file_path: datasets/tensorflow_datasets/text/cfq.py
imports: import json
  import os
  import re
  from absl import logging
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 to create a new CFQConfig object from inherited base classes: tfds.core with example: obj = CFQConfig()