def __init__(self, pos, is_opening_tag, css_class):
        """Create a Tag object.

        Parameters
        ----------
        pos: int
            The position of the tag relative to text.
        is_opening_tag: bool
            Defines whether this tag is an opening or closing tag (<mark> or </mark>).
        css_class: str
            The css class associated with the tag. Although closing tags are not needed in the result,
            we need this during computations.
        """
        self.pos = int(pos)
        self.is_opening_tag = bool(is_opening_tag)
        self.css_class = as_unicode(css_class)
def __init__ ( self , pos , is_opening_tag , css_class ) : self . pos = int ( pos ) self . is_opening_tag = bool ( is_opening_tag ) self . css_class = as_unicode ( css_class )
Create a Tag object.

        Parameters
        ----------
        pos: int
            The position of the tag relative to text.
        is_opening_tag: bool
            Defines whether this tag is an opening or closing tag (<mark> or </mark>).
        css_class: str
            The css class associated with the tag. Although closing tags are not needed in the result,
            we need this during computations.