Merging complex custom attributes with from_docs #12596
-
I'm using the benepar constituency parser to get constituency parses for my documents. The labels and children of a given node can be accessed through the After applying the parser as part of my
I get the following error:
I know from #5032 that I could make a custom attribute merger for the parse strings, but I also want to be able to navigate the tree the same way that I am doing above. Does anyone have thoughts about how to accomplish this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For You'd have to dig into the |
Beta Was this translation helpful? Give feedback.
For
benepar
you'd need to merge the internalConstituentData
objects that are stored indoc._._constituent_data
. The token and span extensions all refer to thisDoc
extension, which is why it looks like the merged doc isn't parsed.You'd have to dig into the
benepar
internals of how the parse is represented inConstituentData
. It's definitely doable, but might be a bit fiddly.