Skip to content

Instantly share code, notes, and snippets.

@language-engineering
Last active December 27, 2015 11:49
Show Gist options
  • Save language-engineering/7321059 to your computer and use it in GitHub Desktop.
Save language-engineering/7321059 to your computer and use it in GitHub Desktop.
# Given a ParsedSentence object, and an aspect token acquired from it (as in the previous section)
# Get all of the dependants of that aspect token.
dependants = parsed_sentence.get_dependants(aspect_token)
# You could print them out for inspection
for dependant in dependants:
print dependant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment