@staticmethod<EOL><INDENT>def read(data_path: str, *args, **kwargs) -> Dict[str, List[Tuple[str, str]]]:<DEDENT>
fname = TyposKartaslov.build(data_path)<EOL>with open(str(fname), newline='<STR_LIT>', encoding='<STR_LIT:utf8>') as csvfile:<EOL><INDENT>reader = csv.reader(csvfile, delimiter='<STR_LIT:;>')<EOL>next(reader)<EOL>res = [(mistake, correct) for correct, mistake, weight in reader]<EOL><DEDENT>return {'<STR_LIT:train>': res}<EOL>
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`