def __call__(self, text, disable=[], component_cfg=None):
        """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
        """
        if len(text) > self.max_length:
            raise ValueError(
                Errors.E088.format(length=len(text), max_length=self.max_length)
            )
        doc = self.make_doc(text)
        if component_cfg is None:
            component_cfg = {}
        for name, proc in self.pipeline:
            if name in disable:
                continue
            if not hasattr(proc, "__call__"):
                raise ValueError(Errors.E003.format(component=type(proc), name=name))
            doc = proc(doc, **component_cfg.get(name, {}))
            if doc is None:
                raise ValueError(Errors.E005.format(name=name))
        return doc
def __call__ ( self , text , disable = [ ] , component_cfg = None ) : if len ( text ) > self . max_length : raise ValueError ( Errors . E088 . format ( length = len ( text ) , max_length = self . max_length ) ) doc = self . make_doc ( text ) if component_cfg is None : component_cfg = { } for name , proc in self . pipeline : if name in disable : continue if not hasattr ( proc , "__call__" ) : raise ValueError ( Errors . E003 . format ( component = type ( proc ) , name = name ) ) doc = proc ( doc , ** component_cfg . get ( name , { } ) ) if doc is None : raise ValueError ( Errors . E005 . format ( name = name ) ) return doc
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