def remove_pipe(self, name):
if name not in self.pipe_names:<EOL><INDENT>raise ValueError(Errors.E001.format(name=name, opts=self.pipe_names))<EOL><DEDENT>return self.pipeline.pop(self.pipe_names.index(name))<EOL>
Remove a component from the pipeline.

        name (unicode): Name of the component to remove.
        RETURNS (tuple): A `(name, component)` tuple of the removed component.

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