<!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>Detecting Entity Descriptions from Chinese Historical Texts</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ye Xia</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bin Wang</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Linxuan Yu</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xiaoci Lin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hui Li</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>College of Artificial Intelligence, Nanjing Agricultural University</institution>
          ,
          <addr-line>210095, Nanjing</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>College of Humanities and Social Development, Nanjing Agricultural University</institution>
          ,
          <addr-line>210095, Nanjing</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>College of Sciences, Nanjing Agricultural University</institution>
          ,
          <addr-line>210095, Nanjing</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Driven by an increasing number of digitized historical documents in machine-readable formats, researchers from various disciplines actively participate in the information extraction and exploration of historical documents, especially the recognition and classification of named entities in large-scale texts. Most existing studies focus on the identification of flat entities, however, the nested structures inside entities are often overlooked. In this paper, we focus on the extraction of nested entities in Chinese local gazetteers spanning over 8 centuries. We ifrst propose an annotation guideline for two entity types and five entity categories in local gazetteers, which can be easily adapted to other domains. Then we utilize three popular span-based NER approaches in the context of Chinese historical texts, and analyze the corresponding results. Our preliminary study can enhance the existing geographical resources with entity information and be a reference for similar tasks within the field of digital humanities.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Chinese historical texts</kwd>
        <kwd>nested entity</kwd>
        <kwd>span-based NER</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Methodology</title>
      <p>Within the scope of Chinese local gazetteers, our major focus is about two entity types, namely flat
and nested entities. Five categories within these two entity types are defined and labeled with diferent
tags：PRO for local product names, PER for person names, LOC for location names, BOK for book
names, and TIM for temporal expressions.</p>
      <p>Let a sentence  ∈  be denoted as a sequence of tokens  = {1, 2, ..., }, where  denotes
the ℎ token in the sequence. Let C denote a set of pre-defined categories  = {1, 2, ..., }. The
goal of our task is to predict a list of tuples  = {&lt; ℎ, , 1, 1 &gt;, &lt; ℎ, , 2, 2 &gt;, ..., &lt;
 1 1 2 2 
ℎ, , ,  &gt;}, each of which refers to an entity mentioned in the sentence. ℎ and 
represent the head index and the tail index of the ℎ entity mention.  is the predicted entity category
and  corresponds to the depth of this mention.  is the number of entity mentions detected within
the given sentence. In this study, we consider the flat entity as a special case of the nested entity with
the entity depth of zero (see Figure 1).</p>
      <p>Flat entities are annotated for all entity categories and nested entities are annotated within the
categories of persons, locations and books in order to achieve a fine-grained entity detection. For
instance, the category LOC covers the geographical names of a certain place, such as village, town or
city, ′′高郵狀元墩′′ (Gaoyou Zhuangyuandun), the entity mention contains an embedded county name
′′高郵′′ (Gaoyou), so we consider this location name as a nested entity mention.</p>
      <p>Our task here is to find all occurrences of the entities that belong to the categories indicated above,
and use pre-defined tags to mark the beginning, the end, and the nested structure of each mention span.
It should be noted that the tag sets not only refer to the full name of an entity, but also to the specific
features embedded in a given entity. For example, the nested entity ′′波斯橙′′ (Bosi Cheng, Persian
Orange) , the tag LOC is used inside the mention to capture the latent geographic feature (波斯, Persian)
of this local product. We ask domain experts to manually assigned tags to each entity mention in texts
and consult with each other or refer to external resources in case of entity ambiguities or uncertainties.</p>
      <p>Considering the limited data scale, we prefer to fine-tune the pre-trained BERT-based model for
NER task on classical Chinese texts instead of training our own from scratch. The span-based methods
have advantages in easily identifying nested entities in diferent sub-sequences, therefore we intend to
tackle the NER-nested task with three popular span-based approaches, namely MRC, Global Pointer
and BERT-span, respectively.</p>
      <p>
        • MRC. Li et al.[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] formulated the NER task as a Machine Reading Comprehension (MRC) task and
transformed the tagging-style annotated dataset to a set of tuples {question, answer, context} to
tackle nested entity problem.
• Global Pointer. Su et al.[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] leverages the relative positions through a multiplicative attention
mechanism to identify the nested entities.
• BERT-Span. This approach leverages the strengths of BERT and span-based strategy to tackle the
complexity of NER-nested task. This approach can efectively identify and extract the hierarchical
relationships between nested entities.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Experiment and Evaluation</title>
      <p>
        In this study, we use a digital collection of Chinese local gazetteers from the 12th to 20th century [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
After text correction of misspellings, integration of metadata and manually annotation of entities, our
dataset contains 25,353 items of product descriptions and 940,189 entity labels. Table 1 shows the entity
distribution of our dataset and we divide the dataset into three subsets, i.e., training, development
and test set, with a ratio of 7:2:1. Apart from generic location names, we notice that there is a large
proportion of nested entities containing ′′LOC′′ labels inside, which correspond to the ′′Geo-related′′ in
Table 1.
      </p>
      <p>
        We investigate the state-of-the-art (SOTA) pre-training language models for classical Chinese, and
we find that BERT-ancient-Chinese is the best fit for our task since it outperforms others [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. We
ifne-tune it on our annotated gazetteer dataset for the NER task with three span-based approaches,
respectively. Table 2 illustrates the precision, recall and F1 values of entities in five categories using
diferent span-based methods, and macro-average is calculated over all categories. We use bold to mark
the highest value of each category. According to Table 2, it seems that Global Pointer outperforms
others on macro-average scores and MRC outperforms others on identification of entities from PRO,
LOC and PER categories.
      </p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>In this study, we focus on the nested entity extraction from large-scale Chinese local gazetteers. We
utilize three popular span-based approaches with fine-tuning BERT-ancient-Chinese on our
domainspecific dataset and the corresponding experimental results show the efectiveness and feasibility of
span-based NER on Chinese historical texts. The extracted entity mentions in this ongoing study can
enrich the existed geographical resources with historical location names and local products. Our further
step will be the entity linking with external resources, which will facilitate domain experts in the
interpretation and understanding of the fine-grained knowledge embedded in the historical texts.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>This work is supported by the Fundamental Research Funds for the Chinese Central Universities
(SKQY2022003) and the National Key Research Project on Rare-Book Collections (22GJK004). The
authors are especially thankful to Prof. Dr. Ping Bao for the insightful comments, administrative
technical support, and materials used for experiments. We are also grateful to Mr. Shun Zou for
individual efort and encouragement to the successful completion of this paper.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Won</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Murrieta-Flores</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Martins</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Ensemble named entity recognition (NER): evaluating NER tools in the identification of place names in historical corpora</article-title>
          .
          <source>Frontiers in Digital Humanities</source>
          ,
          <volume>5</volume>
          , p.
          <fpage>2</fpage>
          . doi:
          <volume>10</volume>
          .3389/fdigh.
          <year>2018</year>
          .
          <volume>00002</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Abadie</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Carlinet</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chazalon</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Duménieu</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          (
          <year>2022</year>
          ).
          <article-title>A benchmark of named entity recognition approaches in historical documents application to 19th century French directories</article-title>
          .
          <source>International Workshop on Document Analysis Systems</source>
          , pp.
          <fpage>445</fpage>
          -
          <lpage>460</lpage>
          . Cham: Springer International Publishing. doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>031</fpage>
          -06555-2_
          <fpage>30</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Feng</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Meng</surname>
          </string-name>
          , Y.,
          <string-name>
            <surname>Han</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          (
          <year>2020</year>
          ).
          <article-title>A unified MRC framework for named entity recognition</article-title>
          .
          <source>Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics</source>
          , pp.
          <fpage>5849</fpage>
          -
          <lpage>5859</lpage>
          .
          <fpage>10</fpage>
          .18653/v1/
          <year>2020</year>
          .acl-main.
          <volume>519</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Su</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Murtadha</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pan</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hou</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sun</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wen</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <year>2022</year>
          .
          <article-title>Global pointer: Novel eficient span-based approach for named entity recognition. arXiv preprint</article-title>
          . https://doi.org/10.48550/arXiv.2208.03054.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          (
          <year>2022</year>
          ).
          <article-title>Exploring the Rice Cultivars in Large-Scale Chinese Local Gazetteers: A Computational Approach</article-title>
          . Plants,
          <volume>11</volume>
          (
          <issue>23</issue>
          ), p.
          <fpage>3403</fpage>
          . https://doi.org/10.3390/plants112334
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>X.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Zhang</surname>
          </string-name>
          and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sun</surname>
          </string-name>
          .
          <article-title>Chinese medical short text matching model based on fine-tuning BERT-Attention-</article-title>
          <string-name>
            <surname>BiLSTM.</surname>
          </string-name>
          (
          <year>2023</year>
          ).
          <source>23rd International Conference on Computer and Information Science</source>
          , pp.
          <fpage>91</fpage>
          -
          <lpage>96</lpage>
          . doi:
          <volume>10</volume>
          .1109/ICIS57766.
          <year>2023</year>
          .
          <volume>10210224</volume>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>