class_docstr: BuilderConfig for SCAN.
  
  Splits can be read in two formats:
  
  1) As a pair of train and test files where each file contains one example
     input and output per line.
  2) With a 'splitfile' which contains for each split the indices into the full
     (unsplit) dataset.
class_docstr_tok: ["BuilderConfig","for","SCAN",".","Splits","can","be","read","in","two","formats",":","1",")","As","a","pair","of","train","and","test","files","where","each","file","contains","one","example","input","and","output","per","line",".","2",")","With","a","'splitfile","'","which","contains","for","each","split","the","indices","into","the","full","(","unsplit",")","dataset","."]
docstr: BuilderConfig for SCAN.
  
  Args:
    name: Unique name of the split.
    directory: Which subdirectory to read the data files from.
    splitfile: If set the samples are read from the original archive
      (tasks.txt) but the splits are created using this index file.
    **kwargs: keyword arguments forwarded to super.
docstr_tok: ["BuilderConfig","for","SCAN",".","Args",":","name",":","Unique","name","of","the","split",".","directory",":","Which","subdirectory","to","read","the","data","files","from",".","splitfile",":","If","set","the","samples","are","read","from","the","original","archive","(","tasks.txt",")","but","the","splits","are","created","using","this","index","file",".","*","*","kwargs",":","keyword","arguments","forwarded","to","super","."]
code: def __init__(self, *, name, directory=None, splitfile=None, **kwargs):
      """BuilderConfig for SCAN.
  
      Args:
        name: Unique name of the split.
        directory: Which subdirectory to read the data files from.
        splitfile: If set the samples are read from the original archive
          (tasks.txt) but the splits are created using this index file.
        **kwargs: keyword arguments forwarded to super.
      """
      # Version history:
      super(ScanConfig, self).__init__(
          name=name, version=tfds.core.Version("1.1.1"), **kwargs
      )
      self.splitfile = splitfile
      if "mcd" in name:
          self.splitfile = name + ".json"
      if self.splitfile and directory is None:
          self.directory = ""
      elif directory is None:
          self.directory = name + "_split"
      else:
          self.directory = directory
  
file_path: datasets/tensorflow_datasets/datasets/scan/scan_dataset_builder.py
imports: import json
  import os
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 to create a new ScanConfig object from inherited base classes: tfds.core with example: obj = ScanConfig()