docstr: :param regex_dict: dict
      This should be a dictionary mapping a label to the text of a regular expression
      e.g., {'AorB': r'(a|b)', 'Number: r'\d+'}
docstr_tok: [":","param","regex_dict",":","dict","This","should","be","a","dictionary","mapping","a","label","to","the","text","of","a","regular","expression","e.g.",",","{","'AorB","'",":","r","'","(","a|b",")","'",",","'Number",":","r'\\d+","'","}"]
code: def __init__(self, regex_dict):
      """
  
      :param regex_dict: dict
          This should be a dictionary mapping a label to the text of a regular expression
          e.g., {'AorB': r'(a|b)', 'Number: r'\d+'}
      """
      self.labeled_regexes = [
          [k, re.compile(v)] for k, v in regex_dict.items()
      ]
  
imports: import re
  from scattertext.features.featoffsets.feat_and_offset_getter import FeatAndOffsetGetter
label_desc: Use image node_id 1 to create a new RegexFeatAndOffsetGetter object from inherited base classes: FeatAndOffsetGetter with example: obj = RegexFeatAndOffsetGetter(regex_dict)