class_docstr: ICDAR Txt Format Text Recognition Annotation Parser.
  
  The original annotation format of this dataset is stored in txt files,
  which is formed as the following format:
      img_path, transcription
  
  Args:
      separator (str): The separator between each element in a line. Defaults
          to ','.
      ignore (str): The text to be ignored. Defaults to '#'.
      format (str): The format of the annotation. Defaults to 'img, text'.
      encoding (str): The encoding of the annotation file. Defaults to
          'utf-8-sig'.
      nproc (int): The number of processes to parse the annotation. Defaults
          to 1.
      base_name (bool): Whether to use the basename of the image path as the
          image name. Defaults to False.
      remove_strs (List[str], Optional): Used to remove redundant strings in
          the transcription. Defaults to ['"'].
class_docstr_tok: ["ICDAR","Txt","Format","Text","Recognition","Annotation","Parser",".","The","original","annotation","format","of","this","dataset","is","stored","in","txt","files",",","which","is","formed","as","the","following","format",":","img_path",",","transcription","Args",":","separator","(","str",")",":","The","separator","between","each","element","in","a","line",".","Defaults","to","'",",","'",".","ignore","(","str",")",":","The","text","to","be","ignored",".","Defaults","to","'","#","'",".","format","(","str",")",":","The","format","of","the","annotation",".","Defaults","to","'img",",","text","'",".","encoding","(","str",")",":","The","encoding","of","the","annotation","file",".","Defaults","to","'utf-8-sig","'",".","nproc","(","int",")",":","The","number","of","processes","to","parse","the","annotation",".","Defaults","to","1.","base_name","(","bool",")",":","Whether","to","use","the","basename","of","the","image","path","as","the","image","name",".","Defaults","to","False",".","remove_strs","(","List","[","str","]",",","Optional",")",":","Used","to","remove","redundant","strings","in","the","transcription",".","Defaults","to","[","'","''","'","]","."]
code: def __init__(
      self,
      separator: str = ",",
      ignore: str = "#",
      format: str = "img,text",
      encoding: str = "utf-8",
      remove_strs: Optional[List[str]] = ['"'],
      **kwargs,
  ) -> None:
      self.sep = separator
      self.format = format
      self.encoding = encoding
      self.ignore = ignore
      self.remove_strs = remove_strs
      super().__init__(**kwargs)
  
file_path: mmocr/mmocr/datasets/preparers/parsers/icdar_txt_parser.py
imports: import os.path
  from typing import List, Optional, Tuple
  from mmocr.registry import DATA_PARSERS
  from mmocr.utils import bbox2poly
  from .base import BaseParser
label_desc: Use image node_id 1 to create a new ICDARTxtTextRecogAnnParser object from inherited base classes: BaseParser with example: obj = ICDARTxtTextRecogAnnParser(separator, ignore, format, encoding, remove_strs)