宋词作为中国古代文学皇冠上光辉夺目的明珠,其文学成就和欣赏价值极高。本文使用Python的BS4 + Wordcloud + Jieba功能方法,对近10,000首宋代诗词进行筛选梳理,利用文本挖掘技术,抓取出现频率较高的关键词。根据统计,选取词频较高的5个自然景观词逐条进行情感分析,得出相应的情感指数,并进一步构建相应的可视化的语义网络图。通过对宋词的自然景观意象和蕴含的情感进行研究分析,结论表明,不同自然景观的词条语义体现出不同程度的情感因素。
As a brilliant pearl in the crown of ancient Chinese literature, Song Ci has a high degree of literary achievement and appreciation. This paper uses Python’s BS4, word cloud and Jieba function to se-lect and sort out nearly 10,000 poems of Song Dynasty, the key words with high frequency are picked up by using text mining technology. According to the statistics, 5 natural landscape words with high word frequency are selected for emotional analysis one by one, and the corresponding emotional index is obtained, and the corresponding visual semantic network graph is further con-structed. Through the research and analysis of the natural landscape image and the emotion con-tained in Song Ci, the conclusion shows that the semantic of different natural landscape entries re-flects different emotional factors.