'str' object has no attribute 'text' for sentencizer
of xx_ent_wiki_sm
#11539
Answered
by
rmitsch
ZenBel
asked this question in
Help: Other Questions
-
When I run this piece of code:
everything works perfectly. However, when I try to run this piece of code
I get the following error: But I don't understand why. Can someone shed some light on it? Thanks in advance, Z |
Beta Was this translation helpful? Give feedback.
Answered by
rmitsch
Sep 26, 2022
Replies: 1 comment 1 reply
-
Hi @ZenBel, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rmitsch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ZenBel,
Language.add_pipe()
returns aCallable
(like aPipe
), not theLanguage
instance itself. See also theLanguage
docs.So what you are doing here is assigning the
sentencizer
pipe you just created to yournlp
variable and then calling it.