Last active
October 11, 2015 23:58
-
-
Save language-engineering/3939408 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.corpus_readers import AmazonReviewCorpusReader | |
| #Get some document ready for formatting | |
| dvd_pos = AmazonReviewCorpusReader().positive().category("dvd").documents() | |
| #Format the documents ready for NB classifier, but also pass in the feature extractor | |
| dvd_pos_formatted = format_data(dvd_pos, "pos", feature_extractor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment