I am looking to parse the ConstituentsTree from TextStructure. Someone already asked how to get the proper nouns out of a text here: Extract names from a document

I am looking for a more general approach to extracting the constituents from a constituents tree. Constituent Tree

In this case how could you extract the proper noun from the noun phrase and the noun from the noun phrase in the verb phrase? In the referenced post it is done by getting the associations form the FullForm of the tree but I can't figure out how to replicate it so it can be used for more general purposes. Thanks

  • 2
    $\begingroup$ My own feeble attempts at this sort of problem start from the "ConstituentStrings" of the TextStructure and then do some string processing. $\endgroup$ Oct 31, 2018 at 23:11


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.