Skip to content

Instantly share code, notes, and snippets.

@language-engineering
Last active December 27, 2015 11:49
Show Gist options
  • Save language-engineering/7321248 to your computer and use it in GitHub Desktop.
Save language-engineering/7321248 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 the head of the aspect token
head_token = parsed_sentence.get_head(aspect_token)
print head_token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment