is there a method to convert a parsed text back to text? #7334
Answered
by
adrianeboyd
ophiry
asked this question in
Help: Other Questions
-
my intention is to parse a sentence, modify the parse tree, and regenerate the text from the modified tree. |
Beta Was this translation helpful? Give feedback.
Answered by
adrianeboyd
Mar 8, 2021
Replies: 1 comment 1 reply
-
No, spacy probably isn't the right library for this. You can modify the parse tree keeping all tokens in place, but the underlying text is fixed for a particular |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ines
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, spacy probably isn't the right library for this. You can modify the parse tree keeping all tokens in place, but the underlying text is fixed for a particular
Doc
, so you can't reorder tokens by modifying the parse tree.