class_docstr: The class to read the BoolQ dataset from files. 
  BoolQ is a question answering dataset for yes/no questions containing 15942 examples. 
  Each example is a triplet of (question, passage, answer).
  
  More details about the English BoolQ are available in https://arxiv.org/abs/1905.10044
  https://github.com/google-research-datasets/boolean-questions
  
  The details about the Russian DaNetQA are available in 
  https://russiansuperglue.com/ru/tasks/task_info/DaNetQA
  
  The reader supports English and Russian variants of the dataset.
  The config example is boolqa_rubert.json.
class_docstr_tok: ["The","class","to","read","the","BoolQ","dataset","from","files",".","BoolQ","is","a","question","answering","dataset","for","yes\/no","questions","containing","15942","examples",".","Each","example","is","a","triplet","of","(","question",",","passage",",","answer",")",".","More","details","about","the","English","BoolQ","are","available","in","https",":","\/\/arxiv.org\/abs\/1905.10044","https",":","\/\/github.com\/google-research-datasets\/boolean-questions","The","details","about","the","Russian","DaNetQA","are","available","in","https",":","\/\/russiansuperglue.com\/ru\/tasks\/task_info\/DaNetQA","The","reader","supports","English","and","Russian","variants","of","the","dataset",".","The","config","example","is","boolqa_rubert.json","."]
docstr: Reads BoolQ dataset from files.
  
  Args:
      data_path: A path to a folder with dataset files.
      language: The dataset language ('ru', 'en' are available)
  
  Returns:
      dataset: items of the dataset [(question, passage), label]
docstr_tok: ["Reads","BoolQ","dataset","from","files",".","Args",":","data_path",":","A","path","to","a","folder","with","dataset","files",".","language",":","The","dataset","language","(","'ru","'",",","'en","'","are","available",")","Returns",":","dataset",":","items","of","the","dataset","[","(","question",",","passage",")",",","label","]"]
code: def read(
      self, data_path: str, language: str = "en", *args, **kwargs
  ) -> Dict[str, List[Tuple[Tuple[str, str], int]]]:
      """
      Reads BoolQ dataset from files.
  
      Args:
          data_path: A path to a folder with dataset files.
          language: The dataset language ('ru', 'en' are available)
  
      Returns:
          dataset: items of the dataset [(question, passage), label]
      """
  
      if language in self.urls:
          self.url = self.urls[language]
      else:
          raise RuntimeError(
              f"The dataset for {language} is unavailable"
          )
  
      data_path = expand_path(data_path)
      if not data_path.exists():
          data_path.mkdir(parents=True)
  
      download_decompress(self.url, data_path)
      dataset = {}
  
      for filename in ["train.jsonl", "valid.jsonl"]:
          dataset[filename.split(".")[0]] = self._build_data(
              language, data_path / filename
          )
  
      return dataset
  
file_path: DeepPavlov/deeppavlov/dataset_readers/boolqa_reader.py
imports: import json
  from pathlib import Path
  from typing import Dict, List, Tuple
  from deeppavlov.core.commands.utils import expand_path
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.data.dataset_reader import DatasetReader
  from deeppavlov.core.data.utils import download_decompress
label_desc: Use image node_id 1 for calling the BoolqaReader obj's underlying member method code with example usage: obj.read(data_path, language) and returns: dataset