from nltk.sentiment.vader import SentimentIntensityAnalyzer
# 下载VADER情感分析器的模型和词汇表
nltk.download('vader_lexicon')
# 创建一个示例数据集
data = {
'Event_Description': ['Good news for the company, stock prices soar.', 'Market reacts positively to industry developments.', 'Policy changes lead to uncertainty in the market.', 'Company faces challenges with new regulations.']
'Event_Description': ['Good news for the company, stock prices soar.', 'Market reacts positively to industry developments.', 'Policy changes lead to uncertainty in the market.', 'Company faces challenges with new regulations.']