Skip to content

'str' object has no attribute 'text' for sentencizer of xx_ent_wiki_sm #11539

Discussion options

You must be logged in to vote

Hi @ZenBel, Language.add_pipe() returns a Callable (like a Pipe), not the Language instance itself. See also the Language docs.
So what you are doing here is assigning the sentencizer pipe you just created to your nlp variable and then calling it.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by rmitsch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage feat / pipeline Feature: Processing pipeline and components
2 participants
Converted from issue

This discussion was converted from issue #11533 on September 26, 2022 09:29.