Last active
December 27, 2015 11:49
-
-
Save language-engineering/7321059 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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