Advertisement
alvations

Untitled

Jun 7th, 2015
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. >>> from collections import Counter
  2. >>> from nltk.corpus import brown
  3. >>> import io
  4. >>> with io.open('brown-lex-prob.txt', 'w') as fout:
  5. ...     for token, pos in Counter(brown.tagged_words()):
  6. ...             fout.write(token +'\t' + pos +'\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement