List all the case IDs and set _status_cache[pkg.id] = 'installed' .
It will set the status value for all packages as 'installed' , and package packages will be skipped when using nltk.download() .
Instead of downloading all cases and models, if you donβt know which case / package you need, use nltk.download('popular') .
import nltk dwlr = nltk.downloader.Downloader() for pkg in dwlr.corpora(): dwlr._status_cache[pkg.id] = 'installed' dwlr.download('popular')
Download all packages of a specific folder.
import nltk dwlr = nltk.downloader.Downloader()
source share