【发布时间】:2023-03-29 16:59:01
【问题描述】:
我正在使用一个 NER 系统,它提供一个文本文件作为输出,其中包含一个命名实体列表,这些实体是概念扬声器的实例。我正在寻找一种工具,可以通过将此列表和实例正确注释为标签<Speaker> 的黄金标准作为输入来计算系统的精度、召回率和 F1。
我有两个 txt 文件:Instances.txt 和 GoldStandard.txt。我需要将提取的实例与黄金标准进行比较,以计算这些指标。比如根据第二个文件,第一个文件的前三句是True Positive,最后一句是False Positive。
instances.txt 包含:
is sponsoring a lecture by <speaker> Antal Bejczy from
announces a talk by <speaker> Julia Hirschberg
His name is <speaker> Toshiaki Tsuboi He will
to produce a schedule by <speaker> 50% for problems
GoldStandard.txt 包含:
METC is sponsoring a lecture by <speaker> Antal Bejczy from Stanford university
METC announces a talk by <speaker> Julia Hirschberg
The speaker is from USA His name is <speaker> Toshiaki Tsuboi He will
propose a solution to these problems
It led to produce a schedule by 50% for problems
【问题讨论】:
-
你的标题只写了“自动计算准确率”,但你的问题正文说“我正在寻找一种可以计算系统精度、召回率和F1 来自给定的输入”。大概您更喜欢来自/使用标准软件包和/或开源许可的软件。
-
您的 instances.txt 看起来不同。这通常是 NLP 管道的结果,而不仅仅是 NER 模型。意思是,你有一个句子检测、分词器等。这样,你还需要考虑这些的准确性,因为最终结果是不一致的。或者,如果您不在乎,手动将结果映射回黄金标准并使用 conlleval。
标签: metrics information-extraction named-entity-recognition