以下是我要运行的代码:
tagged=np.array(df['tagged_texts'])
for word, tag in tagged:
ss_set = None
if 'NN' in tag and swn.senti_synsets(word):
ss_set = list(swn.senti_synsets(word))[0]
elif 'VB' in tag and swn.senti_synsets(word):
ss_set = list(swn.senti_synsets(word))[0]
elif 'JJ' in tag and swn.senti_synsets(word):
ss_set = list(swn.senti_synsets(word))[0]
elif 'RB' in tag and swn.senti_synsets(word):
ss_set = list(swn.senti_synsets(word))[0]
if ss_set:
pos=pos+synset.pos_score()
neg=neg+synset.neg_score()
obj=obj+synset.obj_score()
count+=1
错误: ValueError:太多值无法解包(预期2)