Last active
November 18, 2016 18:11
-
-
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.
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
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when i run it using it gives the following error ImportError: No module named 'sessex_nltk'