Skip to content

Passing pipeline [xyz, ...] to Language initializer seems to get overwritten #2703

@hannahlindsley

Description

@hannahlindsley

How to reproduce the behaviour

from spacy.language import Language

l = Language(vocab=True, pipeline=['anything'])
l.pipeline

yields

[]

where I would have expected

['anything']

I found this while extending the Language class.

Your Environment

  • spaCy version: 2.0.11
  • Platform: Darwin-17.3.0-x86_64-i386-64bit
  • Python version: 3.6.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation and websiteusageGeneral spaCy usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions