<!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>EHU at TweetMT: Adapting MT Engines for Formal Tweets</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>In~aki Alegria</string-name>
          <email>inaki.alegria@ehu.eus</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mikel Artetxe</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gorka Labaka</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kepa Sarasola</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of the Basque Country</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper describes the participation of the IXA group from the UPV/EHU (University of the Basque Country) in the TweetMT shared task at the SEPLN-2015 conference. We have adapted existing MT engines for the es-eu and eu-es pairs, obtaining good results (better than other experiments reported in previous work). Three main aspects are described: resource compilation, engine adaptation and results.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        As the organizers of the workshop say in
the home page1 \the machine translation
of tweets is a complex task that greatly
depends on the type of data we work with.
The translation process of tweets is very
di erent from that of correct texts posted for
instance through a content manager. The
texts also vary in terms of structure, where
the latter include tweet-speci c features such
as hashtags, user mentions, and retweets,
among others." The translation of tweets
can be tackled as a direct translation
(tweet-to-tweet) or as an indirect translation
(tweet normalization to standard text, text
translation and, if needed, tweet generation)
        <xref ref-type="bibr" rid="ref3">(Kaufmann and Kalita, 2010)</xref>
        .
      </p>
      <p>
        When analyzing the released development
corpus we observed that most of the messages
were formal tweets, and we therefore decided
to face the problem following the direct
approach, adapting previous engines to the
structure of these texts. We have adapted
three systems:
an RBMT system named Matxin for the
es-eu pair
        <xref ref-type="bibr" rid="ref7">(Mayor et al., 2011)</xref>
        . It is
well known that automatic measures run
on a single reference tend to penalise
RBMT systems (rule-based machine
translation) compared to SMT systems
(statistical machine translation), but we
wanted to test the results.
two state-of-the-art SMT systems, one
for the es-eu pair and the other one for
the eu-es pair
        <xref ref-type="bibr" rid="ref4">(Labaka, 2010)</xref>
        .
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Resource Compilation from</title>
    </sec>
    <sec id="sec-3">
      <title>Microtexts</title>
      <p>Based on the development set provided,
preliminary work was carried out to obtain
useful resources to adapt the systems:
an out-of-vocabulary (OOV) dictionary
was obtained for Basque using our
Basque morphological analyzer. We
observed that the percentage of OOVs
was low and only few of them were
common in the development set. Even if
there are a very small number of entries,
we built a bilingual dictionary with the
most frequent OOVs (5 entries).
a dictionary of bilingual hashtags was
obtained by aligning hashtags (using a
simple program and manual revision)
from parallel tweets. After a manual
review of the pairs with more than two
occurrences, a dictionary of 60 pairs was
generated.</p>
      <p>Tweets of monolingual corpora from
previous shared tasks were compiled in order
to enrich the language models.</p>
      <p>
        Corpora from the TweetNorm shared
task
        <xref ref-type="bibr" rid="ref1">(Alegria et al., 2014)</xref>
        . Initial
collection of 227,855 Spanish tweets.
Corpora from the TweetLId shared task
        <xref ref-type="bibr" rid="ref9">(Zubiaga et al., 2014)</xref>
        . 8,562 Spanish
tweets and 380 Basque tweets.
      </p>
      <p>In order to increase the low volume of data
for the Basque LM we use a corpus of tweets
supplied by the CodeSyntax company2 which
has a tweet-oriented service for Basque called
UMAP3. They identify Twitter accounts that
use Basque and compile the tweets from
these users. Most of these accounts are
multilingual, so language identi cation was
a key next step. We used our language
identi er (LangId, a free language identi er
based on word and trigram frequencies
developed by the IXA group of the University
of the Basque Country, and which is
specialized in recognizing Basque and its
surrounding languages (Spanish, French and
English)) and lter candidates with high
percentage of OOVs (thus, priorizing formal
tweets and adding precision to the results
obtained from Langid) and compiled a corpus
of 454,790 tweets.
3</p>
    </sec>
    <sec id="sec-4">
      <title>Adaptation and Tuning of the</title>
    </sec>
    <sec id="sec-5">
      <title>MT Engines</title>
      <p>The RBMT system was adapted to the task
manually and two new models for the SMT
systems were trained and tuned.
3.1</p>
      <sec id="sec-5-1">
        <title>RBMT</title>
        <p>As mentioned, the Matxin system was
used for es-eu translation. Matxin is
an open source Spanish-to-Basque RBMT
engine which follows the traditional transfer
model. It consists of three main components:
1) analysis of the source sentence into a
dependency tree structure; 2) transfer from
the source language dependency tree to a
target language dependency structure; and 3)
2http://www.codesyntax.com
3http://umap.eu
generation of the output translation from the
target dependency structure.</p>
        <p>
          Matxin was adapted to the idiosyncratic
features of tweets (URLs, hashtags...).
For this purpose, the de-formatter module
in Matxin
          <xref ref-type="bibr" rid="ref7">(Mayor et al., 2011)</xref>
          was
enriched adding the following functions (the
deformatter module separates the format
information (RTF, HTML, etc.) from the
text to be translated, and the plain text is
sent to the analysis phase):
managed
as
sentence
        </p>
        <sec id="sec-5-1-1">
          <title>URLs are boundaries Hashtags at the begining or at the end of the tweet remain untranslated</title>
          <p>Hashtags inside the text are given for
translation. Some will be translated
(#Escocia / #Eskozia) while others
will remain untranslated (#Hackathon,
#Olasdeenergia)
IDs will receive the same treatment as
other named entities
3.2</p>
        </sec>
      </sec>
      <sec id="sec-5-2">
        <title>Corpora for SMT</title>
        <p>The adaptation and tuning of the SMT
systems was laborious. First of all, the
provided development corpus was divided
into 3 subsets: training (2,000 pairs),
tuning (1,500) and test (500). Because the
alignment of the corpus was automatically
done, we manually reviewed the training part
and observed that the error rate was high.
After discarding non-parallel tweets 1,444
pairs remained in the training corpus.</p>
        <p>
          We used a previously compiled parallel
corpus for the translation model. This 7.4
million segment corpus was compiled by the
Elhuyar Foundation and the University of
the Basque Country. It includes public
corpora, private corpora and a corpus built
by web-as-corpus paradigm
          <xref ref-type="bibr" rid="ref8">(San Vicente and
Manterola, 2012)</xref>
          . Also, the mentioned
training corpus (1,444 pairs from the
development corpus in the shared task) was
repeated 100 times for the bilingual model
(this is not done for the language model
because we use interpolation).
        </p>
        <p>For the language model, previous models
for Spanish and Basque were retrained
adding the corpora described in the previous
section.</p>
        <p>Table 1 shows the gures for the corpora
used.</p>
        <p>Bilingual</p>
        <sec id="sec-5-2-1">
          <title>Monolingual (es)</title>
        </sec>
        <sec id="sec-5-2-2">
          <title>Monolingual (eu)</title>
        </sec>
        <sec id="sec-5-2-3">
          <title>Sentences</title>
          <p>General 7,463,951
Tweets 1,444
General 28,823,939
Tweets 213,141
General 1,290,501
Tweets 454,800
The development of the system was carried
out using publicly available state-of-the-art
tools: the GIZA++ toolkit, the SRILM
toolkit and the Moses decoder. More
concretely, we followed the phrase-based
approach with standard parameters: a
maximum length of 80 tokens per sentence,
translation probabilities in both directions
with Good Turing discounting, word-based
translation probabilities (lexical model, in
both directions), a phrase length penalty and
the target language model. The weights were
adjusted using MERT tuning with n-best list
of size 100.</p>
          <p>For the idiosyncratic features of the
tweets we analyzed the errors when the
system was applied in the test extracted
from the development corpus and we
decided to implement the following pre- and
post-processing steps:</p>
          <p>Tokenization: special treatment of
hyphens (`-') before declension cases of
IDs, hashtags, gures, time...</p>
          <p>Post-processing: simple rules for xing
recurrent surface-errors: double hyphen
or colon, special symbols (e.g. `&gt;' is
used in Spanish but not in Basque) and
similar issues.
4</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Results and Discussion</title>
      <p>The systems prepared and tuned using the
development corpus were directly used to
process the test. So we presented two systems
for the eu-es pair (RBMT and SMT) and one
system (SMT) for the es-eu pair. For these
language pairs only another group presented
results (3 systems).</p>
      <p>
        Table 2 shows the results on the test
corpus provided. We use the most common
measures: BLEU and NIST
        <xref ref-type="bibr" rid="ref2">(Doddington,
2002)</xref>
        . Our SMT system was the best for
the eu-es pair, and the second (very close to
the rst) for the es-eu pair. As expected,
the RBMT system gets lower gures in the
metrics (only one reference is supplied) but it
is interesting to compare them with previous
results.
      </p>
      <p>
        We want to underline that the results for
the es-eu pair are better than previous results
reported in some papers
        <xref ref-type="bibr" rid="ref5 ref6">(Labaka et al., 2007;
Labaka et al., 2014)</xref>
        . More speci cally,
the BLEU gures for the RBMT system in
this task range from 0.1429 (baseline) to
0.2089 (improved system) and from 0.2257
(baseline) to 0.2635 (improved system) for
SMT; while in the last reference
        <xref ref-type="bibr" rid="ref5">(Labaka et
al., 2014)</xref>
        BLEU gures range from 0.0572 to
0.1172 using RBMT and around 0.145 using
SMT.
      </p>
      <p>These results are surprising if we consider
tweet texts in general, but note that all
tweets used in the shared-task are formal and
that the most of them were designed to be
multilingual (and so, perhaps, to be easily
translated). Therefore, we could say that the
task was easier than usual tasks in MT, at
least for this language pair.</p>
      <p>The good performance of the RBMT
system on the formal tweets was expected,
as syntax use to be simple in the short texts
from Twitter.</p>
      <p>In Table 3 there some examples of the
results. In sentences #4, #5 and #6
RBMT gets very food translations but in the
previous sentences the translations from the
SMT system are more precise. In the near
future we want to check if combining both
techniques improvements can be lead.</p>
      <p>We can draw the following general
conclusions:
These results cannot be extrapolated to
the general task of translating tweets.
Translating informal tweets will be much
harder.</p>
      <p>MT can help community managers
who manage multilingual Twitter
accounts. A Twitter oriented MT
post-editing system could be developed
and evaluated.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgments</title>
      <p>This work has been supported by the
Spanish MICINN project Tacardi (Grant
No. TIN2012-38523-C02-01). CodeSyntax
company and Elhuyar Foundation have
collaborated with us providing several
corpora for the translation and language
models. Thanks to Josu Azpillaga
(CodeSyntax) and to In~aki San Vicente, Igor
Leturia, Itziar Cortes and Justyna Pietrzak
(Elhuyar) for their assistance. We would
also like to thank the anonymous referees for
their comments and suggestions.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>Alegria</surname>
          </string-name>
          , Inaki, Nora Aranberri,
          <string-name>
            <surname>Pere R Comas</surname>
            , V ctor Fresno, Pablo Gamallo, Lluis Padro, Inaki San Vicente, Jordi Turmo, and
            <given-names>Arkaitz</given-names>
          </string-name>
          <string-name>
            <surname>Zubiaga</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <article-title>Tweetnorm es corpus: an annotated corpus for spanish microtext normalization</article-title>
          .
          <source>In Proceedings of LREC.</source>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <surname>Doddington</surname>
          </string-name>
          , George.
          <year>2002</year>
          .
          <article-title>Automatic evaluation of machine translation quality using n-gram co-occurrence statistics</article-title>
          .
          <source>In Proceedings of the second international conference on Human Language Technology Research</source>
          , pages
          <volume>138</volume>
          {
          <fpage>145</fpage>
          . Morgan Kaufmann Publishers Inc.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Kaufmann</surname>
            , Max and
            <given-names>Jugal</given-names>
          </string-name>
          <string-name>
            <surname>Kalita</surname>
          </string-name>
          .
          <year>2010</year>
          .
          <article-title>Syntactic normalization of twitter messages</article-title>
          .
          <source>In International conference on natural language processing</source>
          , Kharagpur, India.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>Labaka</surname>
          </string-name>
          , Gorka.
          <year>2010</year>
          .
          <article-title>Eusmt: incorporating linguistic information into smt for a morphologically rich language. its use in smt-rbmt-ebmt hybridation. Lengoaia eta Sistema Informatikoak Saila (UPV-EHU)</article-title>
          .
          <source>Donostia. 2010ko martxoaren 29a.</source>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <surname>Labaka</surname>
          </string-name>
          , Gorka, Cristina Espan~
          <article-title>a-Bonet, Llu s Marquez, and</article-title>
          <string-name>
            <given-names>Kepa</given-names>
            <surname>Sarasola</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <article-title>A hybrid machine translation architecture guided by syntax</article-title>
          .
          <source>Machine Translation</source>
          ,
          <volume>28</volume>
          (
          <issue>2</issue>
          ):
          <volume>91</volume>
          {
          <fpage>125</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <surname>Labaka</surname>
            , Gorka, Nicolas Stroppa, Andy Way, and
            <given-names>Kepa</given-names>
          </string-name>
          <string-name>
            <surname>Sarasola</surname>
          </string-name>
          .
          <year>2007</year>
          .
          <article-title>Comparing rule-based and data-driven approaches to spanish-to-basque machine translation</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <surname>Mayor</surname>
          </string-name>
          , Aingeru, In~aki Alegria,
          <string-name>
            <surname>Arantza D az De</surname>
            <given-names>Ilarraza</given-names>
          </string-name>
          , Gorka Labaka, Mikel Lersundi, and
          <string-name>
            <given-names>Kepa</given-names>
            <surname>Sarasola</surname>
          </string-name>
          .
          <year>2011</year>
          .
          <article-title>Matxin, an open-source rule-based machine translation system for basque</article-title>
          .
          <source>Machine translation</source>
          ,
          <volume>25</volume>
          (
          <issue>1</issue>
          ):
          <volume>53</volume>
          {
          <fpage>82</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>San</given-names>
            <surname>Vicente</surname>
          </string-name>
          , Inaki and
          <string-name>
            <given-names>Iker</given-names>
            <surname>Manterola</surname>
          </string-name>
          .
          <year>2012</year>
          .
          <article-title>Paco2: A fully automated tool for gathering parallel corpora from the web</article-title>
          .
          <source>In LREC</source>
          , pages
          <volume>1</volume>
          {
          <fpage>6</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <surname>Zubiaga</surname>
          </string-name>
          , Arkaitz, Inaki San Vicente, Pablo Gamallo, Jose Ramom Pichel, Inaki Alegria, Nora Aranberri, Aitzol Ezeiza, and V ctor Fresno.
          <year>2014</year>
          .
          <article-title>Overview of tweetlid: Tweet language identi cation at sepln 2014</article-title>
          .
          <article-title>TweetLID@SEPLN</article-title>
          . TweetLId workshop at SEPLN Conference. ceur-ws.
          <source>org/</source>
          Vol-
          <volume>1228</volume>
          /.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>