<!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>TIAD 2019 Shared Task: Leveraging Knowledge Graphs with Neural Machine Translation for Automatic Multilingual Dictionary Generation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Daniel Torregrosa</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mihael Arcan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sina Ahmadi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>John P. McCrae</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Insight Centre for Data Analytics Data Science Institute National University of Ireland Galway</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <abstract>
        <p>This paper describes the di erent proposed approaches to the TIAD 2019 Shared Task, which consisted in the automatic discovery and generation of dictionaries leveraging multilingual knowledge bases. We present three methods based on graph analysis and neural machine translation and show that we can generate translations without parallel data. 1 { a graph-based approach where loops of length four are searched in the Apertium [2] dictionaries in order to discover new translations; { a path-based graph approach which retrieves the translation candidates based on translation inference using the language paths of the Apertium dictionaries;</p>
      </abstract>
      <kwd-group>
        <kwd>Neural machine translation</kwd>
        <kwd>Dictionary generation</kwd>
        <kwd>Automatic inference</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>The growing amount of semantically structured monolingual, as well as
multilingual resources, such as dictionaries or knowledge graphs (KGs), o ers an
excellent opportunity to explore, link and to enrich them with possibly missing
multilingual knowledge. Since a manual translation of such resources is very
time consuming and expensive, this work focuses on the automatic generation
of dictionary entries, which is the objective of the Translation Inference Across
Dictionaries (TIAD-2019) Shared Task.2 In this task, the participants should
submit dictionaries containing pairs of source and target language words or
expressions, the part of speech (POS) of the entry and a con dence score.</p>
      <p>In this work, we propose several di erent approaches for this task:
1 The datasets used and the trained NMT models are available at
server1.nlp.insightcentre.org/tiad2019/</p>
      <sec id="sec-1-1">
        <title>2 tiad2019.unizar.es/</title>
        <p>{ a multi-way neural machine translation (NMT) model trained with
multiparallel English and Spanish, Italian and Portuguese and French and
Romanian corpora and tuned with the dictionaries produced in the other approaches.
This approach is further ltered using monolingual dictionaries.</p>
        <p>PT</p>
        <p>GL
IT</p>
        <p>CA
FR</p>
        <p>EO</p>
        <p>RO
ES</p>
        <p>EN</p>
        <p>EU
We devised a heuristic that focuses on producing high precision entries, even
though the recall might su er. The model builds a graph with all the bilingual
word-POS pairs in all the Apertium dictionaries that can be used as a pivot
between Portuguese, French and English, that is, all the language pairs with thick
lines in Figure 1. Whenever we nd a length 4 cycle in the graph, we connect all
the nodes in the cycle. All discovered edges for the respective language pair are
used as dictionary. Figure 2 shows an example of discovered translations.
Similar to the cycle-based method, we use another heuristic technique, which aims
to create translation candidates by traversing the paths between the source and
the target languages in the Apertium language graph. The candidate translations
T are weighted with respect to the path length and the frequency. In this</p>
        <sec id="sec-1-1-1">
          <title>ES:antiguo</title>
        </sec>
        <sec id="sec-1-1-2">
          <title>FR:antique</title>
        </sec>
        <sec id="sec-1-1-3">
          <title>EN:antique</title>
        </sec>
        <sec id="sec-1-1-4">
          <title>EO:antikva</title>
        </sec>
        <sec id="sec-1-1-5">
          <title>EU:zahar</title>
        </sec>
        <sec id="sec-1-1-6">
          <title>EN:ancient</title>
          <p>section, language graph refers to the Apertium dictionary graph (Figure 1) and
translation graph refers to a graph where vertices represent a word and edges
represent the translations in other languages. Figure 3 illustrates the translation
graph of the word spring as a noun in English based on the language path
English!Basque!Spanish!French!Esperanto!Catalan!Portuguese.</p>
          <p>
            The basic idea behind pivot-oriented translation inference is the transitivity
assumption of translations. If wp, a pivot word in the dictionary Dp, has the
translation equivalents wi and wj in dictionaries Dp!1 and Dp!2 respectively,
then wi and wj may be equivalents in the D1!2 dictionary. Although the
pivotoriented approach can mostly create accurate translations for monosemous words
(depending on the lexicon completeness), this oversimpli es for polysemous words
leading to incorrect translations [
            <xref ref-type="bibr" rid="ref6">6</xref>
            ].
          </p>
          <p>For the current task, we have considered all the simple paths, i.e. paths
without any repeating vertex, starting from and ending with the goal languages
of the shared task, of which there are 92, 67 and 58 simple paths between
Portuguese!French, French!English and English!Portuguese, respectively. As
the language graph is undirected, the paths between the vertices are identical in
each direction. For instance, the dictionary paths from English to Portuguese are
the same as those from Portuguese to English.</p>
          <p>In order to describe the likelihood of a translation being correct, we introduce
the following weighting factor:
wt = f requency(t)
l
(1)
where wt is the weight of the translation candidate t 2 T , f requency(t) is the
number of times translation t is reached, 2 (0, 1) is a penalisation constant and
l is the length of the path leading to wt. l penalises the translation candidates
in a way that paths of lower length and higher frequency get a lower weight.
On the other hand, a longer translation path results in a lower weight factor.
For instance, in the translation graph in Figure 3, the frequency of the words
primavera, font and origem is respectively 2, 1 and 1 and the length of their
translation path is 7. For the current task, we set = 0:5 and have included the
part-of-speech tags in the inference.</p>
          <p>Finally, the weights are normalised such that Pt2T wt = 1.</p>
          <p>iturri
fuente
source
fonto
origen
font
brollador
origem
fonte
primavero
primavera</p>
          <p>primavera
printempo
spring
udaberri
primavera</p>
          <p>printemps
malguki</p>
          <p>muelle
English (en) Basque (eu)</p>
          <p>Spanish (es)</p>
          <p>French (fr) Esperanto (eo)</p>
          <p>
            Catalan (ca) Portuguese (pt)
To perform experiments on NMT models with a minimal set of parallel data, i.e.
for less-resourced languages, we trained a multi-source and multi-target NMT
model [
            <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
            ] with well-resourced language pairs. In our work, we have chosen
the part of the parallel corpora belonging to the Romance language family, i.e.
Spanish, Italian, French, Portuguese, Romanian, as well as English. To train the
multi-way NMT system, we restricted the language pairs to English-Spanish,
French-Romanian and Italian-Portuguese, as shown with a dotted line in Figure 1.
Continuous training with a discovered dictionary To allow the NMT
model to align words in the embedding space between the language pairs of
the task, we used the trained multi-way model3 and continued the training of
the network based on the output of the approaches presented in Section 2.1
and Section 2.2. Without this procedure, the initial multi-way system could not
generate a translation of the targeted language pairs and would instead generate
translations into the language paired in the training; e.g. when requesting French
to English translations, the system generated Romanian, as the multi-way model
only knows how to translate between English and Spanish, between French and
Romanian and between Italian and Portuguese.
          </p>
          <p>For the continuous training of the multi-way model, we experimented with
two di erent datasets: each one of the dictionaries generated following the cycle
(Section 2.1) and path (Section 2.2) strategies.</p>
          <p>Filtering The NMT models were trained without POS information; hence, the
NMT model is unable to assign a POS tag to each predicted translation. As the
3 Trained on English-Spanish, French-Romanian and Italian-Portuguese parallel data
25;594</p>
          <p>TIAD 2019 shared task required POS information, we used a further ltering
strategy. We used monolingual Portuguese, French and English dictionaries
extracted from Wiktionary, and, for each translation prediction, we examined
if the word exists in both dictionaries with the same POS tag.4 One entry is
generated for each shared POS tag.</p>
          <p>For example, targeting English to Portuguese, when we request the translation
for snake the system generates serpente; snake appears both as a noun and a
verb in the English Wiktionary, but serpente only appears as a noun in the
Portuguese Wiktionary. Hence, we generate an entry in the English-Portuguese
dictionary where the noun snake has serpente as a possible translation. As a side
e ect this approach removes those words that are incorrectly generated due to
the use of subword units, and in ected words (i.e. words not in a canonical form)
that are seldom included in dictionaries.
2.4</p>
          <p>Datasets
For the cycle (Section 2.1) and path (Section 2.2) strategies, we used the Apertium
dictionaries5 shown in Figure 1.</p>
          <p>
            In order to train the multi-way model described in Section 2.3, we used the
Directorate-General for Translation (DGT) corpus [
            <xref ref-type="bibr" rid="ref8">8</xref>
            ]. The English, Spanish,
French, Romanian, Italian and Portuguese languages were selected to train
the multi-way NMT system. We used the same distribution of the dataset, as
described in [
            <xref ref-type="bibr" rid="ref1">1</xref>
            ].
2.5
          </p>
          <p>
            Neural Machine Translation Toolkit
We used OpenNMT [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ], a generic deep learning framework mainly specialised
in sequence-to-sequence models covering a variety of tasks such as machine
translation, summarisation, speech processing and question answering as NMT
4 The POS tags in Wiktionary are di erent for each language; we mapped each
language-speci c POS into our generic taxonomy for this task.
5 Version cfc5995c5369ddb158cd266fcb8d4b74ed8dbdd0.
          </p>
        </sec>
        <sec id="sec-1-1-7">
          <title>SYSTEM</title>
        </sec>
        <sec id="sec-1-1-8">
          <title>PRECISION</title>
        </sec>
        <sec id="sec-1-1-9">
          <title>RECALL F1</title>
        </sec>
        <sec id="sec-1-1-10">
          <title>COVERAGE</title>
          <p>
            framework. Due to computational complexity, the vocabulary in NMT models
had to be limited. In order to overcome this limitation, we used byte pair encoding
(BPE) to generate subword units [
            <xref ref-type="bibr" rid="ref7">7</xref>
            ]. BPE is a form of data compression that
iteratively replaces the most frequent pair of bytes in a sequence with a single,
unused byte.
3
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Participation in the task</title>
      <p>The Translation Inference Across Dictionaries 2019 Shared Task focuses on
the automatic generation of dictionary entries in order to enrich knowledge
graphs with multilingual knowledge. The task focuses on the generation of
French-English, Portuguese-English and French-Portuguese dictionaries. The
organisers recommended the use of the Apertium RDF dataset6 (Figure 1 shows
the languages in Apertium RFT used by our submission), although the usage of
other resources, other than parallel data between the targeted languages, was
permitted.</p>
      <p>Evaluation was carried out by the organisers of the task, using manually
compiled pairs of K Dictionaries as a gold standard. Precision, recall, F-measure
and coverage were reported and participants submitted 11 di erent submissions
to the task. The averaged results for all the di erent models can be seen in
Table 2 and the in-depth results for our submitted models can be seen in Table 3.
4</p>
    </sec>
    <sec id="sec-3">
      <title>Conclusion</title>
      <p>Despite the fact that we are using a straightforward approach to extract candidates
from Apertium RDF, the precision of our models rank among the highest for the</p>
      <sec id="sec-3-1">
        <title>6 linguistic.linkeddata.es/apertium/</title>
        <p>task. We demonstrate the multi-way NMT approach, which generates translations
without requiring any parallel data between the targeted languages. Additionally,
when using the path or NMT approaches to generate entries, a threshold can be
modi ed to obtain dictionaries with higher recall and lower precision or vice-versa,
what can be used to adapt the method for di erent use cases.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgment</title>
      <p>This publication has emanated from research supported in part by a research grant
from Science Foundation Ireland (SFI) under Grant Number SFI/12/RC/2289,
co-funded by the European Regional Development Fund, and the European
Union's Horizon 2020 research and innovation programme under grant agreement
No 731015, ELEXIS - European Lexical Infrastructure.</p>
      <p>U
4
C
E
N
U
:8 :4 :2 :1 :1 :1 :1 :1 :1 :1 :1 P</p>
      <p>P
:1 :2 :2 :2 :2 :2 :2 :2 :2 :2 R</p>
      <p>N</p>
      <p>L
0 0 0 0 0 0 0 0 0 0 0
r
o ie :1 :1 :1 :1 :1 :1 :1 :1 :1 :1 :1 C
ld d 3 3 3 3 3 3 3 3 3 3 3
c T
ov ab
e
ra le
g
e 3</p>
      <p>.
) e</p>
      <p>s
f u
ro lt
th th
e e
.) b
y
l o :7 :7 :7 :7 :7 :7 :7 :7 :7 :7 :7 P
l f
5 5 5 5 5 5 5 5 5 5 5</p>
      <p>N
0 0 0 0 0 0 0 0 0 0 0
d e
i v :0 :0 :0 :0 :0 :0 :0 :0 :0 :0 :0 R LP</p>
      <p>7 7 7 7 7 7 7 7 7 7 7
t i 0 0 0 0 0 0 0 0 0 0 0 F Y</p>
      <p>o :11 :11 :11 :11 :11 :11 :11 :11 :11 :11 :11 1 C
th n</p>
      <p>L
:0 :2 :1 :1 :1 :1 :1 :1 :1 :1 :1 1 3</p>
      <p>P</p>
      <p>0 0 0 0 0 0 0 0 0 0 0
,) :8 :3 :1 :1 :1 :1 :0 :0 :0 :0 :0 P U</p>
      <p>9 9 9 9 9 N
:1 :2 :2 :2 :2 :2 :2 :2 :2 :2 R -N
6 1 3 4 4 4 4 4 4 4 M
:2 :1 :1 :1 :1 :1 :1 :1 :1 :1 1 C</p>
      <p>Y
1 6 4 4 3 3 3 3 3 3
e
a
s
u 0 0 0 0 0 0 0 0 0 0 0
r
e 3 4 1 1 1 1 1 1 1</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Mihael</surname>
            <given-names>Arcan</given-names>
          </string-name>
          , Daniel Torregrosa, Sina Ahmadi,
          <string-name>
            <given-names>and John P.</given-names>
            <surname>McCrae. Inferring Translation</surname>
          </string-name>
          <article-title>Candidates for Multilingual Dictionary Generation with Multi-Way Neural Machine Translation</article-title>
          .
          <source>In Proceedings of the Translation Inference Across Dictionaries (TIAD</source>
          <year>2019</year>
          ), Leipzig, Germany,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Mikel L Forcada</surname>
          </string-name>
          , Mireia Ginest -Rosell, Jacob Nordfalk,
          <string-name>
            <surname>Jim O'Regan</surname>
          </string-name>
          ,
          <string-name>
            <surname>Sergio</surname>
            <given-names>OrtizRojas</given-names>
          </string-name>
          , Juan Antonio Perez-Ortiz,
          <article-title>Felipe Sanchez-Mart nez, Gema Ram rez-</article-title>
          <string-name>
            <surname>Sanchez</surname>
          </string-name>
          , and
          <string-name>
            <surname>Francis M Tyers.</surname>
          </string-name>
          <article-title>Apertium: a free/open-source platform for rule-based machine translation</article-title>
          .
          <source>Machine translation</source>
          ,
          <volume>25</volume>
          (
          <issue>2</issue>
          ):
          <volume>127</volume>
          {
          <fpage>144</fpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Thanh-Le</surname>
            <given-names>Ha</given-names>
          </string-name>
          , Jan Niehues, and
          <string-name>
            <surname>Alexander</surname>
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Waibel</surname>
          </string-name>
          .
          <article-title>Toward multilingual neural machine translation with universal encoder and decoder</article-title>
          .
          <source>CoRR, abs/1611.04798</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Melvin</surname>
            <given-names>Johnson</given-names>
          </string-name>
          , Mike Schuster,
          <string-name>
            <surname>Quoc</surname>
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Le</surname>
          </string-name>
          , Maxim Krikun, Yonghui Wu, Zhifeng Chen, Nikhil Thorat, Fernanda Viegas, Martin Wattenberg, Greg Corrado, Macdu Hughes, and
          <article-title>Je rey Dean. Google's multilingual neural machine translation system: Enabling zero-shot translation</article-title>
          .
          <source>Transactions of the Association for Computational Linguistics</source>
          ,
          <volume>5</volume>
          :
          <fpage>339</fpage>
          {
          <fpage>351</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Guillaume</given-names>
            <surname>Klein</surname>
          </string-name>
          , Yoon Kim, Yuntian Deng, Jean Senellart, and
          <string-name>
            <given-names>Alexander</given-names>
            <surname>Rush</surname>
          </string-name>
          . Opennmt:
          <article-title>Open-source toolkit for neural machine translation</article-title>
          .
          <source>In Proceedings of ACL</source>
          <year>2017</year>
          ,
          <string-name>
            <given-names>System</given-names>
            <surname>Demonstrations</surname>
          </string-name>
          , pages
          <volume>67</volume>
          {
          <fpage>72</fpage>
          , Vancouver, Canada,
          <year>July 2017</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Xabier</given-names>
            <surname>Saralegi</surname>
          </string-name>
          , Iker Manterola, and Inaki San Vicente.
          <article-title>Analyzing methods for improving precision of pivot based bilingual dictionaries</article-title>
          .
          <source>In Proceedings of the Conference on Empirical Methods in Natural Language Processing</source>
          , pages
          <volume>846</volume>
          {
          <fpage>856</fpage>
          . Association for Computational Linguistics,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Rico</given-names>
            <surname>Sennrich</surname>
          </string-name>
          , Barry Haddow, and
          <string-name>
            <surname>Alexandra Birch.</surname>
          </string-name>
          <article-title>Neural Machine Translation of Rare Words with Subword Units</article-title>
          .
          <source>In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics</source>
          , volume
          <volume>1</volume>
          :
          <string-name>
            <given-names>Long</given-names>
            <surname>Papers</surname>
          </string-name>
          , pages
          <volume>1715</volume>
          {
          <fpage>1725</fpage>
          , Berlin, Germany,
          <year>August 2016</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Ralf</given-names>
            <surname>Steinberger</surname>
          </string-name>
          , Andreas Eisele, Szymon Klocek, Spyridon Pilos, and
          <article-title>Patrick Schluter. DGT-TM: A freely available Translation Memory in 22 languages</article-title>
          .
          <source>In Proceedings of the 8th International Conference on Language Resources and Evaluation (LREC12)</source>
          , pages
          <fpage>454</fpage>
          {
          <fpage>459</fpage>
          , Istanbul, Turkey, May
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>