class_docstr: Implementation of :class:`~deeppavlov.dataset_readers.typos_reader.TyposCustom` that works with
  a Russian misspellings dataset from `kartaslov <https://github.com/dkulagin/kartaslov>`_
class_docstr_tok: ["Implementation","of",":","class",":","`","~deeppavlov.dataset_readers.typos_reader.TyposCustom","`","that","works","with","a","Russian","misspellings","dataset","from","`","kartaslov","<","https",":","\/\/github.com\/dkulagin\/kartaslov",">","`","_"]
docstr: Read train data for spelling corrections algorithms
  
  Args:
      data_path: path that needs to be interpreted with :meth:`~deeppavlov.dataset_readers.typos_reader.TyposKartaslov.build`
  
  Returns:
      train data to pass to a :class:`~deeppavlov.dataset_iterators.typos_iterator.TyposDatasetIterator`
docstr_tok: ["Read","train","data","for","spelling","corrections","algorithms","Args",":","data_path",":","path","that","needs","to","be","interpreted","with",":","meth",":","`","~deeppavlov.dataset_readers.typos_reader.TyposKartaslov.build","`","Returns",":","train","data","to","pass","to","a",":","class",":","`","~deeppavlov.dataset_iterators.typos_iterator.TyposDatasetIterator","`"]
code: def read(
      data_path: str, *args, **kwargs
  ) -> Dict[str, List[Tuple[str, str]]]:
      """Read train data for spelling corrections algorithms
  
      Args:
          data_path: path that needs to be interpreted with :meth:`~deeppavlov.dataset_readers.typos_reader.TyposKartaslov.build`
  
      Returns:
          train data to pass to a :class:`~deeppavlov.dataset_iterators.typos_iterator.TyposDatasetIterator`
      """
      fname = TyposKartaslov.build(data_path)
      with open(str(fname), newline="", encoding="utf8") as csvfile:
          reader = csv.reader(csvfile, delimiter=";")
          next(reader)
          res = [
              (mistake, correct) for correct, mistake, weight in reader
          ]
      return {"train": res}
  
imports: import csv
  from logging import getLogger
  from pathlib import Path
  from typing import Dict, List, Tuple
  import requests
  from lxml import html
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.data.dataset_reader import DatasetReader
  from deeppavlov.core.data.utils import is_done, download, mark_done
label_desc: Use image node_id 3 for calling the TyposKartaslov obj's underlying member method code with example usage: obj.read(data_path) and returns: dict