<!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>NCU-IISR: Pre-trained Language Model for CANTEMIST Named Entity Recognition</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jen-Chieh Han</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Richard Tzong-Han Tsai</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science and Information Engineering, National Central University</institution>
          ,
          <addr-line>Taoyuan</addr-line>
          ,
          <country country="TW">Taiwan</country>
        </aff>
      </contrib-group>
      <fpage>347</fpage>
      <lpage>351</lpage>
      <abstract>
        <p>Since BERT has brought a huge improvement in various NLP tasks, the great constructed pre-trained language model shows its power of being fine-tuned in other downstream tasks either. In this paper, NCU-IISR team adopted the Spanish BERT, BETO, as our pre-trained model, and the model was finetuned on CANTEMIST Named Entity Recognition (NER) data. Besides, we also compared it with another fine-tuned version, which was trained on an external Spanish medical text. Finally, our best score achieved an F1-measure of 0.85 in the oficial test set result for CANTEMIST-NER task.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Electronic Health Records</kwd>
        <kwd>Named Entity Recognition</kwd>
        <kwd>Deep Learning</kwd>
        <kwd>Pre-trained Language Model</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>task summary, CANTEMIST explores the automatic assignment of eCIE-O-3.1 codes
(Morfología neoplasia) to health-related documents in the Spanish language. In this project, we
only participate in CANTEMIST-NER task, and the task requires finding automatically tumor
morphology mentions, that is, the start and the end character ofsets of tumor morphology in
medical documents.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Pre-processing</title>
      <p>The oficial dataset provides a set of text files with their corresponding annotation files. It
includes 501 clinical cases in the training set, 500 documents in the dev(elopment) set, and
5231 documents in test and background set (only 300 documents test set are evaluated on the
predictions). The dev set is divided into two subsets and each contains 250 documents. The
second subset (dev-2) is released later than the first one (dev-1). We only used the dev-1 set
because we did not have suficient time to retrain our system on the whole dev set. Before we
started training a model, we had to transform these input data into NER format. Thus, given a
text with annotated name entities (NEs), we divided it into tokens and whether a token was in
a NE (gold label).</p>
      <p>
        First, we took GENIA Tagger’s tokenizer1, which was often used in biomedical tasks, to
separate input text into tokens. If a token was in a NE, we gave it a label based on where it was
located in NE positions. It is called IOB2 tag scheme [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Because we adopted BERT [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] method
to train the NER model, and there was another tokenizer called WordPiece2. Therefore, an input
token would be tokenized again and became word pieces with the vocabulary dictionary. Each
label of tokens also expanded its numbers like word pieces and set the new one as the default
label id. The final NER input format is shown in Table 1.
microcítico de pulmón. There are label  (eginning),  (nside) and  (utside)
      </p>
      <sec id="sec-2-1">
        <title>Token</title>
        <p>Car
##cino
##ma
micro
##cí
##tico
de
.
pulmón</p>
      </sec>
      <sec id="sec-2-2">
        <title>Label</title>
      </sec>
      <sec id="sec-2-3">
        <title>None</title>
      </sec>
      <sec id="sec-2-4">
        <title>None</title>
      </sec>
      <sec id="sec-2-5">
        <title>None</title>
        <p>None





2https://github.com/google-research/bert/blob/master/tokenization.py</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Methods</title>
      <p>In Cantemist-NER task, we submitted two prediction results, and the following subsection
describes their methods.</p>
      <sec id="sec-3-1">
        <title>3.1. Pre-trained Language Model</title>
        <p>
          Bidirectional Encoder Representations from Transformers (BERT) [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] is a method of pre-training
language representations and can be adapted to many natural language processing (NLP) tasks
handily in fewer computational resources. BERT can use the same structure to be fine-tuned in
various NLP tasks but also achieves state-of-the-art results.
        </p>
        <p>
          Although BERT is written in English, they also provide Multilingual BERT, which contains
over 100 languages. Because CANTEMIST-NER is a Spanish language dataset, Multilingual
BERT3 may not be suficient. Then, we surveyed possible pre-trained language models for
Spanish and found a Spanish BERT, called BETO [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] which has higher performances than
Multilingual BERT, in Github. BETO is a BERT model and trained on over 300M lines of Spanish
corpus such as Spanish Wikis. We adopted it as our pre-trained language model using a tool
Transformers [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. It adds a classification layer after BETO sequence output dropout.
CantemistNER dev-1 result of BETO is shown in Table 2. We tuned the parameter ℎ from 3 to 50 and
chose the best F1 model as our first parameter setting of the submitted model.
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Spanish Biomedical Data</title>
        <p>
          Because BETO is trained in the Spanish general domain, we thought that adding the last layer
with clinical data before fine-tuning in NER may increase the final performance. Besides, we
saw one team use the Spanish Health Corpus and got 90% F1 in last year [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. Therefore, we
found the resource and decided to take all Spanish text files from MedlinePlus in TEI format [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]
instead of other XML file format. Then, we input raw texts over 37 thousand lines into BETO
ifrst. We called it BETO+Bio. Cantemist-NER dev-1 result of BETO+Bio is shown in Table 3. As
the above model, we used the diferent ℎ to train a model and found the top one as our
second parameter setting of the submitted model.
        </p>
        <p>3https://github.com/google-research/bert/blob/master/multilingual.md</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Results</title>
      <p>We tried diferent hyperparameters to train two models on training and dev-1 sets. Our final
Cantemist-NER test results are shown in Table 4. To our surprise, the best one is BETO and
achieved an F1-measure of 0.85 which is slightly higher than BETO+Bio by 0.005. It may come
from that the time limitation makes us unable to try diferent ways to transfer learning on the
text of MedlinePlus.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>Our NCU-IISR team constructed two models to predict Cantemist-NER labels, and both results
are above 0.84 F1-measure. It showed that using the pre-trained language model can achieve
high performance. We considered that adding a Spanish biomedical layer in the model would
have a better result at first, however it got a slightly lower score. It might come from that
the fine-tuned data was not enough, or we did not process text input properly before training.
However, we believe that combining biomedical data before training in Cantemist-NER has the
potential to help the model more fit in this task. Therefore, we would like to try possible ways
in future work or find some errors to fix to improve results.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>Appreciating Po-Ting Lai for giving us suggestions during the challenge and revising the
working note.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Miranda-Escalada</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Farré</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Krallinger</surname>
          </string-name>
          ,
          <article-title>Named entity recognition, concept normalization and clinical coding: Overview of the cantemist track for cancer text mining in spanish, corpus, guidelines, methods and results</article-title>
          ,
          <source>in: Proceedings of the Iberian Languages Evaluation Forum (IberLEF</source>
          <year>2020</year>
          ),
          <source>CEUR Workshop Proceedings</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>H.-J.</given-names>
            <surname>Dai</surname>
          </string-name>
          , P.-T. Lai,
          <string-name>
            <given-names>Y.-C.</given-names>
            <surname>Chang</surname>
          </string-name>
          , R. T.
          <string-name>
            <surname>-H. Tsai</surname>
          </string-name>
          ,
          <article-title>Enhancing of chemical compound and drug name recognition using representative tag scheme and fine-grained tokenization</article-title>
          ,
          <source>Journal of cheminformatics 7</source>
          (
          <year>2015</year>
          )
          <article-title>S14</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          , M.-
          <string-name>
            <given-names>W.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Toutanova</surname>
          </string-name>
          , Bert:
          <article-title>Pre-training of deep bidirectional transformers for language understanding</article-title>
          , arXiv preprint arXiv:
          <year>1810</year>
          .
          <volume>04805</volume>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J.</given-names>
            <surname>Cañete</surname>
          </string-name>
          , G. Chaperon,
          <string-name>
            <given-names>R.</given-names>
            <surname>Fuentes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Pérez</surname>
          </string-name>
          ,
          <article-title>Spanish pre-trained bert model and evaluation data</article-title>
          , in: to appear
          <source>in PML4DC at ICLR</source>
          <year>2020</year>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>T.</given-names>
            <surname>Wolf</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Debut</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Sanh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chaumond</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Delangue</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Moi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Cistac</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Rault</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Louf</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Funtowicz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Davison</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Shleifer</surname>
          </string-name>
          , P. von Platen, C. Ma,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Jernite</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Plu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. L.</given-names>
            <surname>Scao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Gugger</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Drame</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Lhoest</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Rush</surname>
          </string-name>
          ,
          <article-title>Huggingface's transformers: State-of-the-art natural language processing</article-title>
          , ArXiv abs/
          <year>1910</year>
          .03771 (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Stoeckel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Hemati</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mehler</surname>
          </string-name>
          , When Specialization Helps:
          <article-title>Using Pooled Contextualized Embeddings to Detect Chemical and Biomedical Entities in Spanish</article-title>
          , in: Proceedings of the International Workshop on BioNLP Open Shared
          <string-name>
            <surname>Tasks (BioNLP-OST)</surname>
          </string-name>
          ,
          <source>Association for Computational Linguistics SIGDAT and Asian Federation of Natural Language Processing</source>
          ,
          <year>2019</year>
          . Accepted.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M.</given-names>
            <surname>Villegas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Intxaurrondo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gonzalez-Agirre</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Marimon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Krallinger</surname>
          </string-name>
          ,
          <article-title>The mespen resource for english-spanish medical machine translation and terminologies: census of parallel corpora, glossaries and term translations</article-title>
          , LREC MultilingualBIO:
          <string-name>
            <surname>Multilingual Biomedical Text Processing (Malero</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krallinger</surname>
            <given-names>M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gonzalez-Agirre</surname>
            <given-names>A</given-names>
          </string-name>
          , eds.) (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>