<!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>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Solving Three Czech NLP Tasks End-to-End with Neural Models</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jindrˇich Libovický</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rudolf Rosa</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jindrˇich Helcl</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Martin Popel</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute of Formal and Applied Linguistics, Faculty of Mathematics and Physics, Charles University</institution>
          ,
          <addr-line>Malostranské námeˇstí 25, 118 00 Praha, Czech republic</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <volume>2203</volume>
      <fpage>138</fpage>
      <lpage>143</lpage>
      <abstract>
        <p>In this work, we focus on three different NLP tasks: image captioning, machine translation, and sentiment analysis. We reimplement successful approaches of other authors and adapt them to the Czech language. We provide end-to-end architectures that achieve state-ofthe-art results on all of the tasks within a single sequence learning toolkit. The trained models are available both for download as well as in an online demo.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Traditionally, solving tasks such as machine translation or
sentiment analysis required complex processing pipelines
consisting of tools which transformed one explicit
representation of the data into another, with the structure
of the internal representations defined by the system
designer. In machine translation, we would devise explicit
word alignment links, extract phrase tables, train a
language model, etc.; in sentiment analysis, we could label
the data with part-of-speech tags, decode their syntactic
structure, and/or assign them with semantic labels. All of
these more-or-less linguistically motivated internal
representations are not inherently required to produce the
desired output, but have been devised as clever and useful
ways to break down the large and hard task into smaller
and manageable substeps.</p>
      <p>With the advent of end-to-end training of deep neural
networks (DNN), the need for most of this has been
eliminated. In the end-to-end learning paradigm, there is only
one model, directly trained to produce the desired outputs
from the inputs, without any explicit intermediate
representations. The system designer now only has to design a
rather generic architecture of the system. It mostly does
not enforce any complex explicit representations and
processing steps, but rather offers opportunities for the DNN
to devise its own notion of intermediate representations
and processing steps through training.</p>
      <p>This also means that similar architectures can be used
to solve very different tasks. Rather than by the nature of
the task itself, the structure of the DNN to use is mostly
determined by the structure of the input and output – e.g.
image inputs are processed by two-dimensional
convolutions, while text inputs are processed by one-dimensional
convolutions, recurrent units, and/or attentions;
classification can produce its output in one step, while text
generation is better done iteratively using recurrent decoders; etc.</p>
      <p>Thanks to that, a single general framework can be used
to solve many different tasks. One just needs to transform
the inputs and outputs into a suitable format, define an
adequate network structure, and let the system train for a few
weeks.</p>
      <p>Sadly, the burden of hyperparameter tuning has not been
alleviated by DNNs, but rather made worse by the
computational costliness of the training. However, with a bit of
experience, one is often able to propose a suitable
architecture and hyperparameter values at the first attempt,
already achieving very competitive results even without any
further tuning.
1.1</p>
    </sec>
    <sec id="sec-2">
      <title>Our contribution</title>
      <p>
        Most of the papers in the field only evaluate their
setups on English datasets. In our work, we try to rectify
this shortcoming by reimplementing existing
state-of-theart approaches in the Neural Monkey framework [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] and
training them on existing Czech datasets.
      </p>
      <p>
        Neural Monkey is an open-source toolkit for
sequenceto-sequence learning, implemented in the TensorFlow
library [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The toolkit is designed to be easily extensible in
order to support fast prototyping of architectures for
various NLP tasks. It is freely available on GitHub1 under the
BSD license, allowing both non-commercial and
commercial use of the toolkit.
      </p>
      <p>We decided to focus on three rather varied tasks –
sentiment analysis, machine translation, and image captioning.
For each of the tasks, we reimplemented one or more
existing state-of-the-art architectures within Neural Monkey
and trained it on available datasets. Our evaluations show
that we manage to reach or surpass state-of-the-art results
for all the three tasks.</p>
      <p>As we wish to encourage other NLP researchers to focus
on Czech language, we make sure that our source codes,
our configuration files and our trained models are all freely
available to anyone interested to use them, to study them
and to build upon them. With our work, we hope to
establish well-performing approaches for Czech NLP, as well
as to allow e.g. investigation of the internals of the trained
models to try to decipher in what ways language seems to
be implicitly captured in them. Moreover, we have created
a simple web-based demo that allows anyone to easily
apply our models to any input data, intended to popularize
deep learning and its applications for the Czech audience.</p>
      <sec id="sec-2-1">
        <title>1https://github.com/ufal/neuralmonkey</title>
        <sec id="sec-2-1-1">
          <title>Sentiment Analysis</title>
          <p>
            The goal of the sentiment analysis tasks is to decide
whether a text expresses positive, neutral or negative
judgment on its topic, sometimes also a degree of the positivity
or negativity.
2.1
We use a state-of-the-art architecture by Lin et al. [
            <xref ref-type="bibr" rid="ref20">20</xref>
            ].
The architecture processes the text with a bi-directional
LSTM network [
            <xref ref-type="bibr" rid="ref11 ref15">15, 11</xref>
            ]. After that the attention
mechanism is applied several times, each time with a different
trained query vector; this is usually referred to as the
architecture featuring multiple attention heads. This gives
us a set of context vector, each of them being a different
weighted average of the LSTM states.
          </p>
          <p>
            For English, Lin at el. [
            <xref ref-type="bibr" rid="ref20">20</xref>
            ] achieved new state-of-the-art
results on the Yelp dataset2 which contains texts of
restaurant reviews and the number of stars the users assigned
to the review. The goal of the prediction is an automatic
assignment of the stars.
          </p>
          <p>
            After replicating the results on the English dataset, we
evaluated the same approach on a Czech dataset. We also
experimented with architectures based on processing the
input with a convolutional network or a recurrent network
followed by max-pooling in time [
            <xref ref-type="bibr" rid="ref16">16</xref>
            ].
          </p>
          <p>All models use embeddings of size 300 and a classifier
with 100 hidden units. In the experiments with CNN, we
used kernels of size 3, 4 and 5 with output dimension 100.
The LSTM network used 300 hidden units in both
directions. The self-attentive layer used 10 heads and a hidden
layer of 300 dimensions.
2.2</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Dataset</title>
      <p>
        The largest existing Czech dataset for sentiment
analysis is the CSFD CZ dataset [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], which is available
online3 under the CC-BY-NC-SA license. It consists of
91,379 movie reviews from CˇSFD,4 a Czechoslovak film
database.
      </p>
      <p>The textual reviews are on average 60 tokens long, and
bear a rating of 0 to 6 stars, which the authors of the dataset
mapped into three classes: negative (0-2 stars), neutral
(34 stars), and positive (5-6 stars). The three classes are
represented rather uniformly, each being assigned to
32%34% reviews.</p>
      <p>We split off 2,000 reviews for validation and another
2,000 for testing (there is no official split of the dataset),
retaining the nearly uniform distribution of the classes, as
well as other characteristics of the dataset such as average
review length.</p>
      <p>
        We use tokenization from the Moses MT toolkit [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]
and post-process the tokenization in order to normalize
      </p>
      <sec id="sec-3-1">
        <title>2https://www.yelp.com/dataset/</title>
      </sec>
      <sec id="sec-3-2">
        <title>3http://liks.fav.zcu.cz/sentiment/</title>
      </sec>
      <sec id="sec-3-3">
        <title>4https://www.csfd.cz/</title>
        <p>
          Setup
Most frequent class
Maxpool on embeddings
CNN + maxpool
SAN on embeddings
SAN on LSTM
Lenc+ [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ]
Brychcín+ [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]
emoticons and repetitive vowels that are often used for
emphasis. We use vocabulary of 50k tokens appearing at least
5 times in the training data.
The evaluation in Table 1 show that no matter which
particular architecture we use, we achieve accuracies around
81 %. We hypothesize that this already approaches the
highest accuracy practically achievable on the dataset, and
that all of the model architectures are sufficiently powerful
to achieve this accuracy.
        </p>
        <p>
          Similarly to our approach, Lenc and Hercig [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ]
experiment with convolutional networks and max-pooling
[
          <xref ref-type="bibr" rid="ref16">16</xref>
          ], however due to a small vocabulary and limited input
length, they report scores which are ten percentage points
smaller than ours.
        </p>
        <p>
          To the best of our knowledge, the best result on this
dataset has been reported for the “ME + sspace + Dir”
setup of Brychcín+ [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]; they report a ±0.3 confidence
interval for their accuracy, which our best result also falls
into. The authors use a complex setup combining a
Maximum Entropy classifier with an unsupervised extension
that incorporates global context into the classification,
based on the assumption that reviews for the same target
(movie) tend to bear similar labels; this extension brings
them approximately +3 accuracy points. We do not
incorporate this mechanism into our setup; in fact, our
system does not use the information about the identity of the
movie at all. This shows that our model is stronger in a
restricted variant of the task – predicting the sentiment solely
from the plain text.
3
        </p>
        <sec id="sec-3-3-1">
          <title>Machine Translation</title>
          <p>Machine translation (MT) is one of the most well-studied
problems from NLP. In general, the goal of MT is given
a sentence in a source language, generate a sentence in a
target language which as similar meaning as possible to
the source sentence.
3.1</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Architecture</title>
      <p>
        We use our implementation of the self-attentive
architecture called the Tranformer [
        <xref ref-type="bibr" rid="ref27">27</xref>
        ]. Our implementation
is compatible with the official implementation in
Tensor2Tensor [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ] and we can thus take advantage of highly
optimized training procedure.
      </p>
      <p>
        The architecture uses the encoder-decoder scheme [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
Unlike the original sequence-to-sequence models which
were based on recurrent neural networks, the Transformer
model uses a stack of self-attentive and feed-forward
layers.
      </p>
      <p>
        In the self-attentive layers, we use the state as a query to
an attention over the remaining states of the layer and
output a weighted combination of the states. This is always
followed by a feed-forward layer. All layers are
normalized [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] and interconnected with residual connection [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]
to ensure better gradient flow during training.
      </p>
      <p>The decoder uses also attention to the encoder after each
self-attentive layer. The decoder is autoregressive. In
every time step, a new word is generated and the stack of all
the layers applied on the text generated so far, including
the newly generated word.</p>
      <p>
        We use hyper-parameters and training strategy proposed
by Popel and Bojar [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ] who train the model in
Tensor2Tensor. A vocabulary of 32,000 subwords is shared
by the English encoder and Czech decoder. The network
uses 16 self-attentive heads and a hidden layer of
dimension 1,024. It is trained using the Adam optimizer [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]
with the beta parameter set to 0.998 and the learning rate
to 0.2 with 16,000 warmup steps, using a batch size of
1,500 and checkpoint averaging.
3.2
      </p>
    </sec>
    <sec id="sec-5">
      <title>Dataset</title>
      <p>
        We use CzEng 1.75 [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] Czech-English parallel corpus in a
filtered version [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ] which contains 57M pairs of parallel
sentence pairs.
      </p>
      <p>
        The model is validated on WMT13 test set and
evaluated on WMT17 [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] test set from the news domain.
3.3
      </p>
    </sec>
    <sec id="sec-6">
      <title>Evaluation</title>
      <p>
        We evaluate the model on the WMT17 test set [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. It is
a test set that was used for system comparison in an
annual competition in MT. Unlike the other 2 tasks which
are rarely solved for Czech, English-to-Czech translation
is annually evaluated within the WMT competition where
it serves as an example of a highly inflected language.
      </p>
      <p>The quantitative results are in Table 3, examples of the
outputs in Table 2. As far as we know, this is the best
publicly reported MT system for English-to-Czech
translation.</p>
      <p>Our best performing model was obtained by training for
8 days on 8 GPUs.</p>
      <sec id="sec-6-1">
        <title>4 Image Captioning</title>
        <p>In image captioning, the task is to provide a short textual
description of a given image – i.e., the input for the task</p>
        <sec id="sec-6-1-1">
          <title>5http://ufal.mff.cuni.cz/czeng/czeng17</title>
          <p>is an image (a two-dimensional matrix of bits, where each
bit is represented by the values of its red, green and blue
channel), and the output is a caption (a sequence of words).</p>
          <p>
            As the Czech image captioning dataset is very new, we
believe to be the first ones to train models for the image
captioning task for Czech.
4.1
We re-implement an attentive architecture by Xu et al.
[
            <xref ref-type="bibr" rid="ref29">29</xref>
            ]. The model uses pre-trained convolutional map from
networks for image classification on the ImageNet dataset
[
            <xref ref-type="bibr" rid="ref8">8</xref>
            ], these are used as input to a RNN decoder with
attention mechanism [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ] originally introduced in context of MT.
          </p>
          <p>
            Image features are extracted with Resnet50 v2 (8 × 8
× 2048) [
            <xref ref-type="bibr" rid="ref13">13</xref>
            ], captions are tokenized and truecased Moses
style [
            <xref ref-type="bibr" rid="ref18">18</xref>
            ]. We use an RNN decoder [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ] with conditional
GRU [
            <xref ref-type="bibr" rid="ref10">10</xref>
            ] with dimensionality 1024, and our word
embeddings have 500 dimensions. For Czech experiments,
we use a vocabulary of 5,521 tokens, i.e., tokens that
appear at least four times in the training data. For English,
we use a vocabulary of 7,752 tokens appearing at least 5
times.
          </p>
          <p>
            The model is optimized using the Adam optimizer [
            <xref ref-type="bibr" rid="ref17">17</xref>
            ]
with default parameters and mini-batch size 64. Because
we cannot rely on an extrinsic evaluation metric, we
perform early stopping on reference captions perplexity.
          </p>
          <p>
            At the inference time, we use a beam search of width 5
with length penalty 1.0 [
            <xref ref-type="bibr" rid="ref28">28</xref>
            ].
We use a recently acquired Czech version of the Multi30k
dataset [
            <xref ref-type="bibr" rid="ref9">9</xref>
            ] which contains translations of the originally
English captions from the Flickr30k dataset [
            <xref ref-type="bibr" rid="ref22">22</xref>
            ].
          </p>
          <p>The dataset uses 29,000 images for training, 1,014
for validation and 1,000 for testing. Unlike the original
Flickr30k dataset which contains 5 independent
descriptions for each image, we only have one Czech sentence
for each image.</p>
          <p>This means we can have only have one reference
sentence for the evaluation which makes the evaluation less
robust than in case of English.
Image captioning is usually evaluated using metrics
originally developed for machine translation.</p>
          <p>
            There is only one reference in the dataset, while the
standard is to evaluate with BLEU [
            <xref ref-type="bibr" rid="ref21">21</xref>
            ] or METEOR [
            <xref ref-type="bibr" rid="ref4">4</xref>
            ]
score against 6 references. In MT, 4 references are the
standard [
            <xref ref-type="bibr" rid="ref21">21</xref>
            ], and 1 reference is typical in practice. In
image captioning, the captions are quite short, and there is
a much higher degree of freedom, which is why as many
as 6 references are typically used. With only 1 reference
available, BLEU cannot be reliably used here. However,
source:
system output:
reference:
source:
system output:
reference:
          </p>
          <p>The next chance won’t come until winter.</p>
          <p>Další prˇíležitost prˇijde až v zimeˇ.</p>
          <p>Další šance prˇijde až v zimeˇ.</p>
          <p>All private correspondence and images should remain private.</p>
          <p>Veškerá soukromá korespondence a obrazy by meˇly z˚ustat soukromé.</p>
          <p>Všechna soukromá korespondence a všechny soukromé obrázky by soukromé meˇly z˚ustat.</p>
          <p>A group of people are standing in front of a building.</p>
          <p>A group of people wearing snowshoes, and dressed for
winter hiking, is standing in front of a building that looks
like it’s made of blocks of ice.</p>
          <p>The people are quietly listening while the story of the ice
cabin was explained to them.</p>
          <p>A group of people standing in front of an igloo.</p>
          <p>
            Several students waiting outside an igloo.
as more references are not available, we use the chrF3
metric [
            <xref ref-type="bibr" rid="ref24">24</xref>
            ], which is based on character n-grams rather than
word n-grams, and has thus a higher chance of providing
at least somewhat useful evaluation scores (even though
we note that they are still very unreliable).
          </p>
          <p>We believe our work to be the first to perform image
captioning in Czech language. As can be seen in Table 4,
the standard evaluation shows rather low scores for Czech.</p>
          <p>However, when investigating the data, we found the
produced image labels to be usually correct, even if rather
simple and generic. See Figure 1 for an example of an
input image together with its captions produced by our
system.
5</p>
        </sec>
      </sec>
      <sec id="sec-6-2">
        <title>Conclusion</title>
        <p>We implemented and trained models for English-to-Czech
machine translation, sentiment analysis of Czech texts,
and image captioning in Czech within Neural Monkey,
using approaches reported to be state-of-the-art for other
languages (typically English). We gathered and
standardized existing datasets, adapted the Neural Monkey toolkit
where necessary, and trained and tuned the tools. Our
evaluation shows that the resulting tools reach or surpass
stateof-the-art for all three tasks. Both the source codes and the
trained models are available online under free licences.67
The tools are also available as an online demo.8</p>
        <p>As a future work, we plan to add more tasks, especially
text summarization.</p>
        <sec id="sec-6-2-1">
          <title>6https://github.com/ufal/neuralmonkey</title>
          <p>7http://hdl.handle.net/11234/1-2839</p>
        </sec>
        <sec id="sec-6-2-2">
          <title>8https://ufal.mff.cuni.cz/grants/lsd</title>
        </sec>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Martín</given-names>
            <surname>Abadi</surname>
          </string-name>
          , Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis,
          <string-name>
            <given-names>Jeffrey</given-names>
            <surname>Dean</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Matthieu</given-names>
            <surname>Devin</surname>
          </string-name>
          , Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dandelion Mané, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke,
          <string-name>
            <given-names>Yuan</given-names>
            <surname>Yu</surname>
          </string-name>
          , and Xiaoqiang Zheng.
          <source>TensorFlow: Large-scale machine learning on heterogeneous systems</source>
          ,
          <year>2015</year>
          .
          <article-title>Software available from tensorflow</article-title>
          .
          <source>org.</source>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Lei</given-names>
            <surname>Jimmy</surname>
          </string-name>
          <string-name>
            <surname>Ba</surname>
          </string-name>
          , Ryan Kiros, and
          <string-name>
            <given-names>Geoffrey E.</given-names>
            <surname>Hinton</surname>
          </string-name>
          .
          <article-title>Layer normalization</article-title>
          .
          <source>CoRR, abs/1607.06450</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Dzmitry</given-names>
            <surname>Bahdanau</surname>
          </string-name>
          , Kyunghyun Cho, and
          <string-name>
            <surname>Yoshua Bengio.</surname>
          </string-name>
          <article-title>Neural machine translation by jointly learning to align and translate</article-title>
          .
          <source>CoRR, abs/1409.0473</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Satanjeev</given-names>
            <surname>Banerjee</surname>
          </string-name>
          and
          <string-name>
            <given-names>Alon</given-names>
            <surname>Lavie</surname>
          </string-name>
          . METEOR:
          <article-title>An automatic metric for MT evaluation with improved correlation with human judgments</article-title>
          .
          <source>In Proceedings of the ACL Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and/or Summarization</source>
          , pages
          <fpage>65</fpage>
          -
          <lpage>72</lpage>
          , Ann Arbor, Michigan,
          <year>June 2005</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Ondrˇej</given-names>
            <surname>Bojar</surname>
          </string-name>
          ,
          <source>Ondrˇej Dušek</source>
          , Tom Kocmi, Jindrˇich Libovicky`,
          <string-name>
            <surname>Michal</surname>
            <given-names>Novák</given-names>
          </string-name>
          , Martin Popel,
          <source>Roman Sudarikov, and Dušan Variš. Czeng 1</source>
          .
          <article-title>6: enlarged Czech-English parallel corpus with processing tools dockered</article-title>
          .
          <source>In International Conference on Text, Speech, and Dialogue</source>
          , pages
          <fpage>231</fpage>
          -
          <lpage>238</lpage>
          . Springer,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Ondrˇej</given-names>
            <surname>Bojar</surname>
          </string-name>
          , Rajen Chatterjee, Christian Federmann, Yvette Graham, Barry Haddow, Shujian Huang, Matthias Huck, Philipp Koehn, Qun Liu, Varvara Logacheva, Christof Monz, Matteo Negri, Matt Post, Raphael Rubino, Lucia Specia, and
          <string-name>
            <given-names>Marco</given-names>
            <surname>Turchi</surname>
          </string-name>
          .
          <article-title>Findings of the 2017 conference on machine translation (WMT17)</article-title>
          .
          <source>In Proceedings of the Second Conference on Machine Translation</source>
          , Volume
          <volume>2</volume>
          :
          <string-name>
            <given-names>Shared</given-names>
            <surname>Task Papers</surname>
          </string-name>
          , pages
          <fpage>169</fpage>
          -
          <lpage>214</lpage>
          , Copenhagen, Denmark,
          <year>September 2017</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Tomáš</given-names>
            <surname>Brychcín</surname>
          </string-name>
          and
          <string-name>
            <given-names>Ivan</given-names>
            <surname>Habernal</surname>
          </string-name>
          .
          <article-title>Unsupervised improving of sentiment analysis using global target context</article-title>
          .
          <source>In Proceedings of the International Conference Recent Advances in Natural Language Processing RANLP</source>
          <year>2013</year>
          , pages
          <fpage>122</fpage>
          -
          <lpage>128</lpage>
          , Hissar, Bulgaria,
          <year>September 2013</year>
          . INCOMA Ltd. Shoumen, BULGARIA.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Jia</given-names>
            <surname>Deng</surname>
          </string-name>
          , Wei Dong, Richard Socher,
          <string-name>
            <surname>Li-Jia</surname>
            <given-names>Li</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Kai</given-names>
            <surname>Li</surname>
          </string-name>
          , and
          <string-name>
            <surname>Li</surname>
          </string-name>
          Fei-Fei.
          <article-title>ImageNet: A large-scale hierarchical image database</article-title>
          .
          <source>In Computer Vision and Pattern Recognition</source>
          ,
          <year>2009</year>
          .
          <article-title>CVPR 2009</article-title>
          . IEEE Conference on, pages
          <fpage>248</fpage>
          -
          <lpage>255</lpage>
          , Miami, FL, USA, jun
          <year>2009</year>
          . IEEE, IEEE Computer Society.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Desmond</given-names>
            <surname>Elliott</surname>
          </string-name>
          , Stella Frank,
          <article-title>Khalil Sima'an, and Lucia Specia. Multi30k: Multilingual English-German image descriptions</article-title>
          .
          <source>In Proceedings of the 5th Workshop on Vision and Language</source>
          , pages
          <fpage>70</fpage>
          -
          <lpage>74</lpage>
          . Association for Computational Linguistics,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>Orhan</given-names>
            <surname>Firat</surname>
          </string-name>
          and
          <string-name>
            <given-names>Kyunghyun</given-names>
            <surname>Cho</surname>
          </string-name>
          .
          <article-title>Conditional gated recurrent unit with attention mechanism</article-title>
          . https://github.com/nyu-dl/dl4mttutorial/blob/master/docs/cgru.pdf, May
          <year>2016</year>
          .
          <article-title>Published online, version adbaeea</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Alex</given-names>
            <surname>Graves</surname>
          </string-name>
          and
          <string-name>
            <given-names>Jürgen</given-names>
            <surname>Schmidhuber</surname>
          </string-name>
          .
          <article-title>Framewise phoneme classification with bidirectional LSTM and other neural network architectures</article-title>
          .
          <source>Neural Networks</source>
          ,
          <volume>18</volume>
          (
          <issue>5- 6</issue>
          ):
          <fpage>602</fpage>
          -
          <lpage>610</lpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Ivan</surname>
            <given-names>Habernal</given-names>
          </string-name>
          , Tomáš Ptácˇek, and Josef Steinberger.
          <article-title>Sentiment analysis in Czech social media using supervised machine learning</article-title>
          .
          <source>In Proceedings of the 4th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis</source>
          , pages
          <fpage>65</fpage>
          -
          <lpage>74</lpage>
          , Atlanta, Georgia,
          <year>June 2013</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Kaiming</surname>
            <given-names>He</given-names>
          </string-name>
          , Xiangyu Zhang, Shaoqing Ren, and
          <string-name>
            <given-names>Jian</given-names>
            <surname>Sun</surname>
          </string-name>
          .
          <article-title>Deep residual learning for image recognition</article-title>
          .
          <source>In Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          , pages
          <fpage>770</fpage>
          -
          <lpage>778</lpage>
          , TODO,
          <string-name>
            <surname>TODO</surname>
          </string-name>
          <year>2016</year>
          .
          <article-title>IEEE Computer Society</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>Jindrˇich</given-names>
            <surname>Helcl and Jindrˇich Libovický. Neural Monkey</surname>
          </string-name>
          :
          <article-title>An open-source tool for sequence learning</article-title>
          .
          <source>The Prague Bulletin of Mathematical Linguistics</source>
          , (
          <volume>107</volume>
          ):
          <fpage>5</fpage>
          -
          <lpage>17</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>Sepp</given-names>
            <surname>Hochreiter</surname>
          </string-name>
          and
          <string-name>
            <given-names>Jürgen</given-names>
            <surname>Schmidhuber</surname>
          </string-name>
          .
          <article-title>Long short-term memory</article-title>
          .
          <source>Neural computation</source>
          ,
          <volume>9</volume>
          (
          <issue>8</issue>
          ):
          <fpage>1735</fpage>
          -
          <lpage>1780</lpage>
          ,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>Yoon</given-names>
            <surname>Kim</surname>
          </string-name>
          .
          <article-title>Convolutional neural networks for sentence classification</article-title>
          .
          <source>In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)</source>
          , pages
          <fpage>1746</fpage>
          -
          <lpage>1751</lpage>
          , Doha, Qatar,
          <year>October 2014</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <surname>Diederik</surname>
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Kingma</surname>
            and
            <given-names>Jimmy</given-names>
          </string-name>
          <string-name>
            <surname>Ba</surname>
          </string-name>
          .
          <article-title>Adam: A method for stochastic optimization</article-title>
          .
          <source>CoRR, abs/1412.6980</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <surname>Philipp</surname>
            <given-names>Koehn</given-names>
          </string-name>
          , Hieu Hoang, Alexandra Birch, Chris Callison-Burch, Marcello Federico, Nicola Bertoldi, Brooke Cowan, Wade Shen, Christine Moran, Richard Zens, Chris Dyer, Ondrˇej Bojar, Alexandra Constantin, and
          <string-name>
            <given-names>Evan</given-names>
            <surname>Herbst</surname>
          </string-name>
          . Moses:
          <article-title>Open source toolkit for statistical machine translation</article-title>
          .
          <source>In ACL 2007, Proceedings of the 45th Annual Meeting of the Association for Computational Linguistics Companion Volume Proceedings of the Demo and Poster Sessions</source>
          , pages
          <fpage>177</fpage>
          -
          <lpage>180</lpage>
          , Prague, Czech Republic,
          <year>June 2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>Ladislav</given-names>
            <surname>Lenc</surname>
          </string-name>
          and
          <string-name>
            <given-names>Tomáš</given-names>
            <surname>Hercig</surname>
          </string-name>
          .
          <article-title>Neural networks for sentiment analysis in Czech</article-title>
          .
          <source>In Proceedings of the 16th ITAT: Slovenskocˇeský NLP workshop (SloNLP</source>
          <year>2016</year>
          ), pages
          <fpage>48</fpage>
          -
          <lpage>55</lpage>
          , Bratislava, Slovakia.
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <surname>Zhouhan</surname>
            <given-names>Lin</given-names>
          </string-name>
          , Minwei Feng, Cícero Nogueira dos Santos, Mo Yu, Bing Xiang,
          <string-name>
            <surname>Bowen Zhou</surname>
            , and
            <given-names>Yoshua</given-names>
          </string-name>
          <string-name>
            <surname>Bengio</surname>
          </string-name>
          .
          <article-title>A structured self-attentive sentence embedding</article-title>
          .
          <source>CoRR, abs/1703.03130</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <surname>Kishore</surname>
            <given-names>Papineni</given-names>
          </string-name>
          , Salim Roukos, Todd Ward, and
          <string-name>
            <surname>Wei-Jing Zhu</surname>
          </string-name>
          .
          <article-title>BLEU: a method for automatic evaluation of machine translation</article-title>
          .
          <source>In Proceedings of 40th Annual Meeting of the Association for Computational Linguistics</source>
          , pages
          <fpage>311</fpage>
          -
          <lpage>318</lpage>
          , Philadelphia, Pennsylvania, USA,
          <year>July 2002</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <surname>Bryan</surname>
            <given-names>A Plummer</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liwei</surname>
            <given-names>Wang</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chris M Cervantes</surname>
            ,
            <given-names>Juan C Caicedo</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Julia Hockenmaier</surname>
          </string-name>
          , and Svetlana Lazebnik.
          <article-title>Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models</article-title>
          .
          <source>In Computer Vision</source>
          (ICCV),
          <year>2015</year>
          IEEE International Conference on, pages
          <fpage>2641</fpage>
          -
          <lpage>2649</lpage>
          . IEEE,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>Martin</given-names>
            <surname>Popel and Ondrˇej Bojar</surname>
          </string-name>
          .
          <article-title>Training tips for the Transformer model</article-title>
          .
          <source>The Prague Bulletin of Mathematical Linguistics</source>
          ,
          <volume>110</volume>
          :
          <fpage>43</fpage>
          -
          <lpage>70</lpage>
          ,
          <year>April 2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <surname>Maja</surname>
            <given-names>Popovic´.</given-names>
          </string-name>
          <article-title>chrF: character n-gram F-score for automatic MT evaluation</article-title>
          .
          <source>In Proceedings of the Tenth Workshop on Statistical Machine Translation</source>
          , pages
          <fpage>392</fpage>
          -
          <lpage>395</lpage>
          , Lisbon, Portugal,
          <year>September 2015</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <surname>Rico</surname>
            <given-names>Sennrich</given-names>
          </string-name>
          , Alexandra Birch, Anna Currey, Ulrich Germann, Barry Haddow,
          <string-name>
            <given-names>Kenneth</given-names>
            <surname>Heafield</surname>
          </string-name>
          , Antonio Valerio Miceli Barone, and
          <string-name>
            <given-names>Philip</given-names>
            <surname>Williams</surname>
          </string-name>
          .
          <article-title>The University of Edinburgh's neural MT systems for WMT17</article-title>
          .
          <source>In Proceedings of the Second Conference on Machine Translation</source>
          , Volume
          <volume>2</volume>
          :
          <string-name>
            <given-names>Shared</given-names>
            <surname>Task Papers</surname>
          </string-name>
          , pages
          <fpage>389</fpage>
          -
          <lpage>399</lpage>
          , Copenhagen, Denmark,
          <year>September 2017</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <surname>Ashish</surname>
            <given-names>Vaswani</given-names>
          </string-name>
          , Samy Bengio, Eugene Brevdo, Francois Chollet,
          <string-name>
            <given-names>Aidan N.</given-names>
            <surname>Gomez</surname>
          </string-name>
          , Stephan Gouws, Llion Jones, Łukasz Kaiser, Nal Kalchbrenner, Niki Parmar, Ryan Sepassi, Noam Shazeer, and Jakob Uszkoreit.
          <article-title>Tensor2tensor for neural machine translation</article-title>
          .
          <source>CoRR</source>
          , abs/
          <year>1803</year>
          .07416,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [27]
          <string-name>
            <surname>Ashish</surname>
            <given-names>Vaswani</given-names>
          </string-name>
          , Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez,
          <string-name>
            <surname>Łukasz Kaiser</surname>
            , and
            <given-names>Illia</given-names>
          </string-name>
          <string-name>
            <surname>Polosukhin</surname>
          </string-name>
          .
          <article-title>Attention is all you need</article-title>
          .
          <source>In Advances in Neural Information Processing Systems</source>
          <volume>30</volume>
          , pages
          <fpage>6000</fpage>
          -
          <lpage>6010</lpage>
          , Long Beach, CA, USA,
          <year>December 2017</year>
          . Curran Associates, Inc.
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          [28]
          <string-name>
            <surname>Yonghui</surname>
            <given-names>Wu</given-names>
          </string-name>
          , Mike Schuster, Zhifeng Chen,
          <string-name>
            <surname>Quoc</surname>
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Le</surname>
            , Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao,
            <given-names>Qin</given-names>
          </string-name>
          <string-name>
            <surname>Gao</surname>
          </string-name>
          , Klaus Macherey, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Lukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens, George Kurian, Nishant Patil,
          <string-name>
            <surname>Wei</surname>
            <given-names>Wang</given-names>
          </string-name>
          , Cliff Young,
          <string-name>
            <given-names>Jason</given-names>
            <surname>Smith</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Jason</given-names>
            <surname>Riesa</surname>
          </string-name>
          , Alex Rudnick, Oriol Vinyals, Greg Corrado, Macduff Hughes, and
          <string-name>
            <given-names>Jeffrey</given-names>
            <surname>Dean</surname>
          </string-name>
          .
          <article-title>Google's neural machine translation system: Bridging the gap between human and machine translation</article-title>
          .
          <source>CoRR, abs/1609.08144</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          [29]
          <string-name>
            <surname>Kelvin</surname>
            <given-names>Xu</given-names>
          </string-name>
          , Jimmy Lei Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhutdinov, Richard S. Zemel, and
          <string-name>
            <given-names>Yoshua</given-names>
            <surname>Bengio</surname>
          </string-name>
          .
          <article-title>Show, attend and tell: Neural image caption generation with visual attention</article-title>
          .
          <source>In Proceedings of the 32Nd International Conference on International Conference on Machine Learning - Volume 37, ICML'15</source>
          , pages
          <fpage>2048</fpage>
          -
          <lpage>2057</lpage>
          . JMLR.org,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>