AI & XML / LLM test suite / Results / Test cases / JATS_Person_Place_Semantic-Annotation
Test case description
This test checks whether a model correctly identifies people and places in a scholarly text and semantically marks them up as JATS XML. Each identified entity must carry a source reference in square brackets pointing to the original paragraph.
Source file | JATS_Person_Place_SemanticAnnotation.txt |
|---|---|
Series | 3 |
Categories | xml, jats, semantics |
Evaluation | LLM judge |
Prompt SHA-256 | 3356626286c1ab3a379ed611248bf5287e7c027d135ba8fa9b4d8f8d8bde961e |
LLM judge: The answer is evaluated with LLM support. A judge model compares the model’s answer with the domain expectation and decides whether its content meets it.
Expected result
KellerAnna[1]ReinhardtMarkus[1]PetrescuSofia[1] Lindenstadt [1] Nordhafen [2] Valmont [2]
Expectation in the catalog | Yes |
|---|---|
Correct result in the catalog | Yes |
Judge instruction
Check the exact entity set, JATS types and assignment of every source reference. Institutions, bibliographic entries, contextual text and example entities must not be output.
Must be satisfied
The output consists solely of a well-formed XML document with a common root element, typically sec. Markdown code fences may be removed; extra prose is not allowed.
Exactly three people are output with name and name-type="person". Each person has surname, given-names and an xref with ref-type="fundstelle" inside the same entity.
The people are Keller / Anna with reference [1], Reinhardt / Markus with reference [1] and Petrescu / Sofia with reference [1].
Exactly three places are output with named-content and content-type="place". The place name and associated xref ref-type="fundstelle" are inside the same named-content entity.
The places are Lindenstadt with [1], Nordhafen with [2] and Valmont with [2].
Each target entity appears exactly once; source references are preserved as text [1] or [2] in square brackets.
Institutions, bibliographic entries, complete source paragraphs and other contextual content are not output.
The example entities Max Müller and Berlin and an example reference [3] are not included in the answer.
Error criteria
The output is not a single parseable XML document or contains prose outside XML.
A target person or place is missing, duplicated or misspelled, or additional people, places, institutions or example entities are output.
People are not marked up with name name-type="person" and separate surname/given-names.
Places are not marked up with named-content content-type="place".
A source reference is missing, lacks ref-type="fundstelle", is not inside its entity or is assigned to the wrong entity.
Judge note: The order of people and places, additional neutral p containers, indentation and attribute order are irrelevant. The exact entity set, semantic element types and reference pairing are decisive. An optional consistent XML namespace is not an error.
Prompt
Du erhältst einen wissenschaftlichen Text mit mehreren Abschnitten.
Der Text enthält Personen, Orte und Institutionen, aber auch viel Kontext ohne relevante Entitäten.
Aufgabe
Erkenne ausschließlich
Personen
Ortsangaben
Zeichne diese semantisch in JATS XML aus.
Formatvorgaben
Personen mit <name name-type="person">
Verwende <surname> und <given-names>
Orte mit <named-content content-type="place">
Jede Entität muss eine Fundstelle enthalten
Die Fundstelle ist die Absatznummer in eckigen Klammern
Nutze <xref ref-type="fundstelle">[NR]</xref>
Ignoriere Literaturangaben vollständig.
Ignoriere Institutionen.
Gib ausschließlich JATS XML zurück.
Beispiel
Text
[3] Das Projekt wurde von Dr. Max Müller in Berlin durchgeführt.
Ausgabe
<name name-type="person">
<surname>Müller</surname>
<given-names>Max</given-names>
<xref ref-type="fundstelle">[3]</xref>
</name>
<named-content content-type="place">
Berlin
<xref ref-type="fundstelle">[3]</xref>
</named-content>
Text
[1] Einleitung
Die vorliegende fiktive Studie untersucht die Dynamik kooperativer Wissensproduktion in interdisziplinären Forschungsgruppen. Ausgangspunkt ist ein Forschungsprojekt, das zwischen 2019 und 2022 am Institut für Angewandte Systemforschung der Universität Lindenstadt durchgeführt wurde. Die Projektleitung lag bei Prof. Dr. Anna Keller, unterstützt durch das Forschungsteam um Dr. Markus Reinhardt und Dr. Sofia Petrescu.
[2] Forschungsrahmen
Das Projekt war in der Stadt Lindenstadt angesiedelt, einer mittelgroßen Universitätsstadt im südlichen Mitteleuropa. Ergänzende Feldstudien fanden in den Städten Nordhafen und Valmont statt.
[3] Methodik
Die empirische Datenerhebung erfolgte durch Interviews mit Forschenden wie Dr. Leonhard Weiss aus Nordhafen sowie Projektmanagerinnen wie Julia Moreau aus Valmont.
[4] Ergebnisse
Die Arbeitsgruppen trafen sich regelmäßig in Lindenstadt. Dr. Sofia Petrescu betonte die Bedeutung informeller Gespräche.
[5] Diskussion
Prof. Dr. Anna Keller hob hervor, dass der Ort Lindenstadt als sozialer Katalysator fungiert.
[6] Fazit
Personen und Orte sind eng miteinander verflochten.
[7] Literatur
Diese Sektion ist vollständig zu ignorieren.711 Runs 701 evaluated 2.4 % Score 0.0 % exactly correct
Help on evaluation, score and exact correctness
Score is a graded quality measure: correct = 100 %, mostly_correct = 80 %, partial = 50 %, wrong/not_answered = 0 %.
Exactly correct is stricter: only correct-labeled runs count. Mostly correct increases score but does not count as exactly correct.
Evaluated counts all runs with a substantive judgment. LLM-judge errors also count as evaluated, with score 0 %.
Model Category Access route