擅长:python、mysql、java
<p>您目前正在尝试下载nltk数据中的每个项目,因此这可能需要很长时间。您可以尝试仅下载所需的停止字:</p>
<pre class="lang-py prettyprint-override"><code>import nltk
nltk.download('stopwords')
</code></pre>
<p>或者从命令行(感谢<a href="https://stackoverflow.com/a/49048876/1916588">Rafael Valero's answer</a>):</p>
<pre class="lang-sh prettyprint-override"><code>python -m nltk.downloader stopwords
</code></pre>
<hr/>
<h2>参考:</h2>
<ul>
<li><a href="https://www.nltk.org/data.html#command-line-installation" rel="nofollow noreferrer">Installing NLTK Data - Command line installation</a></li>
</ul>