parent
7c883c3798
commit
89fb798830
@ -0,0 +1,8 @@
|
|||||||
|
def count_danmaku(danmaku_list):
|
||||||
|
ai_keywords = ['AI', 'ai', 'AI分析', 'AI识别', 'AI优化','人工智能']
|
||||||
|
count_dict = {keyword: 0 for keyword in ai_keywords}
|
||||||
|
for danmaku in danmaku_list:
|
||||||
|
for keyword in ai_keywords:
|
||||||
|
if keyword in danmaku:
|
||||||
|
count_dict[keyword] += 1
|
||||||
|
return count_dict
|
Loading…
Reference in new issue