擅长:python、mysql、java
<p>像下面那样单独计算<code>cdev_cfd</code>,不要再将其转换为列表。剩下的代码看起来不错</p>
<pre><code>cdev_cfd = nltk.ConditionalFreqDist([(genre, word.lower()) for genre in cfdconditions for word in brown.words(categories=genre) if word.lower() not in stopword])
</code></pre>