一种用于持续分析莎士比亚戏剧的数据科学与机器学习方法
A data science and machine learning approach to continuous analysis of Shakespeare's plays
AI总结:
本文将机器学习应用于Shakespeare戏剧的定量文本分析,发现其写作风格随时间显著变化,并实现了创作年份的文体预测(Pearson相关系数为0.71),揭示了部分戏剧文体特征与实际创作年代不符的现象。
摘要:
定量文本分析方法的可用性,以前信息时代无法实现的方式为分析文学作品提供了新途径。在此,我们将全面的机器学习分析应用于William Shakespeare的作品。分析显示,其写作风格随时间发生了明显变化,最显著的变化在于句子长度、形容词和副词的频率,以及文本中表达的情感。应用机器学习对戏剧的创作年份进行文体预测,结果显示实际年份与预测年份之间的Pearson相关系数为0.71,这表明由定量测量反映的Shakespeare写作风格随时间发生了变化。此外,分析还表明,部分戏剧的文体特征与创作年份之前或之后的戏剧更为相似。例如,《Romeo and Juliet》的创作年份为1596年,但其文体特征与Shakespeare在1600年之后创作的戏剧更为相似。该分析的源代码可免费下载。
英文摘要:
The availability of quantitative text analysis methods has provided new ways of analyzing literature in a manner that was not available in the pre-information era. Here we apply comprehensive machine learning analysis to the work of William Shakespeare. The analysis shows clear changes in the style of writing over time, with the most significant changes in the sentence length, frequency of adjectives and adverbs, and the sentiments expressed in the text. Applying machine learning to make a stylometric prediction of the year of the play shows a Pearson correlation of 0.71 between the actual and predicted year, indicating that Shakespeare's writing style as reflected by the quantitative measurements changed over time. Additionally, it shows that the stylometrics of some of the plays is more similar to plays written either before or after the year they were written. For instance, Romeo and Juliet is dated 1596, but is more similar in stylometrics to plays written by Shakespeare after 1600. The source code for the analysis is available for free download.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。