Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> from collections import Counter
- >>> from nltk.corpus import brown
- >>> import io
- >>> with io.open('brown-lex-prob.txt', 'w') as fout:
- ... for token, pos in Counter(brown.tagged_words()):
- ... fout.write(token +'\t' + pos +'\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement