for txt in sample:
time.sleep(2)
str=re.sub(‘[^\u4e00-\u9fa5]+’,’’,txt)
print(sentiment_classify(str)[‘items’][0][‘positive_prob’])
list1.append(sentiment_classify(str)[‘items’][0][‘positive_prob’])
list2.append(sentiment_classify(str)[‘items’][0][‘negative_prob’])
list3.append(sentiment_classify(str)[‘items’][0][‘sentiment’])