def __call__(self, doc):
matches = self.matcher(doc)<EOL>spans = []  <EOL>for _, start, end in matches:<EOL><INDENT>entity = Span(doc, start, end, label=self.label)<EOL>spans.append(entity)<EOL>for token in entity:<EOL><INDENT>token._.set("<STR_LIT>", True)<EOL><DEDENT>doc.ents = list(doc.ents) + [entity]<EOL><DEDENT>for span in spans:<EOL><INDENT>span.merge()<EOL><DEDENT>return doc<EOL>
Apply the pipeline component on a Doc object and modify it if matches
        are found. Return the Doc, so it can be processed by the next component
        in the pipeline, if available.