class_docstr: The class to read the paraphraser.ru dataset from files.
  ​
      Please, see https://paraphraser.ru.
      
code: def _build_data(
      data_path: Path, do_lower_case: bool
  ) -> List[Tuple[Tuple[str, str], int]]:
      root = ET.fromstring(data_path.read_text(encoding="utf8"))
      data = []
      for paraphrase in root.findall("corpus/paraphrase"):
          key = (
              paraphrase.find('value[@name="text_1"]').text,
              paraphrase.find('value[@name="text_2"]').text,
          )
          if do_lower_case:
              key = tuple([t.lower() for t in key])
  
          pos_or_neg = int(paraphrase.find('value[@name="class"]').text)
          data.append((key, pos_or_neg))
      return data
  
file_path: DeepPavlov/deeppavlov/dataset_readers/rel_ranking_reader.py
imports: import xml.etree.ElementTree
  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
label_desc: Use image node_id 2 for calling the ParaphraserReader obj's underlying member method code with example usage: obj._build_data(data_path, do_lower_case) and returns: data