Created
September 17, 2012 10:17
-
-
Save language-engineering/3736575 to your computer and use it in GitHub Desktop.
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.corpus_readers import RCV1CorpusReader #import the corpus reader | |
rcv1cr = RCV1CorpusReader() #create a new Reuters corpus reader | |
tokens = rc1cr.words() #get a list of all tokens in corpus | |
for token in tokens: | |
print token #print each token in corpus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment