Skip to content

ValueError: [E966] nlp.add_pipe now takes the string name of the registered component factory, not a callable component. Expected string, but got <spacy.pipeline.sentencizer.Sentencizer object at 0x000001CA1A69DF00> (name: 'None'). #7743

Discussion options

You must be logged in to vote

The way add_pipe works changed in v3. Your code is using the v2 style, but like the error says you need to change it. Your code should look like this:

nlp.add_pipe('sentencizer')

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@greybraun
Comment options

@polm
Comment options

@greybraun
Comment options

@polm
Comment options

@greybraun
Comment options

Answer selected by adrianeboyd
Comment options

You must be logged in to vote
1 reply
@polm
Comment options

Comment options

You must be logged in to vote
1 reply
@svlandeg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / sentencizer Feature: Sentencizer (rule-based sentence segmenter) v2 spaCy v2.x
6 participants
Converted from issue

This discussion was converted from issue #7741 on April 11, 2021 04:55.