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","."]
code: def _build_data(
      ln: str, data_path: Path
  ) -> List[Tuple[Tuple[str, str], int]]:
      data = {}
      with open(data_path, "r") as f:
          for line in f:
              jline = json.loads(line)
              if ln == "ru":
                  if "label" in jline:
                      data[jline["question"], jline["passage"]] = int(
                          jline["label"]
                      )
              if ln == "en":
                  if "answer" in jline:
                      data[jline["question"], jline["passage"]] = int(
                          jline["answer"]
                      )
  
      return list(data.items())
  
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 2 for calling the BoolqaReader obj's underlying member method code with example usage: obj._build_data(ln, data_path) and returns: list