Skip to content

Instantly share code, notes, and snippets.

@language-engineering
Last active November 18, 2016 18:11
Show Gist options
  • Save language-engineering/7320227 to your computer and use it in GitHub Desktop.
Save language-engineering/7320227 to your computer and use it in GitHub Desktop.
This show you how to search the DVD amazon reviews for a particular query token.
from sussex_nltk.parse import load_parsed_dvd_sentences
aspect = "dialogue" # Our aspect word
parsed_sentences = load_parsed_dvd_sentences(aspect)
# To inspect the sentences, you could print them straight out
for parsed_sentence in parsed_sentences:
print "--- Sentence ---"
print parsed_sentence
# parsed_sentences is a list of ParsedSentence objects, where each sentence
# contains the word "dialogue" and was found in a DVD review.
@NaqiNick
Copy link

when i run it using it gives the following error ImportError: No module named 'sessex_nltk'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment