2
$\begingroup$

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

$\endgroup$
1
  • 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$ Commented Oct 31, 2018 at 23:11

0

Your Answer

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

Browse other questions tagged or ask your own question.