How can I modify de doc.text #12527
Answered
by
svlandeg
LawrenceJavier
asked this question in
Help: Coding & Implementations
-
I want to replace some matches found in the text for a list os values but I cant figure out how to rewrite the existing doc with out error. I would prefer not to create a new doc. |
Beta Was this translation helpful? Give feedback.
Answered by
svlandeg
Apr 18, 2023
Replies: 1 comment
-
Hi! One of spaCy's core principles is that spaCy's processing never modifies the text itself. Any preprocessing step that changes the text should be run before |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adrianeboyd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! One of spaCy's core principles is that spaCy's processing never modifies the text itself. Any preprocessing step that changes the text should be run before
nlp(text)
. If you share more details & example code, perhaps we can try and find a good solution together?