Super Slow Download with nltk.download punkt
作者:XD / 发表: 2023年2月9日 03:15 / 更新: 2023年2月9日 03:15 / 编程笔记 / 阅读量:1279
Super Slow Download with nltk.download('punkt') and nltk.download('averaged_perceptron_tagger')
# Download zip files from the given links.
https://github.com/nltk/nltk_data/blob/gh-pages/packages/tokenizers/punkt.zip
https://github.com/nltk/nltk_data/blob/gh-pages/packages/taggers/averaged_perceptron_tagger.zip
# unzip them
unzip -od ./ punkt.zip
unzip -od ./ averaged_perceptron_tagger.zip
# create folders
mkdir /root/nltk_data
mkdir /root/nltk_data/taggers
mkdir /root/nltk_data/averaged_perceptron_tagger
# cp or mv folders
cp -r ./punkt /root/nltk_data/taggers
cp -r ./averaged_perceptron_tagger /root/nltk_data/averaged_perceptron_tagger
相关标签