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
-
|
i don't understand the error the error: sentences = getSentences(text)
my Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
The way |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Giving me the same kind of error in my code The error:
|
Beta Was this translation helpful? Give feedback.

The way
add_pipeworks 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: