<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>The iDAI.publication: extracting and linking information in the publications of the German Archaeological Institute (DAI)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Berlin francesco.mambrini@dainst.de</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>The Deutsches Archa ̈ologisches Institute (German Archaeological Institute, henceforth DAI) is a German agency operating within the sphere of</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>English. We present the results of our attempt to use NLP tools in order to identify named entities in the publications of the Deutsches Archa¨ologisches Institute (DAI) and link the identified locations to entries in the iDAI.gazetteer. Our case study focuses on articles written in German and published in the journal Chiron between 1971 and 2014. We describe the annotation pipeline that starts from the digitized texts published in the new portal of the DAI. We evaluate the performances of geoparsing and NER and test an approach to improve the accuracy of the latter.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Italiano. Il paper descrive i risultati
dell’esperimento di applicazione di
strumenti di NLP per annotare le Named
Entities nelle pubblicazioni del Deutsches
Archa¨ologisches Institute (DAI) e
collegare i toponimi identificati alle rispettive
voci dell’iDAI.gazetteer. Il
nostro studio si concentra sugli articoli in
tedesco pubblicati nella rivista Chiron tra
il 1974 e il 2014. Descriviamo la pipeline
di annotazione impiegata per processare
gli articoli disponibili nel nuovo portale
per le pubblicazioni del DAI. Discutiamo
i risultati della valutazione degli script di
geoparsing e NER e, infine, proponiamo
un approccio per migliorare l’accuratezza
in quest’ultimo task.
responsibility of the federal Foreign Office; the
goal of the institue is to promote research in
archaeological sciences and on ancient civilizations
worldwide. Founded in Rome in 1829, the DAI
has developed into a complex institution, with
branches and offices located around the world.
The Institute has participated in several projects,
including missions of paramount importance like
those in Olympia, Pergamon or Elephantine.</p>
      <p>One of the most visible output of this activity
is the amount of scientific publications produced
by the DAI. The Institute currently publishes 14
international journals and 70 book series on
different topics.1 Since 2018, part of this collection
is now accessible to the public on a new online
portal named idai.publications for books
and journals.2 This ongoing initiative will not only
enable researchers to have easier access to the
published works; even more importantly, it will allow
the Institute to integrate the data contained in
articles and books (such as persons, places and
archaeological sites, artifacts and monuments) into
a network of all the other digital resources of the
DAI.</p>
      <p>All the digital collections of the DAI are indeed
designed to operate within a network known as the
idai.welt (or idai.world).3 This network
includes web collections such as “Arachne”,4 the
database of archaeological monuments and
artifacts of the DAI, and “Zenon”,5 the central
bibliographic catalogue that serves all the libraries of the
DAI offices around the world, but also compiles
1A list of journal is provided at: https://www.
dainst.org/publikationen/zeitschriften/
alphabetisch; for the list of book series: https:
//new.dainst.org/publikationen/reihen.</p>
      <p>2See https://publications.dainst.org/
journals/ and https://publications.dainst.
org/books/.</p>
      <p>3https://www.dainst.org/de/forschung/
forschung-digital/idai.welt
4https://arachne.dainst.org/
5https://zenon.dainst.org/
some of the most comprehensive bibliographies in
the areas of activity of the different branches.</p>
      <p>The other cornerstone of the idai.world
is represented by the layer of web-based
services such as thesauri and controlled
vocabularies. The idai.gazetteer,6 in particular,
connects names of locations with unique identifiers
and coordinates; the gazetteer is intended to serve
both as a controlled list of topnyms for DAI’s
services and to link the geographic data with
other gazetteers. Unique identifiers defined in the
idai.gazetteer are already used to connect
places and entries in Zenon and Arachne. In this
way, users of these services can already query
monuments and artifacts in Arachne or books in
Zenon that are linked to a specific place.
2</p>
    </sec>
    <sec id="sec-2">
      <title>A pipeline for textual annotation</title>
      <p>This network of references holds a great
potential for the DAI publications. Places, persons,
artifacts, monuments, and other entities of interest
mentioned within the publications can be
identified and linked to the concepts in the appropriate
knowledge bases of the DAI. The linking of the
different relevant entities would allow researchers
not just to retrieve the texts that, independently
from the language of the publication, make
reference to certain concepts of interest, but also to
study such epistemologically relevant questions as
the variation in the patterns of locations cited in
the studies across decades.</p>
      <p>While the linking between entries in Zenon
and Archne and the idai.gazetteer had been
conducted manually, the volume and nature of the
textual information to be processed in the
publications encouraged us to turn to Natural Language
Processing (NLP). We set up a pipeline for text
annotation that aims to process the full texts of the
publications, perform Named Entity Recognition
(NER) to identify the mentions of the relevant
entities, and finally link them to the appropriate
entries in the idai.world.</p>
      <p>We chose to build the first version of the
pipeline around a series of open-source software
that offer support for multiple languages and
are widely used in the Digital Humanities (DH);
at present, the annotation is limited to persons,
places and organization, and only the linking of
place-names to the idai.gazetteer is
supported.</p>
      <p>6https://gazetteer.dainst.org/
2.1</p>
      <sec id="sec-2-1">
        <title>Preprocessing and NER</title>
        <p>
          The pipeline is programmed in Python and takes
advantages of modules of the NLTK platform for
several task
          <xref ref-type="bibr" rid="ref2">(Bird et al., 2009)</xref>
          , like sentence- and
word-tokenization.
        </p>
        <p>
          The input of our annotation pipeline is, in the
case of articles and books for which no other
versions survive, the full text extracted from the PDF
files of the articles.7 The automatic recognition
of the publication’s main language is carried out
by the Python library langid
          <xref ref-type="bibr" rid="ref6 ref9">(Lui and Baldwin,
2011)</xref>
          .
        </p>
        <p>
          NER is performed using the Stanford Named
Entity Recognizer
          <xref ref-type="bibr" rid="ref4">(Finkel et al., 2005)</xref>
          , which
implements Conditional Random Field (CRF)
sequence models. For a preliminary evaluation,
we used pre-trained models for English,
Spanish,8 German
          <xref ref-type="bibr" rid="ref3">(Faruqui and Pado´, 2010)</xref>
          , and
Italian
          <xref ref-type="bibr" rid="ref11">(Palmero Aprosio and Moretti, 2016)</xref>
          . All
these models are trained to recognize
comparable classes of entities (persons, places,
organizations and miscellaneous). We then chunked
together the annotated tokens with a simple
regularexpression chunker that takes consecutive,
nonempty (O) tags together and labels them with the
same label as the first token in the series.
        </p>
        <p>
          Part-of-speech (POS) tagging, though not
strictly necessary for NER and geoparsing, as the
out-of-the-box models for Stanford NER do not
require it, is also supported by our pipeline.
TreeTagger
          <xref ref-type="bibr" rid="ref13">(Schmid, 1999)</xref>
          was chosen since it offered
a vast array of pre-trained models for many
languages.
2.2
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>Geoparsing</title>
        <p>
          The task of resolving place names by linking them
to identifiers from a gazetteer is commonly
referred to as “georparsing”. The Edinburgh
Geoparser9 is a suite of tools that is often employed in
DH
          <xref ref-type="bibr" rid="ref1 ref5">(Grover et al., 2010; Alex, 2017)</xref>
          and allows
users to preprocess texts, extract toponyms and
resolve them by identifying the possible candidates
in a gazetteer and scoring them. Users have the
option to select between 4 gazetteers, and to set some
parameters, like the coordinates of areas that will
7All the PDF files of the publications already include
texts, so no Optical Character Recognition (OCR) is needed.
        </p>
        <p>8Models for English and Spanish are available for
download at https://stanfordnlp.github.io/
CoreNLP/; for English we used the 4 Class model CoNLL
2003 English training set.</p>
        <p>9http://groups.inf.ed.ac.uk/geoparser/
documentation/v1.1/html/
be given preference while ranking the candidates.
The scoring process makes use of some properties
recorded for places in gazetteers (e.g. the type of
location, such as inhabited place or archaeological
site) and especially by comparing locations
pairwise with all other places identified; preference is
thus given to places that cluster together.</p>
        <p>Although Edinburgh works only with English
and the idai.gazetteer is not supported, the
CLI software is built as a suite of scripts, so that
the input of a process is the output of the
preceding one. By knowing the script that performs a
task and the input it expects, it is therefore possible
to inject a pre-processed text into any given step,
while most processes (like scoring) are
languageagnostic. We integrated the ranking script of
Edinburgh within our pipeline to score, for any
location that we extracted with our own NER scripts,
any list of possible candidates matched in the
idai.gazetteer.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Testing and Improving The Pipeline: a case study</title>
      <p>In this section we discuss the preliminary results
obtained by running the pipeline described above
on the complete series of one journal now
available in the idai.publications. The results
will serve as a baseline for future improvement.
3.1</p>
      <sec id="sec-3-1">
        <title>Chiron: the data set</title>
        <p>The first complete publication series that was
added to the portal was Chiron, a journal published
by the DAI’s “Kommission fu¨r Alte Geschichte
und Epigraphik” from 1970. Volumes from 1 to
44 (2014) are currently available,10 for a total of
942 articles. The focus of the publication is in
Graeco-Roman history and epigraphy; several
articles contain lengthy quotations (or even full
editions) of inscriptions in Greek or Latin.</p>
        <p>
          Table 1 reports the total number of articles per
language. As can be seen, quotations in Greek and
Latin are sufficiently frequent and long to confuse
the automatic recognition. In 39 cases, Latin or
Greek were considered the main language of the
publication. Luxembourgish (a West Germanic
language) is also a clear mistake for German, also
possibly prompted by lengthy quotations
          <xref ref-type="bibr" rid="ref10">(Nolle´
and Wartner, 1987, for one likely case)</xref>
          . The 44
volumes of the journal show an interesting
distribution of languages, with German playing the
10Readers are however requested to register an account.
        </p>
        <sec id="sec-3-1-1">
          <title>Language</title>
        </sec>
        <sec id="sec-3-1-2">
          <title>German</title>
          <p>English
French
Italian
Spanish
Luxembourgish
Greek and Lat.</p>
        </sec>
        <sec id="sec-3-1-3">
          <title>Nr. Articles Auto rec. 645 211</title>
          <p>most relevant role by far.11
In this preliminary stage, we decided to focus on
the 580 automatically identified German articles in
order to evaluate the performances of our pipeline
and to improve its accuracy.</p>
          <p>
            We have manually corrected the NER
annotation and geoparsing of 4 articles
            <xref ref-type="bibr" rid="ref12 ref6 ref7 ref8 ref9">(Linke, 2009;
Hammerstaedt, 2009; Sa¨nger, 2010; Haensch and
Mackensen, 2011)</xref>
            , for a total of 36,159 words.
The articles were selected so as to represent a
broad scope of subjects (from papyrology, to
social and religious history, to military archaeology)
and geographic areas (North Africa, Asia Minor,
Rome and Italy).
          </p>
          <p>
            For the evaluation of our NER tools we adopted
the same metrics (precision, recall and F =1
score) and methods of the CoNLL-2000 shared
task
            <xref ref-type="bibr" rid="ref14">(Tjong Kim Sang and Buchholz, 2000)</xref>
            . Note,
in particular, that the scores are calculated at the
level of the phrase, not of the single tag. The
evaluation of the geoparser is also based on the
same principles, but instead of evaluating its
performances on the automatically annotated texts,
we re-ran the geoparser on the gold-standard and
evaluated that output.
          </p>
          <p>
            The scores reported in Table 2 are considerably
below the state of the art in NER for German, as
documented e.g. in the CoNLL 2003 shared task
            <xref ref-type="bibr" rid="ref15">(Tjong Kim Sang and De Meulder, 2003)</xref>
            . These
results would very likely be considered
insufficient or too noisy for the needs of researchers in
the (Digital) Humanities.
          </p>
          <p>11A word count on the automatically recognized languages
confirms this conclusion: German has 7,394,004 words
(60.48% of total), English 2,955,640, and French 899,888.
Greek and Latin total 481,596 words; the other languages
count between 193k and 148k words.</p>
          <p>Modules for NER trained on general corpora do
not seem to be suited to annotate texts that belong
to such a specific domain with acceptable
accuracy. The poor performances with organizations,
in particular, point to some peculiarities of the
archaeological literature in comparison to texts
included in most general-use corpora: companies,
firms and other institutions, which are frequent in
the news, are rarely found in scholarly texts of
our domain; the organization tag is more often
reserved either to ancient institutions (like “the
Roman Senate”) or peoples and tribes (“the
Aquitani”) which are hardly represented in ordinary
corpora.</p>
        </sec>
        <sec id="sec-3-1-4">
          <title>Article L09 H09 S10</title>
          <p>
            The performances of the geoparser, on
the other hand, seem encouraging (Table 3).
With gold-standar named entity recognition,
the Edinburgh Geoparsers combined with the
idai.gazetteer attained scores that closely
approximate, or even surpass 80%. The evaluation
of our annotation was also a valuable occasion
to assess the accuracy and granularity of the
idai.gazetteer: 38 locations in North
Africa mentioned in one article
            <xref ref-type="bibr" rid="ref6 ref9">(Haensch and
Mackensen, 2011)</xref>
            did not have any record in
DAI’s gazetteer.
We decided to use the manually corrected articles
to see whether we could improve on the baseline
with the help of in-domain models. We trained a
CRF model adding a series of linguistic features,
like POS, which may help capturing non-German
expressions, or type-set features such as the use of
small- and full-caps.12 As the articles in Chiron
focus on the Greco-Roman civilization, we expect
a lookup in lists of known toponyms of the
Ancient Word to sensibly improve the performances
of NER for locations. We chose to add a gazetteer
lookup to the list of features; we preferred to
resort to a more specific resource like the “Digital
Atlas of the Roman Empire” (DARE)13 instead of
the general-purpose idai.gazetteer.
          </p>
        </sec>
        <sec id="sec-3-1-5">
          <title>Entity</title>
        </sec>
        <sec id="sec-3-1-6">
          <title>Person</title>
          <p>Location
Organization</p>
        </sec>
        <sec id="sec-3-1-7">
          <title>TOTAL</title>
        </sec>
        <sec id="sec-3-1-8">
          <title>Precision</title>
          <p>centrate our effort on the NER components. We
intend to progress in the direction discussed above,
in particular by: a. training and evaluating models
for the other languages (French, English, Italian,
Spanish) b. testing the models on other
publications in the portal.</p>
          <p>In a more distant future, we also intend to
include support to the identification (and subsequent
linking) of other named entities of interest for
archaeologists, such as artifacts, monuments and
chronological references.</p>
        </sec>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>Beatrice</given-names>
            <surname>Alex</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Geoparsing EnglishLanguage Text with the Edinburgh Geoparser</article-title>
          . https://programminghistorian.org/en/lessons/geoparsingtext
          <article-title>-with-edinburgh.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>Steven</given-names>
            <surname>Bird</surname>
          </string-name>
          , Ewan Klein, and
          <string-name>
            <given-names>Edward</given-names>
            <surname>Loper</surname>
          </string-name>
          .
          <year>2009</year>
          .
          <article-title>Natural Language Processing with Python</article-title>
          .
          <source>O'Reilly</source>
          , New York.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>Manaal</given-names>
            <surname>Faruqui</surname>
          </string-name>
          and Sebastian Pado´.
          <year>2010</year>
          .
          <article-title>Training and evaluating a german named entity recognizer with semantic generalization</article-title>
          .
          <source>In Proceedings of KONVENS</source>
          <year>2010</year>
          , Saarbru¨cken, Germany.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <given-names>Jenny</given-names>
            <surname>Rose</surname>
          </string-name>
          <string-name>
            <surname>Finkel</surname>
          </string-name>
          , Trond Grenager, and
          <string-name>
            <given-names>Christopher</given-names>
            <surname>Manning</surname>
          </string-name>
          .
          <year>2005</year>
          .
          <article-title>Incorporating Non-local Information into Information Extraction Systems by Gibbs Sampling</article-title>
          .
          <source>In Proceedings of the 43rd Annual Meeting on Association for Computational Linguistics, ACL '05</source>
          , pages
          <fpage>363</fpage>
          -
          <lpage>370</lpage>
          , Stroudsburg, PA, USA. Association for Computational Linguistics.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <surname>Claire</surname>
            <given-names>Grover</given-names>
          </string-name>
          , Richard Tobin, Kate Byrne, Matthew Woollard, James Reid, Stuart Dunn, and
          <string-name>
            <given-names>Julian</given-names>
            <surname>Ball</surname>
          </string-name>
          .
          <year>2010</year>
          .
          <article-title>Use of the Edinburgh geoparser for georeferencing digitized historical collections</article-title>
          .
          <source>Philosophical Transactions of the Royal Society of London A: Mathematical, Physical and Engineering Sciences</source>
          ,
          <volume>368</volume>
          :
          <fpage>3875</fpage>
          -
          <lpage>3889</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>Rudolf</given-names>
            <surname>Haensch</surname>
          </string-name>
          and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Mackensen</surname>
          </string-name>
          .
          <year>2011</year>
          .
          <article-title>Das tripolitanische Kastell Gheriat el-Garbia im Licht einer neuen spa¨tantiken Inschrift: Am Tag, als der Regen kam</article-title>
          .
          <source>Chiron</source>
          ,
          <volume>41</volume>
          :
          <fpage>263</fpage>
          -
          <lpage>286</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <source>Ju¨rgen Hammerstaedt</source>
          .
          <year>2009</year>
          .
          <article-title>Warum Simonides den Artemidorpapyrus nicht ha¨tte fa¨lschen ko¨nnen: Eine seltene Schreibung fu¨r Tausender in Inschriften und Papyri</article-title>
          . Chiron,
          <volume>39</volume>
          :
          <fpage>323</fpage>
          -
          <lpage>338</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>Bernhard</given-names>
            <surname>Linke</surname>
          </string-name>
          .
          <year>2009</year>
          .
          <article-title>Jupiter und die Republik. Die Entstehung des europa¨ischen Republikanismus in der Antike</article-title>
          . Chiron,
          <volume>39</volume>
          :
          <fpage>339</fpage>
          -
          <lpage>358</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>Marco</given-names>
            <surname>Lui</surname>
          </string-name>
          and
          <string-name>
            <given-names>Timothy</given-names>
            <surname>Baldwin</surname>
          </string-name>
          .
          <year>2011</year>
          .
          <article-title>Cross-domain feature selection for language identification</article-title>
          .
          <source>In Proceedings of 5th International Joint Conference on Natural Language Processing</source>
          , pages
          <fpage>553</fpage>
          -
          <lpage>561</lpage>
          ,
          <string-name>
            <surname>Chiang</surname>
            <given-names>Mai</given-names>
          </string-name>
          , Thailand, November.
          <source>Asian Federation of Natural Language Processing.</source>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <given-names>Johannes</given-names>
            <surname>Nolle</surname>
          </string-name>
          ´ and
          <string-name>
            <given-names>Sylvia</given-names>
            <surname>Wartner</surname>
          </string-name>
          .
          <year>1987</year>
          .
          <article-title>Ein tu¨ckischer Iotazismus in einer milesischen Inschrift</article-title>
          . Chiron,
          <volume>17</volume>
          :
          <fpage>361</fpage>
          -
          <lpage>364</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <given-names>A. Palmero</given-names>
            <surname>Aprosio</surname>
          </string-name>
          and
          <string-name>
            <given-names>G.</given-names>
            <surname>Moretti</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Italy goes to Stanford: a collection of CoreNLP modules for Italian. ArXiv e-prints.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <surname>Patrick</surname>
            <given-names>Sa</given-names>
          </string-name>
          ¨nger.
          <year>2010</year>
          .
          <article-title>Kommunikation zwischen Pra¨torianerpra¨fekt und Statthalter: Eine Zweitschrift von IvE Ia 44</article-title>
          .
          <string-name>
            <surname>Chrion</surname>
          </string-name>
          ,
          <volume>40</volume>
          :
          <fpage>89</fpage>
          -
          <lpage>102</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <given-names>Helmut</given-names>
            <surname>Schmid</surname>
          </string-name>
          .
          <year>1999</year>
          .
          <article-title>Improvements in Part-ofSpeech Tagging with an Application to German</article-title>
          . In Susan Armstrong,
          <string-name>
            <given-names>Kenneth</given-names>
            <surname>Church</surname>
          </string-name>
          , Pierre Isabelle, Sandra Manzi, Evelyne Tzoukermann, and David Yarowsky, editors,
          <source>Natural Language Processing Using Very Large Corpora</source>
          , volume
          <volume>11</volume>
          of Text,
          <source>Speech and Language Processing</source>
          , pages
          <fpage>13</fpage>
          -
          <lpage>26</lpage>
          . Kluwer Academic Publishers, Dordrecht.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <string-name>
            <surname>Erik F. Tjong Kim</surname>
            Sang and
            <given-names>Sabine</given-names>
          </string-name>
          <string-name>
            <surname>Buchholz</surname>
          </string-name>
          .
          <year>2000</year>
          .
          <article-title>Introduction to the CoNLL-2000 Shared Task: Chunking</article-title>
          .
          <source>In Proceedings of the 2Nd Workshop on Learning Language in Logic and the 4th Conference on Computational Natural Language Learning - Volume 7, ConLL '00</source>
          , pages
          <fpage>127</fpage>
          -
          <lpage>132</lpage>
          , Stroudsburg, PA. Association for Computational Linguistics.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          <string-name>
            <surname>Erik F. Tjong Kim Sang and Fien De Meulder</surname>
          </string-name>
          .
          <year>2003</year>
          .
          <article-title>Introduction to the conll-2003 shared task: Language-independent named entity recognition</article-title>
          .
          <source>In Walter Daelemans and Miles Osborne</source>
          , editors,
          <source>Proceedings of CoNLL-2003</source>
          , pages
          <fpage>142</fpage>
          -
          <lpage>147</lpage>
          . Edmonton, Canada.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>