def __call__(self, text, disable=[], component_cfg=None):
if len(text) > self.max_length:<EOL><INDENT>raise ValueError(<EOL>Errors.E088.format(length=len(text), max_length=self.max_length)<EOL>)<EOL><DEDENT>doc = self.make_doc(text)<EOL>if component_cfg is None:<EOL><INDENT>component_cfg = {}<EOL><DEDENT>for name, proc in self.pipeline:<EOL><INDENT>if name in disable:<EOL><INDENT>continue<EOL><DEDENT>if not hasattr(proc, "<STR_LIT>"):<EOL><INDENT>raise ValueError(Errors.E003.format(component=type(proc), name=name))<EOL><DEDENT>doc = proc(doc, **component_cfg.get(name, {}))<EOL>if doc is None:<EOL><INDENT>raise ValueError(Errors.E005.format(name=name))<EOL><DEDENT><DEDENT>return doc<EOL>
Apply the pipeline to some text. The text can span multiple sentences,
        and can contain arbtrary whitespace. Alignment into the original string
        is preserved.

        text (unicode): The text to be processed.
        disable (list): Names of the pipeline components to disable.
        component_cfg (dict): An optional dictionary with extra keyword arguments
            for specific components.
        RETURNS (Doc): A container for accessing the annotations.

        DOCS: https://spacy.io/api/language#call