Skip to content

Instantly share code, notes, and snippets.

@junmakii
Created August 10, 2017 09:28
Show Gist options
  • Select an option

  • Save junmakii/b74840dd87fb1c22277162851e9e7f3b to your computer and use it in GitHub Desktop.

Select an option

Save junmakii/b74840dd87fb1c22277162851e9e7f3b to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
nltk.corpus — NLTK 3.0 documentation <http://www.nltk.org/_modules/nltk/corpus.html>
"""
import nltk
corpuses = """averaged_perceptron_tagger
ptb
brown
stopwords
sinica_treebank
punkt
words
jeita
knbc
reuters
treebank
tagsets""".split('\n')
for corpus in corpuses:
nltk.download(corpus)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment