擅长:python、mysql、java
<p><a href="https://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html" rel="nofollow noreferrer">TfidfVectorizer</a>没有参数“stop\u words”</p>
<p>如果您有如下自定义停止词列表:</p>
<p>smart_stoplist=['a','an','the']</p>
<p>像这样使用它:</p>
<pre><code>tfidf_vectorizer = TfidfVectorizer(preprocessor=preprocessing,stop_words=smart_stoplist)
</code></pre>