所以我从另一篇StackOverflow文章(How do I make a better visualization of word associations for a given text?)中复制了一段代码。但是,即使不更改一行代码,我也会得到:free variable 'is_noun' referenced before assignment in enclosing scope ...why? 作为参考,代码如下: def word_association_graph(text):
for sent in