arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.03274cs.CLcs.AI
收藏

LLM_annotate: 一个用于标注和分析小说人物的Python包

LLM_annotate: A Python package for annotating and analyzing fiction characters

University of Amsterdam(阿姆斯特丹大学)

Hannes Rosenbusch

AI总结:

LLM_annotate是一个基于大语言模型的Python工具,用于高效、可重复地分析小说人物性格,支持多种LLM并提供交互式GUI验证

摘要:

LLM_annotate是一个利用大语言模型分析小说人物性格的Python包。它标准化了在完整文本(如书籍和电影剧本)中标注人物行为、推断人物特质以及通过人机交互的GUI验证标注/推断质量的工作流程。该包包含文本分块、基于LLM的标注、人物名称歧义消除、质量评分以及计算人物层面的统计信息和嵌入向量等功能。研究人员可以使用任何LLM,包括商业、开源或自定义的LLM,在LLM_annotate中使用。通过使用《辛普森一家》电影和小说《傲慢与偏见》的教程示例,我展示了该包在高效且可重复的字符分析中的应用。

英文摘要:

LLM_annotate is a Python package for analyzing the personality of fiction characters with large language models. It standardizes workflows for annotating character behaviors in full texts (e.g., books and movie scripts), inferring character traits, and validating annotation/inference quality via a human-in-the-loop GUI. The package includes functions for text chunking, LLM-based annotation, character name disambiguation, quality scoring, and computation of character-level statistics and embeddings. Researchers can use any LLM, commercial, open-source, or custom, within LLM_annotate. Through tutorial examples using The Simpsons Movie and the novel Pride and Prejudice, I demonstrate the usage of the package for efficient and reproducible character analyses.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑