PyPlutchik:可视化和比较情感标注语料库
PyPlutchik: visualising and comparing emotion-annotated corpora
摘要:
越来越多的文本语料库和从社交网络获取的数据正在推动基于心理学家Robert Plutchik提出的模型的大量作品,通常简称为"Plutchik轮“。相关研究从标注任务描述到情绪检测工具。这种情绪的可视化传统上是使用最流行的布局进行的,如条形图或表格,然而这些布局并不理想。普卢奇克之轮的经典表述遵循了情感对之间的接近和对立原则:在这个模型中,空间接近也是语义接近,因为相邻的情感在一起触发时会引发一种复杂的情感(一个主要的二元体);空间对立也是语义对立,因为积极的情感与消极的情感是对立的。最常见的布局无法保留这两个功能,更不用说在视觉上允许在眨眼之间比较不同语料库的需求,这对于基本的设计解决方案来说是很难的。我们介绍PyPlutchik,一个专门为Plutchik在文本或语料库中的情感可视化而设计的Python库。PyPlutchik画了Plutchik的花,每个情感花瓣的大小取决于在语料库中检测或注释的情感程度,也代表了每个情感的三个强度。值得注意的是,PyPlutchik允许用户以紧凑,直观的方式显示主要,次要,第三和相反的二元组。我们证实了我们的说法,PyPlutchik优于其他经典的可视化时,显示Plutchik的情绪,我们展示了几个例子,显示我们的库的最引人注目的功能。
英文摘要:
The increasing availability of textual corpora and data fetched from social networks is fuelling a huge production of works based on the model proposed by psychologist Robert Plutchik, often referred simply as the ``Plutchik Wheel''. Related researches range from annotation tasks description to emotions detection tools. Visualisation of such emotions is traditionally carried out using the most popular layouts, as bar plots or tables, which are however sub-optimal. The classic representation of the Plutchik's wheel follows the principles of proximity and opposition between pairs of emotions: spatial proximity in this model is also a semantic proximity, as adjacent emotions elicit a complex emotion (a primary dyad) when triggered together; spatial opposition is a semantic opposition as well, as positive emotions are opposite to negative emotions. The most common layouts fail to preserve both features, not to mention the need of visually allowing comparisons between different corpora in a blink of an eye, that is hard with basic design solutions. We introduce PyPlutchik, a Python library specifically designed for the visualisation of Plutchik's emotions in texts or in corpora. PyPlutchik draws the Plutchik's flower with each emotion petal sized after how much that emotion is detected or annotated in the corpus, also representing three degrees of intensity for each of them. Notably, PyPlutchik allows users to display also primary, secondary, tertiary and opposite dyads in a compact, intuitive way. We substantiate our claim that PyPlutchik outperforms other classic visualisations when displaying Plutchik emotions and we showcase a few examples that display our library's most compelling features.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。