def map_doc2idx(self) -> Dict[int, Any]:
        """Map DB ids to integer ids.

        Returns:
            a dictionary of document titles and correspondent integer indices

        """
        doc2idx = {doc_id: i for i, doc_id in enumerate(self.doc_ids)}
        logger.info(
            "SQLite iterator: The size of the database is {} documents".format(len(doc2idx)))
        return doc2idx
Map DB ids to integer ids.

        Returns:
            a dictionary of document titles and correspondent integer indices

        
deeppavlov/dataset_iterators/sqlite_iterator.py