Articles → NLP → NLTK Corpus
NLTK Corpus
What Is A Corpus?
Popular Corpus
Corpus | Description |
---|
nltk.corpus.gutenberg | classic literature |
nltk.corpus.brown | Brown corpus (early standard corpus of English) |
nltk.corpus.stopwords | common stopwords in many languages |
nltk.corpus.wordnet | lexical database of English words and their relations |
nltk.corpus.movie_reviews | movie reviews (positive/negative sentiment) |
Example
import nltk
# Download corpus data (first time only)
nltk.download("gutenberg", quiet=True)
from nltk.corpus import gutenberg
# List available Gutenberg texts
print(gutenberg.fileids())
Output
Posted By - | Karan Gupta |
|
Posted On - | Tuesday, August 19, 2025 |