Last active
October 11, 2015 12:27
-
-
Save language-engineering/3858513 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 ReutersCorpusReader | |
| rcr = ReutersCorpusReader() #Create a new reader | |
| for sentence in rcr.sample_raw_sents(10): #get 10 random sentences, where each sentence is a string | |
| # do something with sentence |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment