From aa0580374cf3404f78104130f4a8b4f96799322c Mon Sep 17 00:00:00 2001 From: p4ut7fwj5 <3346195219@qq.com> Date: Fri, 13 Sep 2024 19:24:31 +0800 Subject: [PATCH] Delete 'word_cloud.py' --- word_cloud.py | 55 --------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 word_cloud.py diff --git a/word_cloud.py b/word_cloud.py deleted file mode 100644 index b480e71..0000000 --- a/word_cloud.py +++ /dev/null @@ -1,55 +0,0 @@ -""" - 说明:写入execl,生成词云图 -""" -# import pandas as pd -from wordcloud import WordCloud -import matplotlib.pyplot as plt -from collections import Counter -import openpyxl -import jieba -import re -from bullet_screen import get_bullet_screen -from bv_maker import get_bv, BV_NUM -jieba.setLogLevel(jieba.logging.INFO) - -def confirm(bullet): - keywords = ['人工智能', 'AI', '机器学习', '深度学习', '神经网络', '自动驾驶', '自然语言处理', '智能', 'ai'] # 设置AI应用关键词 - bullet = bullet.lower() - obj = r'(?