Skip to content

Instantly share code, notes, and snippets.

@language-engineering
Last active October 11, 2015 12:27
Show Gist options
  • Select an option

  • Save language-engineering/3858513 to your computer and use it in GitHub Desktop.

Select an option

Save language-engineering/3858513 to your computer and use it in GitHub Desktop.
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