EducationalTestingService / rstfinder

Fast Discourse Parser to find latent Rhetorical STructure (RST) in text.
MIT License
122 stars 24 forks source link

Allow passing in pre-computed constituency trees as the only input #65

Closed desilinguist closed 4 years ago

desilinguist commented 4 years ago

There's already a way to bypass the syntactic parsing if you pre-populate the relevant fields in the document dictionary that is input to rst_parse.segment_and_parse() but it's the caller's responsibility to pre-populate all of the fields. It might be nice to have a way to only provide the "syntax_trees" field and then have the other related fields automatically computed from the parse tree itself.