From 1a5b8105744060e273befb6c021dba1e6a3e3aff Mon Sep 17 00:00:00 2001 From: p4ut7fwj5 <3346195219@qq.com> Date: Sun, 15 Sep 2024 18:47:17 +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 e859a26..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'(?