<!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>
      <journal-title-group>
        <journal-title>June</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Legal Query Reformulation using Deep Learning</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Arunprasath Shankar</string-name>
          <email>arunprasath.shankar@lexisnexis.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Venkata Nagaraju Buddarapu</string-name>
          <email>venkatanagaraju.buddarapu@lexisnexis.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>LexisNexis</institution>
          ,
          <addr-line>Raleigh</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <volume>21</volume>
      <issue>2019</issue>
      <abstract>
        <p>uQery reformulation is the process of iteratively modifying a query to improve the quality of search engine results. In recent years, the task of reformulating natural language (NL) queries has received considerable diligence from both industry and academic communities. Traditionally, query reformulation has been mostly approached by using the noisy channel model. Since legal queries are diverse and multi-faceted, these traditional approaches cannot efectively handle low frequency and out-of-vocabulary (OOV) words. Motivated by these issues, we rethink the task of legal query reformulation as a type of monolingual neural machine translation (NMT) problem, where the input (source) query is potentially erroneous and the output (target) query is its corrected form. We propose a unified and principled framework with multiple levels of granularity. Specifically, (i) an encoder with character atention which augments the subword representation; (ii) a decoder with atentions that enable the representations from diferent levels of granularity to control the translation cooperatively and (iii) a semi-supervised methodology to extract and augment a large-scale dataset of NL query pairs combining syntactic and semantic operations. We establish the efectiveness of our methodology using an internal dataset, where the training data is automatically obtained from user query logs. We further demonstrate that training deep neural networks on additional data with synthesized errors can improve performance for translation.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>
        Technology and innovation are transforming the legal profession
in manifold ways. The legal industry is undergoing significant
disruption and arguably machine intelligence is most advancing in
the area of discovery and search. Technologies are moving from
basic keyword searches to predictive coding, which involves
algorithms that predict whether a document is relevant or not. In [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ],
McGinnis et al. envisage two phases of technological changes in
this area. The first phase, expected to come in the next 10 years,
involves perfecting semantic search that will allow lawyers to input
NL queries to interfaces and systems responding to those queries
directly with relevant information. The second phase involves
technology that is able to identify issues, given a set of facts and then
suggest relevant authorities that might apply to those issues.
      </p>
      <p>uQery reformulation or correction is a crucial component for
any service that requires users to type in NL, such as a search
engine. It is an iterative process where a user reformulates (rewrites)
queries to improve search results or gain new information. He
achieves this by using either his own prior knowledge or through
assisted tools. Legal query reformulation is not a trivial task, as
legal search queries are often short, complex and lack context.
Automatic query correction systems are one of the most widely used
tools within NL applications. Search engines support users in this
task in two ways, (a) explicitly by suggesting related queries or
query completions, or (b) implicitly by expanding the query to
improve quality and recall of organic results. Successful
reformulations must closely align with the original query both syntactically,
as sequences of characters or words, and semantically, often
involving transparent taxonomic relations.</p>
      <p>
        From a probabilistic perspective, given an incorrect query q
that we wish to reformulate to a correct query q+, we seek to
model q+ = arg maxq P (q|q ) where q is the original query or
ground truth. In a traditional noisy channel model [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], the model
consists of two parts: (i) a language model i.e., P(q) that represent
the prior probability of the intended correct input query; and (ii)
an error model i.e., P (q|q ) that represent the process in which
the correct input query gets corrupted to its incorrect form. There
are several drawbacks with this approach: (i) we need two
separate models and the error in estimating one model would afect
the performance of the final output, (ii) it is not easy to model the
channel since there is a lot of sources for these mistakes e.g., typing
too fast, unintentional key stroke, phonetic ambiguity, etc. and (iii)
it is not easy to obtain clean training data for language model as
the input does not follow what is typical in NL. Since the end goal
is to get a query that maximizes P (q|q ), can we directly model
this conditional distribution instead.
      </p>
      <p>
        In this work, we explore this route, which by passes the need
to have multiple models and avoid sufering errors from multiple
sources. We achieve this by applying the encoder-decoder
framework combined with atention learning using recurrent neural
networks [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and rethink the query correction problem as a NMT
problem, where the incorrect input is treated as a foreign language.
We also propose a semi-supervised methodology to perform
error detection and construct a large-scale dataset for training and
experimentation. To the best of our knowledge, there is no prior
research work on the idea of using atention learning in a legal
seting. Also, our work is the first that uses neural machine
translation based methodologies on user generated legal data for query
reformulation. We demonstrate that NMT models can successfully
be applied to the task of query reformulation in a legal background
and validate that the trained models are naturally capable of
handling orthographic errors and rare words, and can flexibly correct
a variety of error types. We further find that augmenting the
network training data with queries containing synthesized errors can
result in significant gains in performance.
      </p>
    </sec>
    <sec id="sec-2">
      <title>APPLICATION</title>
      <p>An “answer card” is a search feature, usually displayed in a box or
panel, that occurs above organic results and tries to directly answer
a question. Most answer boxes are primarily text, containing a
relatively short answer and may provide limited information based
on user’s entered query. In legal context, the source can be a legal
question, profile search or can take many forms. Figure 1 shows a
card that is an answer to a legal question “define motion to
compel” and Figure 2 shows a profile card for a judge search using the
query “who is judge antonin scalia ?”.</p>
      <p>Motion to compel
A motion to compel asks the court to order either the opposing
party or a third party to take some action.</p>
      <p>
        Vertical engines are search engines that specialize in diferent
types of search. Answer cards are usually backed by vertical search
engines that are tightly coupled with AI/NLP systems. These NLP
systems may be a machine/deep learning model(s) recognizing and
classifying entities that trigger and render respective cards based
on user’s query intent[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. NLP models rely heavily on vocabulary
and any OOV words contained in the query can have an adverse
efect on the coverage or functioning of answer cards.
      </p>
      <p>Antonin Scalia</p>
      <sec id="sec-2-1">
        <title>Former Associate Justice</title>
      </sec>
      <sec id="sec-2-2">
        <title>Supreme Court (U.S.)</title>
      </sec>
      <sec id="sec-2-3">
        <title>Born: March 11, 1936, Trenton, NJ</title>
      </sec>
      <sec id="sec-2-4">
        <title>Died: February 13, 2016</title>
      </sec>
      <sec id="sec-2-5">
        <title>Appointed by: Ronald Reagan</title>
        <p>hTe scope of this research is to develop a framework to detect
these erroneous queries and autocorrect them. The framework acts
as an extra layer between the answer cards and NLP recognition
systems to facilitate a coherent mechanism for coping up with
missing information (vocabulary); which in turn enable us to
return more appropriate cards. For e.g., for the above mentioned
answer card queries, lets say a user typed in “defin e motiom
to compell” or “whi is jufge antonin scakia?” instead, our
deployed framework would fix (reformulate) the queries to its correct
form and display the cards successfully.</p>
        <p>BACKGROUND AND RELATED WORK
hTere are two major areas related to our research and the proposed
models. First is the work on the task of query reformulation in
information retrieval involving traditional, statistical and neural
approaches and, second is the process of error detection (selecting
candidate queries that are incorrect) for training the reformulation
models. We will introduce related studies specific to these areas in
the this section.
3.1</p>
        <p>
          uQery Reformulation
3.1.1 Traditional Approaches: In [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], Xu et al. used top results
retrieved by the original query to perform reformulation by
expansion. This method is popular and influenced by the initial ranking
of results, however it cannot utilize user-generated data. Other
approaches focused on using user query logs to expand a query by
means of clickthrough rate [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], co-occurrence in search sessions,
or query similarity based on click-through graphs [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. The
advantage of these approaches is that user feedback is readily available
in user query logs and can eficiently be precomputed. However,
these approaches all face the problem of requiring some resource
dependency on a specific search engine.
3.1.2 Statistical Machine Translation: The task of machine
correction is defined as correcting a N -character or word source query
S = s1; : : : ; sN = s1N into a M-character or word target query
T = t1; : : : ; tM = t1M . Thus, the correction system can be defined
as a function F:
        </p>
        <p>
          TD = F (S)
(1)
which returns a correction hypothesis TD given an input word S.
Recently, several studies have been adopting data from user query
logs as input to Statistical Machine Translation (SMT) for query
reformulation and expansion [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ][
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. These methods treat user queries
as one language and the reformulated queries as another language.
However, their major drawback is the dificulty of modeling
corrections in diferent granularities, e.g., characters or words, which
is necessary to reduce the rate of unknown words that are
detrimental to their proper functioning.
        </p>
        <p>
          Our approach difers in several ways. First, we consider full
query pairs as training data, and do not use single word tokens
as a primary mode of operation. Second, we do not train explicit
error models P (w js) for words w and observed corrections s, but
use standard word/character based NMT models to derive more
meaningful and accurate lexical translation models.
3.1.3 Neural Machine Translation: Recently, the use of
neural networks has delivered significant gains for mapping tasks
between pairs of sequences due to to their ability to learn a beter
representation of the data and context. Recurrent Neural Networks
(RNNs) are a set of neural networks for processing sequential data
and modeling long-distance dependencies which is a common
phenomenon in human language. NMT models [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] use RNNs and
learn to map from source language input to target language input
via continuous-space intermediate representations efectively. We
use an encoder-decoder bound uni/bi-directional RNNs with an
attention mechanism as the core component of our proposed system.
[
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]. The encoder maps the input query to a higher-level
representation with a uni or bi-directional RNN architecture similar to that
of [
          <xref ref-type="bibr" rid="ref13">12</xref>
          ]. The decoder also employs a RNN that uses content-based
atention mechanism [
          <xref ref-type="bibr" rid="ref14">13</xref>
          ] to atend to the encoded representation
and generate the output query one character at a time.
3.1.4 Character Level Reasoning: Word-level NMT models are
poorly suited to handle OOV words due fixed vocabulary [
          <xref ref-type="bibr" rid="ref15">14</xref>
          ].
Recent works have proposed workarounds for this problem. Since a
word is usually thought of as the basic unit of language
communication [
          <xref ref-type="bibr" rid="ref16">15</xref>
          ], early NMT systems built these representations
starting from the word level [
          <xref ref-type="bibr" rid="ref17">16</xref>
          ]. Machine learning/NLP models
typically limit vocabulary size due to the complexity of training [
          <xref ref-type="bibr" rid="ref18">17</xref>
          ].
hTerefore, they are unable to translate rare words, and it is a
standard practice to replace OOV words with unknown (UNK) symbol.
By doing so, useful information is discarded, resulting in systems
that are not able to correct erroneous words. In our framework,
we strive to circumvent this issue by using smaller units such as
subwords to address the problem of OOV words.
3.2
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Error Detection</title>
      <p>
        In most translation systems, before any reformulation is carried
out, a detection process is conducted on the input query to extract
any potentially incorrect words. In [
        <xref ref-type="bibr" rid="ref19">18</xref>
        ], He et al. proposed a
learning to rewrite framework that focuses on candidate ranking for
error detection. A non-word error refers to a potentially incorrect
word that does not exist in a given dictionary. Dictionary lookup
is one of the basic techniques employed to compare input strings
with the entries of a language resource, e.g., lexicon or corpus [
        <xref ref-type="bibr" rid="ref20">19</xref>
        ].
Such a language resource must contain all inflected forms of the
words and it should be updated regularly. If a given word does not
exist in the language resource, it will be marked as a potentially
incorrect word which is a huge disadvantage of this approach.
      </p>
      <p>
        Minimum edit distance is one of the most studied techniques
for error detection. It is based on counting edit operations, which
are defined in most systems as insertion, deletion, substitution and
transposition. Jaro-Winkler [
        <xref ref-type="bibr" rid="ref21">20</xref>
        ], Wagner-Fischer [
        <xref ref-type="bibr" rid="ref22">21</xref>
        ], and
Levenshtein [
        <xref ref-type="bibr" rid="ref23">22</xref>
        ] are among the most famous edit distance algorithms.
hTis approach has a main drawback, in that it penalizes all change
operations in the same way, without taking into account the
character that is used in the change operation. In contrast to above
mentioned approaches, our error detection methodology combines
both syntactic and semantic atributes of a user query to extract
incorrect non-word occurrences. Here, we establish a unified
framework (see Figure 3) that encompasses aspects like frequency
distribution, query rank and subword representations for error
detection alongside NMT and atention learning.
4.
4.1
      </p>
    </sec>
    <sec id="sec-4">
      <title>PROPOSED FRAMEWORK uQery Preparation</title>
      <p>For our experiments, we collected a total of 62M distinct queries
grouped by frequency, collected over a period of 5 years. The queries
under study included a considerable proportion of boolean queries
32M of them. We used a heuristic approach to filter search queries.
Using a combination of regular expressions and strict constraints,
we excluded any query with boolean or special character
connectors; this left us with 29M NL queries.</p>
      <p>
        We used the punkt sentence tokenizer [
        <xref ref-type="bibr" rid="ref24">23</xref>
        ] to tokenize the queries
into words. The tokens were further filtered down to remove noise
and short forms. Any token that is a digit and of length ⩾ 5 was
excluded from our study. The created vocabulary contained 1M
words (tokens). Table 1 shows top 10 ranked queries (left) and
tokens (right) at the end of query preparation process.
hTe first step in creating a model, is to choose a representation for
the input and output. For instance, a query can be represented in
word-level, which is transferring the data with indices that refer to
the words or in character-level, which is transferring the data with
indices that refer to a closed vocabulary of language specific
characters and symbols. However, in this work, we anticipate the need
to handle an exponentially large input space of tokens by choosing
a character-level query representation. Thus, model inputs are
individual characters which are a sequence of indices corresponding
characters.
      </p>
      <p>Legal
Corpora
Query
Log</p>
      <p>Legal
Names</p>
      <p>Error
Detection</p>
      <p>FastText
Embeddings</p>
      <p>Data
Augmentation</p>
      <p>User Input
Training Pairs</p>
      <p>NMT</p>
      <p>Reformulated</p>
      <p>Input</p>
      <p>We have defined specific characters like &lt;START&gt; and &lt;END&gt;
in order to specify start and end of each query. This character will
be later used in the training process as a criteria. Note that in
the character-level representation, we have also considered spaces,
certain diacritics and punctuations as unique characters, i.e., 40
unique characters in all. Once a query is mapped into indices, the
characters are embedded, i.e. each character is represented by a
one-hot vector and is multiplied by a trainable matrix with the size
of the input X embeddings size. The embedding allows the model
to group together characters that are similar for the task.
4.3</p>
    </sec>
    <sec id="sec-5">
      <title>Candidate Selection</title>
      <p>Our scoring heuristic calculates a sequence of feature scores for
each token from the prepared vocabulary. The key motivation is
to separate these tokens into +ve (correct) and ve (incorrect)
buckets. We achieve this by combing three distributional atributes.
First, since our vocabulary is derived from user log queries, we
can associate the individual tokens to the rank of its constituent
queries. Second, we can also afiliate a token to its individual
frequency within the vocabulary. And third, by the membership of
the tokens to selected legal lexicons. Our selected lexicons
comprise of extracted vocabulary from headnotes ( 217K ) derived
from US legal caselaw documents, legal names consisting of judge
( 67K ) and expert witness ( 388K ) names derived legal master
databases. We also use a secondary lexicon of common US english
names ( 234K ).</p>
      <p>Let Q be an ordered set of distinct legal queries derived from
user logs and ranked by frequency. Q ) fq1; q2; : : : ; qr g where r
is the rank of the query; r 2 R. Let R denote an ordered set of ranks;
R ) f1; 2; : : : ; Lg, where L is the length of Q i.e., total number of
distinct queries. Let ▽ ) fx1; x2; : : : ; xl g denote the vocabulary of
distinct tokens derived from Q where l is length of the individual
query. For any given token x in vocabulary ▽, it can belong to a
subset of queries Q^; Q^ Q. This implies that the token can mapped
to a closed set of ranks R^; R^ R. E.g., the token discriminatory can
belong to multiple queries within Q, hence R^ could be a closed set
e.g., f6; 37; 763; 23445g.
4.3.1 Mean Rank Score: Given R^ R, for a token x 2 Q, R^ can
be defined as fr1; r2; : : : ; rl g. We compute the mean rank score (ξ )
as follows:
where jR^j is size of R^.
4.3.2 Neighbor Rank Score: Given a token x0, it can co-occur
alongside other tokens from the vocabulary contained to the queries
under investigation. Let ▽^ ) fx1; x2; : : : ; xl g denote the subset of
tokens co-occurring alongside x . For every candidate token inside
▽^, we have a corresponding mean rank score ξ derived from
equation 2. We restrict the window of co-occurrence to 2 neighbors, one
before and after the token. Let ξ^ be the set of corresponding mean
rank scores; ξ^ ) fx1; x2; : : : ; xl g The neighbor rank score ( χ ) is
computed as:
l
∑1
ξ = i=1
jR^j
ri</p>
      <p>L
χ =
l
∑ ξi
i=1 jξ^j
ζ =
ϵ
j▽j
(2)
(3)
(4)
is computed as follows:</p>
      <p>8&gt;1; if (x 2 ▽H ) _ (x 2 ▽J ) _ (x 2 ▽E ) _ (x 2 ▽C )
ϕ = &lt;&gt; 1 (5)
&gt;&gt; ; otherwise
: 2
4.3.5 Relevance Score: Finally, a relevance score (Ω) is
computed by combining all the scores derived from equations 2, 3, 4
and 5 as follows:
Ω = ϕ (1 1 ) (1 e χ ) (1 1 ) (6)
e2ξ + 1 1 + ζ
hTe relevance score expresses the relative importance of a token
and can be used to classify a word into +ve or ve bucket. We
establish this separation by using a cut-of threshold ( 0.83) obtained
via trial and error experiments.
4.4</p>
    </sec>
    <sec id="sec-6">
      <title>Ranking Strategy using FastText</title>
      <p>
        Traditional approaches to representing rare and OOV words follow
assigning a random vector [
        <xref ref-type="bibr" rid="ref25">24</xref>
        ] or binning all rare words into a new
“UNK” word type. Another popular technique is to encode word
definitions with an external resource (Long et al., 2016) and train
at the morpheme level [
        <xref ref-type="bibr" rid="ref26">25</xref>
        ]. Creating semantic representations for
OOV words is a dificult NLP task. And word-based (Mikolov et
al., 2013; aka word2vec)[
        <xref ref-type="bibr" rid="ref27">26</xref>
        ] approaches do not contribute well to
resolve this problem.
      </p>
      <p>Token Score Token Score
roberds 0.9967 cbreach 0.9839
robers 0.9962 bfreach 0.9771
robergs 0.9913 onbreach 0.9684
robertus 0.9851 breachh 0.9683
robertson 0.9797 bebreach 0.9659
robert 0.9777 breachj 0.9657
rowert 0.9766 breachn 0.9643
rochfort 0.9758 ofbreach 0.9641
rogerts 0.9756 mcbreach 0.9627
robtert 0.9731 orbreach 0.9612</p>
      <p>Table 2: Top-10 Similar Words by fastText</p>
      <p>
        Character-based embedding approaches are more suited to
handle the OOV problem (Bojanowski et al., 2017; aka fastText)[
        <xref ref-type="bibr" rid="ref28">27</xref>
        ].
For mapping the +ve tokens to their corresponding variants
(incorrect ve counterparts), we used fastText [
        <xref ref-type="bibr" rid="ref29">28</xref>
        ]. fastText is a
character-based embedding approach that it is well-suited to
produce embeddings for OOV words. It’s able to do this by learning
vectors for character n-grams within the word and summing those
vectors to produce the final vector or embedding for the word itself.
For training, we set the embedding size to 100 and the training
window to 10. We also set alpha value to 0.025, min and max values of
n to 2 and 6 respectively. The embedding matrix was created using
a batch size of 10K words in 100 epochs. We trained fastText
embeddings on the 29M NL queries using a p3.2x large EC2 instance
with 1 Tesla V 100 GPU. Table 2 shows top 10 most similar words
for the OOV +ve word “roberts” (left) and OOV ve word “breach”.
4.5
      </p>
      <p>uQery Augmentation
Legal names like judge, expert witness, atorney names etc. are
often misspelled by users during search. Since we were not able
4.3.3 Frequency Score: Let ϵ denote the frequency of a token;
x 2 ▽. Frequency score (ζ ) is a normalized value representing the
importance of frequency of occurrence of a token in the corpus. It
is defined as follows:
4.3.4 Lexicon Membership Score: Let ▽H denote the
vocabulary of tokens derived from headnotes. Let ▽J denote the
vocabulary of tokens derived from judge master (judge name database)
and let ▽E denote tokens from expert witness database. Let ▽C
indicate all the tokens from common valid US English names
vocabulary. For any given token x , the lexicon membership score (ϕ )</p>
      <p>Input</p>
      <p>Previous</p>
      <p>Hidden
Embedding</p>
      <p>GRU
(a) Encoder</p>
      <p>Input
Embedding</p>
      <p>Previous</p>
      <p>Hidden
ReLU</p>
      <p>GRU
Softmax
(b) Decoder
to capture a considerable amount of these errors from query logs
(real world data), we decided to synthetically augment these type
of errors and generate queries for legal names algorithmically. For
this purpose, we took all the names (+ve instances) from our legal
corpora and applied a variant of Needleman-Wunsch algorithm
to create its ve counterparts.</p>
      <p>hTe distance computation is identical to Levenshtein except that
character mistakes are given diferent weights depending on how
far two characters are on a standard keyboard layout (QWERTY).
hTe weights are assigned by projecting the keyboard characters
onto a cartesian system. For e.g., A to S is given a mistake weight
of 0.4, while A to D is a 0.6. We generate query pairs using 4 types of
transformation - addition, deletion, replacement and transposition.
Table 3 shows a few of the generated examples for augmentation.</p>
      <sec id="sec-6-1">
        <title>Misspelled</title>
      </sec>
      <sec id="sec-6-2">
        <title>Corrected</title>
        <p>In previous sections, we discussed the need to segregate the
vocabulary into +ve and ve tokens and the use of fastText character
n-grams or subwords to capture word mappings (+ve to ve). At
the end of the candidate selection process, the entire vocabulary is
broken into two groups of 180K +ve and 830K ve tokens. At
the end of ranking using fastText, we end up with around 2.4M
legal term mapping and 50K legal name mapping. The legal name
mapping is expanded via the augmentation process elaborated in
the previous section to around 1.5M pairs. The legal term and
name mappings are then matched against the indexed 60M user
queries to create query pairs that will be used for training our
translation models.
4.7</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Neural Machine Translation</title>
      <p>
        Most NMT systems follow the encoder-decoder framework with
atention mechanism proposed by Bahdanau et al. [
        <xref ref-type="bibr" rid="ref30">29</xref>
        ]. Given a
source query q = q1 qi qI and a target query q+ =
q1+ q+j q +J, we aim to directly model the translation
probability as:
      </p>
      <p>P (q+ jq ; ) =</p>
      <p>
        J
∏ P (qj jq+&lt;j ; q ; )
1
where is a set of parameters and q+&lt;j is a sequence of previously
generated target characters.
4.7.1 Encoder: We use an RNN to architect an encoder. The
Encoder outputs a value for every character from the input query.
hTe task of the encoder is to provide a representation of the input
query. The input is a sequence of characters, for which the
embedding matrix is constructed using fastext[
        <xref ref-type="bibr" rid="ref29">28</xref>
        ]. Also to get the right
context, we explore both uni and bi-directional RNNs here. For
every input character the encoder outputs a vector and a hidden state,
(7)
and uses the hidden state for the next input character. Figure 4(a)
portrays a simple overview of the encoder.
      </p>
      <p>Output</p>
      <p>Hidden</p>
      <p>Output</p>
      <p>Hidden
4.7.2 Decoder: The decoder is also built using a RNN. It takes the
same representation of the input context along with the previous
hidden state and output character prediction, and generates a new
hidden decoder state and a new output character prediction. The
decoder is a forward RNN (uni-directional) with GRUs predicting
the translation y character by character. This prediction takes the
form of a probability distribution over the entire output vocabulary
(100 characters). At every step of decoding, the decoder is given
an input character and hidden state. The initial input character is
the start of query character &lt;START&gt;, and the first hidden state
is the context vector (the encoder’s last hidden state). Figure 4(b)
illustrates a decoder and its associated states. The probability of
generating the jth word yj is:
2 ψj 1 37</p>
      <p>P (q+j jq+&lt;j ; q ; θ ) = softmax *., 666466 ϕκjj 75777 /-+ (10)
where ψj 1 is the character embedding of the j 1th target word, ϕ j
is the decoder’s hidden state of time j, and κj is the context vector
at time j. The state ϕ j is computed as:</p>
      <p>(
ϕ j = GRU ϕ j 1;
[ ψj 1 ]
κj
; ϕ
)
(11)</p>
      <p>
        &lt;END&gt;
4.8 Attention Mechanism
hTe atention mechanism was introduced to address the limitation
of modeling long dependencies and the eficient usage of memory
for computation. It intervenes as an intermediate layer between the
encoder and the decoder, having the objective of capturing the
information from the sequence of tokens that are relevant to the
contents of the query [
        <xref ref-type="bibr" rid="ref14">13</xref>
        ]. The mechanism is shown in Figure 5. The
basic problem that the mechanism solves is that instead of forcing
the network to encode all parameters into one fixed-length vector,
it allows the network to make use of the input sequence.
      </p>
      <p>Key to our approach is the use of a character-based model with
an atention mechanism, which allows for orthographic errors to
be captured and avoids the OOV problem sufered by word-based
NMT methods. Unlike the encoder-decoder model that uses the
same context vector for every hidden state of the decoder, atention
computes the context vector cj as a weighted sum of the source
annotations:
where the atention weight ∆ji is computed as:</p>
      <p>I
κj = ∑</p>
      <p># #
∆ji hi
i=1
∆ji =</p>
      <p>exp ( ji )
∑iI=1 exp ( ji )</p>
      <p>#
ji = αaT tanh (βaϕ j 1 + γahi )
where αa , βa and γa are the weight matrices, and ji is the model
# #
that scores how well ϕ j 1 and hi match.
(12)
(13)
(14)</p>
    </sec>
    <sec id="sec-8">
      <title>4.9 Gated Recurrent Unit (GRU)</title>
      <p>
        In practice, a simple RNN is dificult to train properly due to the
problems of the vanishing/exploding gradient as described in [
        <xref ref-type="bibr" rid="ref31">30</xref>
        ].
hTerefore, in this work, we utilize GRU (Cho et al., 2014 [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]) as an
improved version of simple RNN which can alleviate the gradient
problem. Along the lines of Long Short Term Memory (LSTM), in
GRUs the forget and input gates are coupled into an update gate zt .
hTe advantage of GRUs over LSTMs is the smaller number of gates
that makes them less memory as well as computationally intense,
which is often a critical aspect for NMT.
      </p>
      <p>Given an input sequence (x1, x2, . . . , xN), GRU can be adopted
as an encoder to compute the corresponding sequence of hidden
state ht = (h1, h2, . . . , hN ) as:
zt = σ (Wx z xt + Uhz ht 1)
rt = σ (Wxr xt + Uhr ht 1)
Hht = tanh (Wxh xt + Ur h (r
ht 1))
(15)
(16)
(17)
ht = (1 zt ) ht 1 + zt ⊙ Hht (18)
where σ is the sigmoid function and is an element-wise
multiplication operator. zt , rt and Hht are the update gate, reset gate and
candidate activation, respectively. Wx z , Wxr , Wxh , Uhz , Uhr and
Ur h are related weight matrices.</p>
    </sec>
    <sec id="sec-9">
      <title>5. EXPERIMENTS</title>
    </sec>
    <sec id="sec-10">
      <title>5.1 Sequence Representation</title>
      <p>An input or output sequence for an error correction system can be
represented in diferent levels. At the character-level, a sequence
is processed character by character. When searching for errors,
humans often consider a bigger sequence of characters at word-level.
Clause-level, phrase-level, sentence-level and text-level are other
common representations for modeling NMT sequences. In our
research, we worked at character-level where each character in an
input sequence is mapped to a real-valued number and its
corresponding embedding. In order to model linguistic dependencies in
each sequence, we took a selected list of characters into account
including space. This enabled us to deal with diferent kinds of
errors and a larger range of characters in each sequence. On the other
hand, the output of our models were also represented at the
character level.
5.2</p>
    </sec>
    <sec id="sec-11">
      <title>Selection Strategy</title>
      <p>In our experiments, for tuning and evaluation purposes we used
a gold reference annotation following a simple selection strategy.
hTe strategy is used to check whether for a search query pair (x; y),
the left query x is erroneous, and if so, whether the similar
candidate y is a correct correction or else provide the most likely
correction. If x was not incorrect, we propagate query x to the gold
reference y, i.e. for those cases, we have it identity as a true
negative. For training our models, we split the 4M query pairs into
three splits - train, dev and test in the ratio 99:995 : 0:005 : 0:005
respectively. This produces 20 K queries for dev and test set each.
hTe true negatives in these sets (i.e. entries that do not need to be
corrected) account to about 2%. The validation of annotation was
mostly done via subject mater experts.
5.3</p>
    </sec>
    <sec id="sec-12">
      <title>Model Architecture</title>
      <p>In this section, we discuss about the various architectures
experimented for neural machine translation.
5.3.1 NMT I:. The first architecture we experimented with, for
the task of NMT is a word-based model. The input layer uses a
dense vector representation of the vocabulary (144,964 words)
derived from query pairs followed by an embedding layer of
dimension 10X1024. The length of the sequence of the query is constrained
to a maximum fixed length of 10 words. This architecture uses a
repeat vector along with 1024 GRU units. This is the only word-based
architecture we experimented with for NMT.
5.3.2 NMT II:. Architecture II follows a similar architecture as
NMT I, except the word sequence is replaced with a character
sequence. The sequence length here is constrained by two factors: (i)
the total number of characters that constitute the vocabulary (40
characters) which includes special characters and, (ii) the length
of the sequence which is set to fixed maximum length of 100
characters. Both architectures NMT I and II do not use atention and
use a single embedding at the character level. Figure 6 shows the
architectural layers for NMT models I and II.
5.3.3 NMT III. In the third architecture setup, we use two
character embedding layers which is diferent from NMT I and II
architectures which uses only one embedding. NMT III also does not use
a repeat vector layer. This is a character-based only architecture
and does not use atention. Figure 7 illustrates the architecture of
NMT model III. The dimensions of embedding and time-distributed
layers are similar to NMT II.</p>
      <p>Input
10
Embedding
10 X 1024</p>
      <p>GRU
1024 tanh
Repeat Vector
10 X 1024</p>
      <p>GRU
1024 tanh
Time Distributed
10 X 144964 ReLU
(a) Word-based</p>
      <p>Input 1
100
Embedding 1
100 X 1024
GRU 1
1024 tanh
Input 1
100
Embedding 1
100 X 1024
GRU 1
100 X 1024
Embedding
100 X 1024</p>
      <p>GRU
1024 tanh
Repeat Vector
100 X 1024</p>
      <p>GRU
1024 tanh
Time Distributed
100 X 40 ReLU
(b) Char-based</p>
      <p>Input 2
100
Embedding 2
100 X 1024
GRU 2
1024 tanh
Input 2
100
Embedding 2
100 X 1024
GRU 2
100 X 1024
Dot 1
100 X 100
Attention
100 X 100</p>
      <p>Dot 2
100 X 1024
Time Distributed 2
100 X 40
5.4</p>
    </sec>
    <sec id="sec-13">
      <title>Training</title>
      <p>For our experiments, we used p3.16x large EC2 instance with 8
Tesla V 100 GPUs. Table 4 shows the training time (in minutes) for
the various architecture setups (100 epochs with a batch size of
512). The NMT models were implemented using TensorFlow.</p>
      <p>EVALUATION METRICS
hTis section presents evaluation methods used to evaluate the NMT
models. Although various methods can be used to evaluate a
machine translation system, for our use case of query reformulation,
evaluation is limited to a binary classification of predictions where
the matching elements are considered as true predictions and
others as false. However, a good evaluation must include more details
about this comparison. Over the years, a number of metrics have
been proposed for evaluation of query correction, each motivated
by weaknesses of previous metrics. There is no single best
evaluation metric and the performance of a metric depends on the
research goals and application. Thus, we have evaluated our system
based on the most popular metrics to date.</p>
      <p>
        In classification tasks, accuracy is one of the most widely used
performance measure. Accuracy corresponds to the ratio of
correctly classified inputs to the total number of inputs. One drawback
of this metric is that correction actions are completely ignored. In
order to take the correction actions into scope, we use additional
performance metrics like precision, recall and F-score. For our
experiments, we use F0:5, since it places twice as much emphasis on
precision as on recall. This metric has also been used in
CoNLL2014 shared task [
        <xref ref-type="bibr" rid="ref32">31</xref>
        ]. We also use more modified metrics such as
BLEU , GLEU and Character n-gram F-score (CH RF ) thus gaining
beter insight into translation system’s performance. These metrics
are explained in the following subsections.
6.1
      </p>
      <p>
        BLEU
hTe Bilingual Evaluation Understudy Score ( BLEU ) is a widely
popular metric for machine translation [
        <xref ref-type="bibr" rid="ref33">32</xref>
        ]. For our evaluations, in
order to apply BLEU to individual queries, we used smoothed BLEU ,
whereby we add 1 to each of the n-gram counts before we calculate
the n-gram precisions. This prevents any of the n-gram precisions
from being zero, and thus will result in non-zero values even when
there are not any 4-gram matches.
6.2
Recently, Napoles et al. ameliorated BLEU metric for evaluation
of grammatical error correction systems and proposed the
Generalized Language Evaluation Understanding (GLEU ) [
        <xref ref-type="bibr" rid="ref34">33</xref>
        ][
        <xref ref-type="bibr" rid="ref35">34</xref>
        ]. For
GLEU , the precision is modified to assign extra weight to the
ngrams that are present in the reference and the hypothesis, but
not those of the input. We have used the last update of the original
implementation of the GLEU introduced in [
        <xref ref-type="bibr" rid="ref35">34</xref>
        ].
6.3
      </p>
    </sec>
    <sec id="sec-14">
      <title>Character n-gram F-score (CH RF )</title>
      <p>
        CH RF calculates the sentence level character n-gram F -score as
described in Maja Popovic, 2015 [
        <xref ref-type="bibr" rid="ref36">35</xref>
        ]. It is shown to correlate very
well with human rankings of diferent machine translation outputs,
especially for morphologically rich targets. For our study, we use
CH RF 1 (standard F -score, β = 1) with uniform n-gram weights.
7.
      </p>
    </sec>
    <sec id="sec-15">
      <title>RESULTS</title>
      <p>In the previous section, we presented the translation models for
the task of query reformulation and the details of the models were
explained. In this section, the results obtained from the models are
discussed. Table 6 and 7 shows results of our correction models
using the evaluation metrics discussed in the previous section.
7.1</p>
    </sec>
    <sec id="sec-16">
      <title>Baseline</title>
      <p>We define pairs of source queries and their ground-truth
annotations as the baseline of our NMT models. In this baseline, we
assume that none of our implemented models intervene in the task of
correction and only references are considered as correction. Simply
saying, baseline is a model that makes no corrections on the input
query. It enables us to interpret the performance of each model in
comparison to the default results.
7.2</p>
    </sec>
    <sec id="sec-17">
      <title>Winners</title>
      <p>As we expect, since the baseline system contains the ground-truth
correction, the BLEU and the GLEU scores for the baseline system
have a maximum value 1.00. Using these metrics, the bi-directional
NMT model (model IV) with the atention layer shows higher scores
in comparison to other models, i.e., F -score = 94.11%, BLEU = 0.9255
and GLEU = 0.9256. Interestingly, CH RF scores of models III and
IV (bi-directional) are almost identical. The choice of metric also
portrays few other insights, for example CH RF performs poorly
on the addition operation. Similarly, GLEU metric is a bad choice
for operations replacement and transposition while performs very
well on other type of operations.</p>
      <p>Model
NMT I
NMT II
NMT III
NMT IV</p>
      <p>P
83.76
86.24
91.17
93.08</p>
      <p>Uni</p>
      <p>R
85.37
84.61
80.04
90.79</p>
      <p>F0:5
84.08
85.90
90.74
92.61</p>
      <p>P
83.91
88.64
92.77
93.61</p>
      <p>Bi</p>
      <p>R
81.01
87.22
93.86
96.19</p>
      <p>F0:5
83.31
88.35
92.98
94.11
contact void due to barratry or champterty
nondisclsoure unenforceable lackof consideration
summary judgment for breach o fcontract</p>
      <p>declaratry judgmentnd discovery
business judgment rulegross negligencce</p>
      <p>tennesee power of atorneyey
collaterale stopp el amount of damages
agreement to remove fence statue of drauds
purpose of motion inlimine are evidentary
oficerwilliam alexsander</p>
      <p>karabelas
associate justise ruth bader ginsberg
oficerwilliam alexsander
karabelas</p>
      <p>Correct
contract void due to barratry or champerty
nondisclosure unenforceable lack of consideration
summary judgment for breach of contract</p>
      <p>declaratory judgment and discovery
business judgment rule and gross negligence</p>
      <p>tennessee power of atorney
collateral stoppel amount of damages
agreement to remove fence statute of frauds
purpose of motion in limine are evidentiary
oficer william alexander</p>
      <p>karabelas
associate justice ruth bader ginsburg
oficer william alexander
karabelas
A few examples of source queries and its output corrections for
some of our trained NMT models are illustrated in Table 5. The red
tags refer to the incorrect tokens in the input and the green tags
are the correctly predicted tokens by our trained models. Looking
carefully at the distribution of incorrect prediction of correct
input words, we can deduce that the models perform less sensibly
when the size of sequence become gradually bigger. To prove this,
we evaluated the models by limiting the sequences to a fixed size.
Figure 9 shows the atention heatmap for a sample query.</p>
    </sec>
    <sec id="sec-18">
      <title>CONCLUSION</title>
      <p>In this paper, we have investigated the potential of using
characterlevel information and subword-based NMT models for the problem
of query reformulation. First, we extended the encoder with a
character atention mechanism for learning beter source side
representations. Then, we incorporated information about source side
characters into the decoder with atention, so that the
characterlevel information can cooperate with the word-level information
to beter control the translation. Our experiments demonstrate the
efectiveness of our models and proves that both OOV and frequent
words benefit from the character-level information.</p>
    </sec>
    <sec id="sec-19">
      <title>FUTURE WORK</title>
      <p>
        For future research, we plan to explore translation models with
action level, i.e., prevent over learning of models by not training
them over correct input tokens (action =“OK”). Recently,
reinforcement learning techniques [
        <xref ref-type="bibr" rid="ref37">36</xref>
        ] and End-to-End Memory Networks
[
        <xref ref-type="bibr" rid="ref38">37</xref>
        ] have been used for the task of error correction. We plan to
explore these networks to read the input sequence multiple times
in order to make an output and also update memory contents at
each step. We also plan to extend our work to question answering
for grammar error correction and apply reformulation to boolean
queries.
c
h
r
e
Misspelled
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>R.</given-names>
            <surname>Pearce</surname>
          </string-name>
          and
          <string-name>
            <given-names>J.</given-names>
            <surname>Mcginnis</surname>
          </string-name>
          , “
          <article-title>The great disruption: How machine intelligence will transform the role of lawyers in the delivery of legal services,” Fordham Law Review</article-title>
          , vol.
          <volume>82</volume>
          , p.
          <volume>3041</volume>
          ,
          <issue>05</issue>
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>M. D.</given-names>
            <surname>Kernighan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. W.</given-names>
            <surname>Church</surname>
          </string-name>
          , and
          <string-name>
            <given-names>W. A.</given-names>
            <surname>Gale</surname>
          </string-name>
          , “
          <article-title>A spelling correction program based on a noisy channel model</article-title>
          ,”
          <source>in Proceedings of the 13th Conference on Computational Linguistics - Volume</source>
          <volume>2</volume>
          , COLING '
          <fpage>90</fpage>
          ,
          <string-name>
            <surname>(Stroudsburg</surname>
          </string-name>
          , PA, USA), pp.
          <fpage>205</fpage>
          -
          <lpage>210</lpage>
          , Association for Computational Linguistics,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>I.</given-names>
            <surname>Sutskever</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Vinyals</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Q. V.</given-names>
            <surname>Le</surname>
          </string-name>
          , “
          <article-title>Sequence to sequence learning with neural networks,”</article-title>
          <source>in Advances in neural information processing systems</source>
          , pp.
          <fpage>3104</fpage>
          -
          <lpage>3112</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Arunprasath</surname>
          </string-name>
          and
          <string-name>
            <given-names>B. Venkata</given-names>
            <surname>Nagaraju</surname>
          </string-name>
          , “
          <article-title>Deep ensemble learning for legal query understanding</article-title>
          ,”
          <source>in Proceedings of CIKM 2018 Workshop on Legal Data Analytics and Mining (LeDAM</source>
          <year>2018</year>
          ),
          <article-title>CEUR-WS</article-title>
          .org,
          <year>October 2018</year>
          . To appear.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Xu</surname>
          </string-name>
          and
          <string-name>
            <given-names>W. B.</given-names>
            <surname>Croft</surname>
          </string-name>
          , “
          <article-title>Query expansion using local and global document analysis</article-title>
          ,
          <source>” in Proceedings of the 19th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval</source>
          , SIGIR '
          <fpage>96</fpage>
          , (New York, NY, USA), pp.
          <fpage>4</fpage>
          -
          <lpage>11</lpage>
          , ACM,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>H.</given-names>
            <surname>Cui</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-R.</given-names>
            <surname>Wen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-Y.</given-names>
            <surname>Nie</surname>
          </string-name>
          , and W.-Y. Ma, “
          <article-title>Probabilistic query expansion using query logs,”</article-title>
          <source>in Proceedings of the 11th International Conference on World Wide Web, WWW '02</source>
          , (New York, NY, USA), pp.
          <fpage>325</fpage>
          -
          <lpage>332</lpage>
          , ACM,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>B. M.</given-names>
            <surname>Fonseca</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Golgher</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Pôssas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Ribeiro-Neto</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>N.</given-names>
            <surname>Ziviani</surname>
          </string-name>
          , “
          <article-title>Conceptbased interactive query expansion</article-title>
          ,”
          <source>in Proceedings of the 14th ACM International Conference on Information and Knowledge Management</source>
          , CIKM '
          <fpage>05</fpage>
          , (New York, NY, USA), pp.
          <fpage>696</fpage>
          -
          <lpage>703</lpage>
          , ACM,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>J.</given-names>
            <surname>Gao</surname>
          </string-name>
          and J.-Y. Nie, “
          <article-title>Towards concept-based translation models using search logs for query expansion</article-title>
          ,”
          <source>in Proceedings of the 21st ACM International Conference on Information and Knowledge Management</source>
          , CIKM '
          <fpage>12</fpage>
          , (New York, NY, USA), pp.
          <volume>1</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>1</lpage>
          :
          <fpage>10</fpage>
          ,
          <string-name>
            <surname>ACM</surname>
          </string-name>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>S.</given-names>
            <surname>Riezler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Vasserman</surname>
          </string-name>
          , “
          <article-title>Translating queries into snippets for improved query expansion</article-title>
          ,” in COLING,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>D.</given-names>
            <surname>Britz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q. V.</given-names>
            <surname>Le</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Pryzant</surname>
          </string-name>
          , “
          <article-title>Efective domain mixing for neural machine translation</article-title>
          .,” in
          <string-name>
            <surname>WMT (O. Bojar</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Buck</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Chaterjee</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Federmann</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          <string-name>
            <surname>Graham</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Haddow</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Huck</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Jimeno-Yepes</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Koehn</surname>
          </string-name>
          , and J. Kreutzer, eds.), pp.
          <fpage>118</fpage>
          -
          <lpage>126</lpage>
          , Association for Computational Linguistics,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>K.</given-names>
            <surname>Cho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. van Merriënboer</given-names>
            ,
            <surname>Ç. Gülçehre</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Bahdanau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Bougares</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Schwenk</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          , “
          <article-title>Learning phrase representations using rnn encoder-decoder for statistical machine translation</article-title>
          ,”
          <source>in Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)</source>
          ,
          <source>(Doha, Qatar)</source>
          , pp.
          <fpage>1724</fpage>
          -
          <lpage>1734</lpage>
          , Association for Computational Linguistics, Oct.
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <source>r 0.00 a 0.00 w 0.00 d 0.00 e 0.01 0.00 d tce e 0.00 e rro n 0.00 C i 0.00 t 0.00 s 0.00 i 0.00 r 0.00 h 0.01 c 0.20 0.8 0.6 0.4 0.2 0</source>
          .
          <fpage>0</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>W.</given-names>
            <surname>Chan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Jaitly</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q. V.</given-names>
            <surname>Le</surname>
          </string-name>
          , and
          <string-name>
            <given-names>O.</given-names>
            <surname>Vinyals</surname>
          </string-name>
          , “Listen, atend and spell,” CoRR, vol.
          <source>abs/1508.01211</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>D.</given-names>
            <surname>Bahdanau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Cho</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          , “
          <article-title>Neural machine translation by jointly learning to align and translate</article-title>
          ,” CoRR, vol.
          <source>abs/1409.0473</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>A.</given-names>
            <surname>Graves</surname>
          </string-name>
          , “
          <article-title>Generating sequences with recurrent neural networks</article-title>
          .,
          <source>” CoRR</source>
          , vol.
          <source>abs/1308.0850</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>R.</given-names>
            <surname>Jackendof</surname>
          </string-name>
          , Semantic Structures. Cambridge, MA: MIT Press,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>R.</given-names>
            <surname>Weng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.-Y.</given-names>
            <surname>Dai</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Chen</surname>
          </string-name>
          , “
          <article-title>Neural machine translation with word predictions</article-title>
          .,” in
          <string-name>
            <surname>EMNLP (M. Palmer</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Hwa</surname>
          </string-name>
          , and S. Riedel, eds.), pp.
          <fpage>136</fpage>
          -
          <lpage>145</lpage>
          , Association for Computational Linguistics,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>S.</given-names>
            <surname>Jean</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Cho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Memisevic</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          , “
          <article-title>On using very large target vocabulary for neural machine translation,” in Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th</article-title>
          <source>International Joint Conference on Natural Language Processing (Volume 1: Long Papers)</source>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>10</lpage>
          , Association for Computational Linguistics,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>Y.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Tang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Ouyang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Kang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Yin</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Chang</surname>
          </string-name>
          , “Learning to rewrite queries,”
          <source>in Proceedings of the 25th ACM International on Conference on Information and Knowledge Management</source>
          , CIKM '
          <fpage>16</fpage>
          , (New York, NY, USA), pp.
          <fpage>1443</fpage>
          -
          <lpage>1452</lpage>
          , ACM,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>K.</given-names>
            <surname>Kukich</surname>
          </string-name>
          , “
          <article-title>Techniques for automatically correcting words in text,” ACM Comput</article-title>
          . Surv., vol.
          <volume>24</volume>
          , pp.
          <fpage>377</fpage>
          -
          <lpage>439</lpage>
          , Dec.
          <year>1992</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>W. E.</given-names>
            <surname>Winkler</surname>
          </string-name>
          , “
          <article-title>String comparator metrics and enhanced decision rules in the fellegi-sunter model of record linkage</article-title>
          ,”
          <source>in Proceedings of the Section on Survey Research</source>
          , pp.
          <fpage>354</fpage>
          -
          <lpage>359</lpage>
          ,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>R. A.</given-names>
            <surname>Wagner and M. J. Fischer</surname>
          </string-name>
          , “
          <article-title>The string-to-string correction problem</article-title>
          ,
          <source>” J. ACM</source>
          , vol.
          <volume>21</volume>
          , pp.
          <fpage>168</fpage>
          -
          <lpage>173</lpage>
          , Jan.
          <year>1974</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>V.</given-names>
            <surname>Levenshtein</surname>
          </string-name>
          , “
          <article-title>Binary Codes Capable of Correcting Deletions, Insertions</article-title>
          and Reversals,”
          <source>Soviet Physics Doklady</source>
          , vol.
          <volume>10</volume>
          , p.
          <fpage>707</fpage>
          ,
          <year>1966</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>E.</given-names>
            <surname>Loper</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.</given-names>
            <surname>Bird</surname>
          </string-name>
          , “
          <article-title>Nltk: The natural language toolkit</article-title>
          ,”
          <source>in Proceedings of the ACL-02 Workshop on Efective Tools and Methodologies for Teaching Natural Language Processing and Computational Linguistics - Volume</source>
          <volume>1</volume>
          , ETMTNLP '
          <fpage>02</fpage>
          ,
          <string-name>
            <surname>(Stroudsburg</surname>
          </string-name>
          , PA, USA), pp.
          <fpage>63</fpage>
          -
          <lpage>70</lpage>
          , Association for Computational Linguistics,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>B.</given-names>
            <surname>Dhingra</surname>
          </string-name>
          , H. Liu,
          <string-name>
            <given-names>R.</given-names>
            <surname>Salakhutdinov</surname>
          </string-name>
          , and W. W. Cohen, “
          <article-title>A comparative study of word embeddings for reading comprehension</article-title>
          ,” CoRR, vol.
          <source>abs/1703.00993</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>T.</given-names>
            <surname>Luong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Socher</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Manning</surname>
          </string-name>
          , “
          <article-title>Beter word representations with recursive neural networks for morphology,”</article-title>
          <source>in Proceedings of the Seventeenth Conference on Computational Natural Language Learning</source>
          , pp.
          <fpage>104</fpage>
          -
          <lpage>113</lpage>
          , Association for Computational Linguistics,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>T.</given-names>
            <surname>Mikolov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Chen</surname>
          </string-name>
          , G. Corrado, and
          <string-name>
            <given-names>J.</given-names>
            <surname>Dean</surname>
          </string-name>
          , “
          <article-title>Eficient estimation of word representations in vector space,” CoRR</article-title>
          , vol.
          <source>abs/1301.3781</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>P.</given-names>
            <surname>Bojanowski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Grave</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Joulin</surname>
          </string-name>
          , and T. Mikolov, “
          <article-title>Enriching word vectors with subword information</article-title>
          ,
          <source>” TACL</source>
          , vol.
          <volume>5</volume>
          , pp.
          <fpage>135</fpage>
          -
          <lpage>146</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          [28]
          <string-name>
            <given-names>P.</given-names>
            <surname>Bojanowski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Grave</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Joulin</surname>
          </string-name>
          , and T. Mikolov, “
          <article-title>Enriching word vectors with subword information,” Transactions of the Association for Computational Linguistics</article-title>
          , vol.
          <volume>5</volume>
          , pp.
          <fpage>135</fpage>
          -
          <lpage>146</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref30">
        <mixed-citation>
          [29]
          <string-name>
            <given-names>D.</given-names>
            <surname>Bahdanau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Cho</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          , “
          <article-title>Neural machine translation by jointly learning to align and translate</article-title>
          ,” CoRR, vol.
          <source>abs/1409.0473</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref31">
        <mixed-citation>
          [30]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Simard</surname>
          </string-name>
          , and
          <string-name>
            <given-names>P.</given-names>
            <surname>Frasconi</surname>
          </string-name>
          , “
          <article-title>Learning long-term dependencies with gradient descent is dificult</article-title>
          ,
          <source>” IEEE Transactions on Neural Networks</source>
          , vol.
          <volume>5</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>157</fpage>
          -
          <lpage>166</lpage>
          ,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref32">
        <mixed-citation>
          [31]
          <string-name>
            <given-names>H. T.</given-names>
            <surname>Ng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Briscoe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Hadiwinoto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. H.</given-names>
            <surname>Susanto</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Bryant</surname>
          </string-name>
          , “
          <article-title>The conll-2014 shared task on grammatical error correction</article-title>
          ,”
          <source>in Proceedings of the Eighteenth Conference on Computational Natural Language Learning: Shared Task</source>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>14</lpage>
          , Association for Computational Linguistics,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref33">
        <mixed-citation>
          [32]
          <string-name>
            <given-names>K.</given-names>
            <surname>Papineni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Roukos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Ward</surname>
          </string-name>
          , and W.-J. Zhu, “
          <article-title>Bleu: a method for automatic evaluation of machine translation</article-title>
          ,”
          <source>in Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics</source>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref34">
        <mixed-citation>
          [33]
          <string-name>
            <given-names>C.</given-names>
            <surname>Napoles</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Sakaguchi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Post</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Tetreault</surname>
          </string-name>
          , “
          <article-title>Ground truth for grammatical error correction metrics,” in Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th</article-title>
          <source>International Joint Conference on Natural Language Processing (Volume 2: Short Papers)</source>
          , pp.
          <fpage>588</fpage>
          -
          <lpage>593</lpage>
          , Association for Computational Linguistics,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref35">
        <mixed-citation>
          [34]
          <string-name>
            <given-names>C.</given-names>
            <surname>Napoles</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Sakaguchi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Post</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J. R.</given-names>
            <surname>Tetreault</surname>
          </string-name>
          , “GLEU without tuning,
          <source>” CoRR</source>
          , vol.
          <source>abs/1605.02592</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref36">
        <mixed-citation>
          [35]
          <string-name>
            <given-names>M.</given-names>
            <surname>Popović</surname>
          </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>
          , (Lisbon, Portugal), pp.
          <fpage>392</fpage>
          -
          <lpage>395</lpage>
          , Association for Computational Linguistics, Sept.
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref37">
        <mixed-citation>
          [36]
          <string-name>
            <given-names>K.</given-names>
            <surname>Sakaguchi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Post</surname>
          </string-name>
          , and
          <string-name>
            <surname>B. Van Durme</surname>
          </string-name>
          , “
          <article-title>Grammatical error correction with neural reinforcement learning</article-title>
          ,
          <source>” in Proceedings of the Eighth International Joint Conference on Natural Language Processing (Volume 2: Short Papers)</source>
          , pp.
          <fpage>366</fpage>
          -
          <lpage>372</lpage>
          ,
          <source>Asian Federation of Natural Language Processing</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref38">
        <mixed-citation>
          [37]
          <string-name>
            <given-names>S.</given-names>
            <surname>Sukhbaatar</surname>
          </string-name>
          , a. Szlam,
          <string-name>
            <given-names>J.</given-names>
            <surname>Weston</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Fergus</surname>
          </string-name>
          , “
          <article-title>End-to-end memory networks,”</article-title>
          <source>in Advances in Neural Information Processing Systems</source>
          28 (
          <string-name>
            <surname>C. Cortes</surname>
            ,
            <given-names>N. D.</given-names>
          </string-name>
          <string-name>
            <surname>Lawrence</surname>
            ,
            <given-names>D. D.</given-names>
          </string-name>
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Sugiyama</surname>
          </string-name>
          , and R. Garnet, eds.), pp.
          <fpage>2440</fpage>
          -
          <lpage>2448</lpage>
          , Curran Associates, Inc.,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>