class_docstr: BuilderConfig for TriviaQA.
class_docstr_tok: ["BuilderConfig","for","TriviaQA","."]
docstr: BuilderConfig for TriviaQA.
  
  Args:
    unfiltered: bool, whether to use the unfiltered version of the dataset,
      intended for open-domain QA.
    exclude_context: bool, whether to exclude Wikipedia and search context for
      reduced size.
    **kwargs: keyword arguments forwarded to super.
docstr_tok: ["BuilderConfig","for","TriviaQA",".","Args",":","unfiltered",":","bool",",","whether","to","use","the","unfiltered","version","of","the","dataset",",","intended","for","open-domain","QA",".","exclude_context",":","bool",",","whether","to","exclude","Wikipedia","and","search","context","for","reduced","size",".","*","*","kwargs",":","keyword","arguments","forwarded","to","super","."]
code: def __init__(
      self, *, unfiltered=False, exclude_context=False, **kwargs
  ):
      """BuilderConfig for TriviaQA.
  
      Args:
        unfiltered: bool, whether to use the unfiltered version of the dataset,
          intended for open-domain QA.
        exclude_context: bool, whether to exclude Wikipedia and search context for
          reduced size.
        **kwargs: keyword arguments forwarded to super.
      """
      name = "unfiltered" if unfiltered else "rc"
      if exclude_context:
          name += ".nocontext"
      description = (
          _UNFILTERED_DESCRIPTION if unfiltered else _RC_DESCRIPTION
      )
      if not exclude_context:
          description += _CONTEXT_ADDENDUM
      super(TriviaQAConfig, self).__init__(
          name=name,
          description=description,
          version=tfds.core.Version("1.1.0"),
          **kwargs,
      )
      self.unfiltered = unfiltered
      self.exclude_context = exclude_context
  
file_path: datasets/tensorflow_datasets/datasets/trivia_qa/trivia_qa_dataset_builder.py
imports: from __future__ import annotations
  import json
  import os
  from absl import logging
  from etils import epath
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 to create a new TriviaQAConfig object from inherited base classes: tfds.core with example: obj = TriviaQAConfig()