def create_pipe(self, name, config=dict()):
if name not in self.factories:<EOL><INDENT>if name == "<STR_LIT>":<EOL><INDENT>raise KeyError(Errors.E108.format(name=name))<EOL><DEDENT>else:<EOL><INDENT>raise KeyError(Errors.E002.format(name=name))<EOL><DEDENT><DEDENT>factory = self.factories[name]<EOL>return factory(self, **config)<EOL>
Create a pipeline component from a factory.

        name (unicode): Factory name to look up in `Language.factories`.
        config (dict): Configuration parameters to initialise component.
        RETURNS (callable): Pipeline component.

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