def __init__(<EOL>self,<EOL>string: Union[str, MutableSequence[str]],<EOL>header: bool = False,<EOL>_type_to_spans: Dict[str, List[List[int]]] = None,<EOL>_span: int = None,<EOL>_type: int = None,<EOL>_match: Match = None,<EOL>_attrs_match: Match = None,<EOL>) -> None:
super().__init__(string, _type_to_spans, _span, _type)<EOL>self._header = header<EOL>if _match:<EOL><INDENT>string = self.string<EOL>self._match_cache = _match, string<EOL>if _attrs_match:<EOL><INDENT>self._attrs_match_cache = _attrs_match, string<EOL><DEDENT>else:<EOL><INDENT>self._attrs_match_cache =ATTRS_MATCH(_match['<STR_LIT>']), string<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self._attrs_match_cache = self._match_cache = None, None<EOL><DEDENT>
Initialize the object.