<!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>Pre-trained Contextual Embeddings for Litigation Code Classification</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Max Bartolo UCL</string-name>
          <email>m.bartolo@cs.ucl.ac.uk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kamil Tylinski Mishcon de Reya LLP</string-name>
          <email>alastair.moore@mishcon.com</email>
          <email>kamil.tylinski@mishcon.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>J-code</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Alastair Moore Mishcon de Reya LLP</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>In: Proceedings of the First International Workshop on AI and Intelligent Assistance for Legal Professionals in the Digital Workplace (LegalAIIA 2019)</institution>
          ,
          <addr-line>held in conjunction with ICAIL 2019</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <volume>17</volume>
      <issue>2019</issue>
      <abstract>
        <p>Models for a variety of natural language processing tasks, such as question answering or text classification, are potentially important components for a wide range of legal machine learning systems. These tasks may include examining whole legal corpora, but may also include a broad range of tasks that can support automation in the digital workplace. Importantly, recent advances in pre-trained contextual embeddings have substantially improved the performance of text classification across a wide range of tasks. In this paper, we investigate the application of these recent approaches on a legal time-recording task. We demonstrate improved performance on a 40class J-code classification task over a variety of baseline techniques. The best performing single model achieves performance gains of 2:23 micro-averaged accuracy points and 9:39 macro-averaged accuracy points over the next best classifier on the test set. This result suggests these techniques will find broad utility in the development of legal language models for a range of automation tasks.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Legal data comes in a variety of different forms,
from contracts and legal documents containing
technical language, to the variety of
correspondence between client and solicitor (from email to
transcripts), to billing and enterprise performance
management (EPM) systems used to support the
business of law.</p>
      <p>
        A traditional approach to text classification
tasks is to create a linear classifier (Logistic
regression or Support Vector Machine) on sentences
presented as bag of words. The main
disadvantage of this method is its inability to share
parameters among classes and features
        <xref ref-type="bibr" rid="ref7">(Joulin et al.,
2017)</xref>
        . Alternatively, the problem be approached
by means of neural networks
        <xref ref-type="bibr" rid="ref28">(Zhang et al., 2015)</xref>
        ,
where transformer architectures has proven to be
more appropriate for a wide variety of tasks, not
only text classification
        <xref ref-type="bibr" rid="ref23 ref4">(Vaswani et al., 2017; Dai
et al., 2019)</xref>
        .
      </p>
      <p>
        Importantly, incorporating pre-trained
contextual embeddings
        <xref ref-type="bibr" rid="ref16 ref17 ref5">(Peters et al., 2018; Radford
et al., 2018; Devlin et al., 2018)</xref>
        has led to
impressive performance gains across many natural
language processing tasks such as question
answering, natural language inference, sequence
labelling and text classification. Models with access
to pre-trained language knowledge currently
provide state-of-the-art results on the GLUE
benchmark1 tasks and also outperform human
baselines in some cases. The GLUE benchmark
consists of nine natural language understanding tasks
(e.g., natural language inference, sentence
similarity, etc.). Each comes with its own unique set
of examples and labels, ranging in size from 635
training examples (WNLI) to 393k (MNLI)
        <xref ref-type="bibr" rid="ref24">(Wang
et al., 2018)</xref>
        .
      </p>
      <p>However, legal text (whether it contains
technical language or simple correspondence) tends to
differ from the text corpora on which these
stateof-the-art language models are trained, such as
Wikipedia and BookCorpus. In this paper, towards
the goal of developing large multitask models for
different legal applications, we first demonstrate
the successful use of pre-trained language models
transferred to a legal domain task.</p>
      <p>
        We focus on the task of litigation code
classification, illustrated in Table 1, which is an important
sub-task in legal time-recording and for preparing
bills of costs for assessment by the courts. We
base our approach on fine-tuning BERT
(Bidirectional Encoder Representations from
Transformers), a transformer-based language representation
model,
        <xref ref-type="bibr" rid="ref5">(Devlin et al., 2018)</xref>
        and our evaluation
shows that a single pre-trained model achieves
significant performance gains over the next best
classifier on the test set.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        Text classification is a category of Natural
Language Processing (NLP) tasks with real-world
applications such as spam detection, fraud
identification
        <xref ref-type="bibr" rid="ref15">(Ngai et al., 2011)</xref>
        , and legal discovery
        <xref ref-type="bibr" rid="ref20">(Roitblat et al., 2010)</xref>
        . Formally, it is about
assigning a Boolean value to each pair of hdj ; cii 2
D C
        <xref ref-type="bibr" rid="ref21">(Sebastiani, 2002)</xref>
        , where D in our
example is a domain of narrative documents and
C = nc1; :::; cjCjo a set of J-Codes such that we
obtain a decision value for each narrative
document dj being classed as ci.
1https://gluebenchmark.com/leaderboard
Classification tasks require large quantities of
training data, but in many domain-specific
applications the construction of a large training set is
very costly and requires the use of experts to
label data. The use of pretrained embeddings allows
models to obtain linguistic knowledge from very
large auxiliary corpora, often reduce the amount of
task-specific training data required for good
performance.
      </p>
      <p>
        Recent approaches to natural language
processing have revolved around neural methods for
inferring probability distributions over sequences
of words, referred to as language modelling
(LM), using deep learning architectures.
Recurrent Neural Network (RNN) based language
models, owing largely to their capacity for
learning sequential context, have been extensively
researched
        <xref ref-type="bibr" rid="ref11 ref2 ref25 ref27 ref28 ref8">(Mikolov et al., 2019; Chelba et al.,
2013; Zaremba et al., 2014; Wang and Cho, 2015;
Jozefowicz et al., 2016)</xref>
        despite various challenges
        <xref ref-type="bibr" rid="ref10 ref26">(Merity et al., 2017; Yang et al., 2017)</xref>
        . The
sequential nature of RNN-based models precludes
parallelization within training examples which
makes scaling to long sequence lengths and large
corpora challenging. The Transformer
architecture, relying on stacked self-attention and
pointwise, fully-connected layers, allows for
significantly more parallelization
        <xref ref-type="bibr" rid="ref23">(Vaswani et al., 2017)</xref>
        .
      </p>
      <p>
        One approach to developing deep architectures
for specific language tasks has been to exploit
feature representations learned from large datasets of
general purpose data such as Wikipedia. These
pre-trained approaches are now key components
in many natural language applications
        <xref ref-type="bibr" rid="ref12 ref2">(Mikolov
et al., 2013)</xref>
        . These concepts have also been
extended to the legal domain, including the creation
of the Law2Vec legal word embeddings, which
is likely to accelerate the progress in this research
area
        <xref ref-type="bibr" rid="ref1">(Chalkidis and Kampas, 2019)</xref>
        .
      </p>
      <p>
        There are generally two strategies for applying
pre-trained language models to downstream tasks:
feature-based and fine-tuning. The feature-based
approach, as was used in ELMo
        <xref ref-type="bibr" rid="ref16">(Peters et al.,
2018)</xref>
        , learns a fixed representation, or feature
space, on a large text corpus. More specifically,
ELMo develops a coupled forward LM and
backward LM approach as well as a linear combination
of the hidden representations stacked above each
input word for each end task, and markedly
improves performance over just using the top LSTM
layer representation.
The fine-tuning approach, as demonstrated in
ULMFiT
        <xref ref-type="bibr" rid="ref17 ref6">(Howard and Ruder, 2018)</xref>
        and GPT
        <xref ref-type="bibr" rid="ref17">(Radford et al., 2018)</xref>
        , introduce minimal
taskspecific parameters and are adapted for
downstream tasks simply by re-learning the weights in
one or more layers of the deep architecture.
      </p>
      <p>
        In this paper, we build upon the recent release of
BERT
        <xref ref-type="bibr" rid="ref5">(Devlin et al., 2018)</xref>
        , which makes use of a
masked language model for its pre-training
objective to learn a deep bidirectional language model.
We develop our approach by fine-tuning the
pretrained parameters for the downstream legal
timerecording classification task.
      </p>
      <p>
        Text classification in the legal space has
included research in court ruling predictions
        <xref ref-type="bibr" rid="ref22">(Sulea
et al., 2017)</xref>
        and legal deontic modality
classification
        <xref ref-type="bibr" rid="ref13">(Neill et al., 2017)</xref>
        , but the incorporation
of pre-trained contextual embeddings remains
relatively unexplored.
3
3.1
      </p>
    </sec>
    <sec id="sec-3">
      <title>Litigation Code Classification</title>
      <sec id="sec-3-1">
        <title>Overview</title>
        <p>The task is a 40-class classification problem where
the labels are litigation J-Codes. The J-codes set
are one set of the Uniform Task Based
Management System (UTBMS) codes used to classify
legal services performed by a legal vendor in an
electronic invoice submission2.</p>
        <p>
          The background of the J-code-set originates
from the Review of Civil Litigation Costs in
England and Wales
          <xref ref-type="bibr" rid="ref14 ref27">(Nelson and Jackson, 2014)</xref>
          . A
key recommendation of the review was that a new
format for bills of costs be standardized to
increase both the transparency of costs assessed by
the courts, and the consistency in the way costs are
presented to judges.
        </p>
        <p>
          The new format, designed to be produced and
analyzed in digital workflows, resulted in a set of
discrete J-Codes that are used to categorize work
undertaken. There are three hierarchical levels
of granularity. The highest level is the Phase.
Examples include Pre-Action work and
Disclosure corresponding to J-code JC00 and JF00
respectively. The intermediate level of generality
is the Task. Each Phase has a finite and
limited number of Tasks assigned to it. For
exam2A similar set of codes have previously been developed in
the United States. Here the codes have been developed to
provide a common language for e-billing, under which both
the law firm and the client have systems using a common
code set for respectively the delivery and analysis of bills
commonly referred to as L-codes.
ple, the Issue / Statements of Case phase (JE00)
includes the lower tier tasks of Review of Other
Party/Opponents’ Statement of Case (JE20) and
Amendment of Statement of Case (JE40). An
example of the distribution of J-codes used in the
evaluation can be seen in Figure 1. The lowest
tier is Action, but we do not use this
granularity in this study. Actions specify how the work
is done, Tasks inform of what is being done and
are further grouped by Phases. The detailed
explanation of the J-codes structure can be found in
          <xref ref-type="bibr" rid="ref14 ref27">(Nelson and Jackson, 2014)</xref>
          .
3.2
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>Motivation</title>
        <p>This classification task is important in the context
of legal digital workflows because it allows law
firms to extract value from billing data.
Organizing work by Phase and Task facilitates more
effective budgeting, particularly as alternative fee
arrangements become more prevalent, and increases
transparency across different clients and matters.</p>
        <p>Automating Phase-Task code classification
also reduces administrative burden upon lawyers,
who may each record thousands of time entries
involving these codes annually. Furthermore, the
adoption of UTBMS codes can be inconsistent
within industries or even a given firm, with some
lawyers delegating their task-based coding or
assigning blocks of time entries to the same code.
In these cases, automation is likely to improve
the quality of data collected and allow for
interdepartment comparative analyses.</p>
        <p>Moreover, it is possible for time entries to be
entered just once into a solicitor’s system
(including Task and Activity codes) and then used in
a variety of different reporting applications, from
the client, to the court to the normal administrative
functions of finance and tax.</p>
        <p>Lastly, the nature of billing data in an
industry characterized by time-based charging, means
it is likely to be a key source of data in any
multimodal multitask system supporting task
automation in the digital workplace.</p>
        <p>All of the above emphasize the importance of
accuracy, when assigning the codes. There are
also financial incentives, as any incorrect entries
may be impossible to recover from the other side
or not approved by the court. Additionally, the
time fee earners spend amending and checking the
codes has to be written off and does not provide
any benefit to the law firm. Thus, automated code
J-Code distribution
10000
8000
6000
4000
2000
assignment can lead to significant improvements
in productivity, even if the output requires to be
reviewed by the legal professional.
3.3</p>
      </sec>
      <sec id="sec-3-3">
        <title>Data</title>
        <p>The data is a collection of narratives from a
legal firm’s proprietary set spanning more than 1500
matters and 300 timekeepers. Due to its
sensitive nature, the data has been anonymized using a
Named Entity Recognition (NER) algorithm that
identifies and redacts the names of people,
organizations, and locations, among other entity types in
the form of a word mask. This algorithm combines
machine learning based on linguistic features with
stricter pattern-based exclusions. Another effect
of preprocessing data with the NER algorithm is
to ensure a higher degree of model
generalisability, since it is not trained based on specific proper
nouns which may be present in the vocabulary at
training time but not at test time. This can be seen
in Figure 2 where we can see high mask counts for
MASK_PERSON and MASK_ORG.</p>
        <p>The data has been cleaned by a heuristic
whereby blocks of time entries from the same
timekeeper assigned almost exclusively to the
same phase-task code combination were excluded.
Despite this process, classes in the data set remain
relatively imbalanced, with about one third of
entries assigned to the most common phase code and
one fifth of entries assigned to the most common
task code.</p>
        <p>The data set consists of 51; 948 examples split
into training, development, and testing sets using
80%/10%/10% split ratios respectively.
3.4</p>
      </sec>
      <sec id="sec-3-4">
        <title>Evaluation Metrics</title>
        <p>This is a multi-class classification problem, with
significant class imbalance so we evaluate on both
micro-averaged accuracy and macro-averaged
accuracy in a one-vs-all setting.</p>
        <p>The micro-averaged accuracy is computed by
aggregating to contributions of all the classes to
compute the average by taking the number of
correct predictions divided by the total number of
examples.</p>
        <p>The macro-averaged accuracy considers the
computation of the accuracy for each individual
class independently (class average), followed by
taking the average across classes (hence treating
all classes equally). This is useful for
understanding how the system performs across each class
despite the limited data points for particular classes.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Models</title>
      <p>To demonstrate any improved performance from
the use of pre-trained contextual embeddings on
this domain specific task we benchmark
performance against a variety of different baseline
models.
4.1</p>
      <sec id="sec-4-1">
        <title>Random Baseline</title>
        <p>The random baseline simply predicts a random
class for any given data point. As such, we
expect the micro-averaged accuracy to be roughly
1
num_classes .
4.2</p>
      </sec>
      <sec id="sec-4-2">
        <title>Majority Baseline</title>
        <p>We present a majority baseline which predicts the
most common class (JC10) for any given data
We featurise the narratives to the surface
models by normalising the input narratives and
converting to a Bag-of-Words (BOW) sparse
representation. In addition, we also experiment with
character and word tokenisation, removal of
stopwords and TF-IDF feature reweighting but
observe best performance on bigram-enhanced BOW
features tokenised at word level while retaining
stopwords. A logistic regression model is
applied to the featurised input in a one-versus-rest
multi-class scheme and an L2 weight
regularisation penalty.
4.4</p>
      </sec>
      <sec id="sec-4-3">
        <title>XGBoost Baseline</title>
        <p>
          As a final baseline, we use the scalable
gradientboosting implementation XGBoost
          <xref ref-type="bibr" rid="ref3">(Chen and
Guestrin, 2016)</xref>
          , which has been used on
various text classification tasks with strong
performance results based on additive tree-based
optimisation. As with the logistic regression baseline,
we performed pre-processing based on
stopwordremoval, TF-IDF weighting, and n-gram
selection. We also experimented with lemmatisation
and case standardisation to achieve highest model
performance.
4.5
        </p>
      </sec>
      <sec id="sec-4-4">
        <title>BERT Models</title>
        <p>
          We work with the HuggingFace3 PyTorch
implementation of BERT (Bidirectional Encoder
Representations from Transformers) model and run
3https://github.com/huggingface/
pytorch-pretrained-BERT
various fine-tuning experiments. BERT is
designed to learn deep bidirectional representations
by jointly conditioning on both left and right
context in all layers through a masked language model
objective. Pre-trained BERT representations are
publicly available for download and can be
finetuned with just one task-specific output layer to
create state-of-the-art models for a wide range
of tasks
          <xref ref-type="bibr" rid="ref5">(Devlin et al., 2018)</xref>
          . We experiment
with the uncased and cased versions of pre-trained
BERTBASE which is a 12-layer transformer
architecture with a hidden size of 768 and 12
selfattention heads adding up to 110 million
parameters, and the uncased version of BERTLARGE
which is a 24-layer transformer architecture with
a hidden size of 1024 and 16 self-attention heads
adding up to 340 million parameters, both trained
on a combined BookCorpus and Wikipedia corpus
of 3.3 billion words on 4 4 and 8 8 TPU slices
respectively for 4 days.
        </p>
        <p>We fine-tune the models on an AWS
p2.xlarge instance running a single NVIDIA
K80 GPU. We adapt the BERT fine-tuning
mechanism for single sentence classification tasks to
the matter classification task.
4.6</p>
      </sec>
      <sec id="sec-4-5">
        <title>Chronology-enhanced models</title>
        <p>In principle, any production system for
timerecording can take account of additional
information to support the classification task. The J-codes
set has ordinal structure resulting from the
progression of Phases and Tasks during the case,
and any specific time-entries also have temporal
structure that can be exploited.</p>
        <p>As a result of this, we can significantly
improve model performance by incorporating
features based on the set of codes typically
associated with a user or matter. Therefore, we include a
chronology-enhanced XGBoost model in our
analysis to set any performance improvements in
context.</p>
        <p>Care is taken to verify that the model behavior
is not to simply repeat the last code on a given
matter by setting chronology-based features to
zero, obtaining predictions from the
chronologyenhanced model, and confirming that the
difference in micro-accuracy is not greater than five
percent relative to the purely text-based model.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Results and Discussion</title>
      <p>Results for the different models are presented in
Table 2. We observe substantial performance
improvements of BERT models over the
textbased baselines as well as the XGBoost
textbased model, particularly with regards to
macroaccuracy.</p>
      <p>The best performing BERT single model
achieves performance gains of 2:23
microaveraged accuracy points and 9:39
macroaveraged accuracy points over the XGBoost
textonly classifier on the test set. This is likely to have
a strong effect on user experience of a production
system as it indicates substantially better
performance on less common classes. It also
demonstrates the effectiveness of pre-trained methods to
incorporate prior knowledge and learn on
lowresource data, despite the linguistic differences
between the pre-trained and legal domains.</p>
      <p>We also perform an in-depth error analysis,
including visual inspection of different model
predictions and confusion matrices (see Figure 3) to
understand which classes the models commonly
mistake for others. We find that both the XGBoost
text-based model and the BERTBASE model
commonly predict the most common class JC10
(Factual Investigation: Work required to
understand the facts of the case including instructions
from the client and the identification of potential
witnesses) when the ground truth is JM30
(Hearings: Includes preparation for and attendance at
hearings for directions and interim certificate
applications as well as the detailed assessment
itself ). We also observe that all text-based
models have difficulty distinguishing between JG10
(Taking, preparing and finalising witness
statement(s)) and JG20 (Reviewing Other Party(s)’
witness statement(s)). It is likely that this can be
explained to some extent by the text
anonymisation.</p>
      <p>We can also see that there are different error
patterns between the BERT and XGBoost
models and therefore we are likely to be able to
improve performance in a production system using
an ensemble approach. Furthermore, in addition
to the Task level results above, results on the
Phase level are encouraging for use in
production, with a micro-accuracy rate of 90:40 percent
for the chronology-enhanced XGBoost model. In
some cases, such data is already sufficiently
granular to derive actionable firm budgeting insights and
an improvement over existing manual methods.
6</p>
    </sec>
    <sec id="sec-6">
      <title>Conclusion and Future Work</title>
      <p>Recent empirical improvements due to transfer
learning with language models have demonstrated
that rich, unsupervised pre-training is an
integral part of many language understanding systems.
Here we present experiments and analysis of
stateof-the-art models based on deep pre-trained
conModel
Random Baseline
Majority Baseline
Surface Random Forest
Surface Logistic Regression
Surface Logistic Regression (enhanced with bigram features)
XGBoost
BERT Base (Uncased)
BERT Base (Cased)
BERT Large (Uncased)
XGBoost (Chronological features)
Micro Acc. (%)</p>
      <p>Macro Acc. (%)
textual embeddings applied to the task of
litigation code classification. We show that BERT
finetuned to the 40-class matter classification task
provides substantial performance gains over our
bestperforming baseline.</p>
      <p>One area to explore further is to incorporate
these chronology-based features into a
BERTcentric approach. For example, one approach
could be to learn contextual embeddings for text
over temporal set of J-codes. Another could be
to ensemble the predictions of purely
chronologybased model with the BERT output.</p>
      <p>We achieve our primary goal of demonstrating
that there is the capability to transfer pre-trained
language knowledge from a general corpus to the
legal domain task, with improved performance.</p>
      <p>
        Notwithstanding this fine-tuning result, in
future work we intend to extend this by learning
contextualised representations from legal corpora, a
direction that has achieved some success in other
domains
        <xref ref-type="bibr" rid="ref9">(Lee et al., 2019)</xref>
        and which could be
applied across a wide variety of tasks in the legal
domain.
      </p>
      <p>Moreover, although we have explored use of
multi-task learning framework, we have only
demonstrated performance on a single legal task.
Future work will likely include extending this
analysis to a set of legal benchmark tasks that
include natural language inference tasks (similar to
GLUE) on publicly available legal datasets.</p>
      <p>Given the relatively high degree of class
imbalance present in Phase and Task codes, as well
as the level of legal expertise involved in
distinguishing closely related or rarer options, this
classification problem lends itself well to
human-inthe-loop machine learning. Such an active
learning platform would involve feeding
timekeepervalidated data back into the model for
near-realtime retraining. This method of data
collection may also achieve scale conducive to learning
contextualised legal-corpora representations
mentioned above.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgements</title>
      <p>We thank Edwin Zhang and Brandon Hill at Ping
Inc. for their assistance in the data preparation,
baseline modeling, and chronology enhancements.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>Ilias</given-names>
            <surname>Chalkidis</surname>
          </string-name>
          and
          <string-name>
            <given-names>Dimitrios</given-names>
            <surname>Kampas</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Deep learning in law: early adaptation and legal word embeddings trained on large corpora</article-title>
          .
          <source>Artificial Intelligence and Law</source>
          ,
          <volume>27</volume>
          (
          <issue>2</issue>
          ):
          <fpage>171</fpage>
          -
          <lpage>198</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>Ciprian</given-names>
            <surname>Chelba</surname>
          </string-name>
          , Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, and
          <string-name>
            <given-names>Phillipp</given-names>
            <surname>Koehn</surname>
          </string-name>
          .
          <year>2013</year>
          .
          <article-title>One Billion Word Benchmark for Measuring Progress in Statistical Language Modeling</article-title>
          .
          <source>arXiv preprint arXiv:1312</source>
          .
          <fpage>3005</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>Tianqi</given-names>
            <surname>Chen</surname>
          </string-name>
          and
          <string-name>
            <given-names>Carlos</given-names>
            <surname>Guestrin</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>XGBoost: A Scalable Tree Boosting System</article-title>
          . https://arxiv.org/abs/1603.02754.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <given-names>Zihang</given-names>
            <surname>Dai</surname>
          </string-name>
          , Zhilin Yang,
          <string-name>
            <given-names>Yiming</given-names>
            <surname>Yang</surname>
          </string-name>
          , Jaime G. Carbonell, Quoc V.
          <string-name>
            <surname>Le</surname>
            , and
            <given-names>Ruslan</given-names>
          </string-name>
          <string-name>
            <surname>Salakhutdinov</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context</article-title>
          . arXiv preprint arXiv:
          <year>1901</year>
          .02860.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>Jacob</given-names>
            <surname>Devlin</surname>
          </string-name>
          ,
          <string-name>
            <surname>Ming-Wei</surname>
            <given-names>Chang</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Kenton</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and Kristina</given-names>
            <surname>Toutanova</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Bert: Pre-training of deep bidirectional transformers for language understanding</article-title>
          . arXiv preprint arXiv:
          <year>1810</year>
          .04805.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>Jeremy</given-names>
            <surname>Howard</surname>
          </string-name>
          and
          <string-name>
            <given-names>Sebastian</given-names>
            <surname>Ruder</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Universal language model fine-tuning for text classification</article-title>
          . arXiv preprint arXiv:
          <year>1801</year>
          .06146.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>Armand</given-names>
            <surname>Joulin</surname>
          </string-name>
          , Edouard Grave, Piotr Bojanowski, and
          <string-name>
            <given-names>Tomas</given-names>
            <surname>Mikolov</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Bag of Tricks for Efficient Text Classification</article-title>
          .
          <source>Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume</source>
          <volume>2</volume>
          ,
          <string-name>
            <surname>Short</surname>
            <given-names>Papers</given-names>
          </string-name>
          , pages
          <fpage>427</fpage>
          -
          <lpage>431</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>Rafal</given-names>
            <surname>Jozefowicz</surname>
          </string-name>
          , Oriol Vinyals, Mike Schuster, Noamand Shazeer, and
          <string-name>
            <given-names>Yonghui</given-names>
            <surname>Wu</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Exploring the limits of language modeling</article-title>
          .
          <source>arXiv preprint arXiv:1602</source>
          .
          <fpage>02410</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>Jinhyuk</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Wonjin Yoon1</given-names>
            ,
            <surname>Sungdong</surname>
          </string-name>
          <string-name>
            <surname>Kim</surname>
          </string-name>
          , Donghyeon Kim, Sunkyu Kim, Chan Ho So, and
          <string-name>
            <given-names>Jaewoo</given-names>
            <surname>Kang</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>BioBERT: a pre-trained biomedical language representation model for biomedical text mining</article-title>
          .
          <source>Bioinformatics</source>
          , 1.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <given-names>Stephen</given-names>
            <surname>Merity</surname>
          </string-name>
          , Nitish Shirish Keskar, and Richard Socher.
          <year>2017</year>
          .
          <article-title>Regularizing and optimizing LSTM language models</article-title>
          .
          <source>arXiv preprint arXiv:1708</source>
          .
          <fpage>02182</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <string-name>
            <given-names>Tomas</given-names>
            <surname>Mikolov</surname>
          </string-name>
          , Martin Karafiat, Lukas Burget, Jan Cernocky, and
          <string-name>
            <given-names>Sanjeev</given-names>
            <surname>Khudanpur</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Recurrent neural network based language model</article-title>
          .
          <source>INTERSPEECH</source>
          ,
          <volume>2</volume>
          :
          <fpage>1045</fpage>
          -
          <lpage>1048</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <given-names>Tomas</given-names>
            <surname>Mikolov</surname>
          </string-name>
          , Ilya Sutskever, Kai Chen, Greg S Corrado, and
          <string-name>
            <given-names>Jeff</given-names>
            <surname>Dean</surname>
          </string-name>
          .
          <year>2013</year>
          .
          <article-title>Distributed representations of words and phrases and their compositionality</article-title>
          .
          <source>NIPS.</source>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <string-name>
            <surname>James O' Neill</surname>
          </string-name>
          , Paul Buitelaar, Cecile Robin, and
          <string-name>
            <surname>Leona</surname>
            <given-names>O'</given-names>
          </string-name>
          <string-name>
            <surname>Brien</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Classifying Sentential Modality in Legal Language: A Use Case in Financial Regulations, Acts and Directives</article-title>
          .
          <source>Proceedings of the 16th Edition of the International Conference on Articial Intelligence and Law (ICAIL '17).</source>
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <string-name>
            <given-names>David</given-names>
            <surname>Nelson</surname>
          </string-name>
          and
          <string-name>
            <surname>Jackson</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <string-name>
            <surname>EW-UTBMS Civil Litigation J-Code Set</surname>
          </string-name>
          Overview and Guidelines.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          <string-name>
            <given-names>EWT</given-names>
            <surname>Ngai</surname>
          </string-name>
          , Yong Hu, YH Wong, Yijun Chen, and
          <string-name>
            <given-names>Xin</given-names>
            <surname>Sun</surname>
          </string-name>
          .
          <year>2011</year>
          .
          <article-title>The application of data mining techniques in financial fraud detection: A classification framework and an academic review of literature</article-title>
          .
          <source>Decision Support Systems</source>
          ,
          <volume>50</volume>
          (
          <issue>3</issue>
          ):
          <fpage>559</fpage>
          -
          <lpage>569</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          <string-name>
            <surname>Matthew E Peters</surname>
            , Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark,
            <given-names>Kenton</given-names>
          </string-name>
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>and Luke</given-names>
          </string-name>
          <string-name>
            <surname>Zettlemoyer</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Deep contextualized word representations</article-title>
          .
          <source>arXiv preprint arXiv:1802</source>
          .05365.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          <string-name>
            <given-names>Alec</given-names>
            <surname>Radford</surname>
          </string-name>
          , Karthik Narasimhan, Tim Salimans, and
          <string-name>
            <given-names>Ilya</given-names>
            <surname>Sutskever</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Improving language understanding by generative pre-training</article-title>
          .
          <source>URL https://s3- us-west-2</source>
          . amazonaws.com/openai-assets/researchcovers/languageunsupervised/language understanding paper.
          <source>pdf.</source>
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          <string-name>
            <given-names>Alexander</given-names>
            <surname>Ratner</surname>
          </string-name>
          ,
          <string-name>
            <surname>Stephen H. Bach</surname>
          </string-name>
          , Henry Ehrenberg, Jason Fries,
          <string-name>
            <surname>Sen Wu</surname>
          </string-name>
          , and Christopher RÃl'.
          <year>2017</year>
          .
          <article-title>Snorkel: Rapid training data creation with weak supervision</article-title>
          .
          <source>Proceedings of the VLDB Endowment</source>
          ,
          <volume>11</volume>
          (
          <issue>3</issue>
          ):
          <fpage>269</fpage>
          -
          <lpage>282</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          <string-name>
            <given-names>Alexander</given-names>
            <surname>Ratner</surname>
          </string-name>
          , Braden Hancock, Jared Dunnmon, Frederic Sala, Shreyash Pandey, and Christopher Re.
          <year>2019</year>
          .
          <article-title>Training Complex Models with Multi-Task Weak Supervision</article-title>
          . AAAI.
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          <string-name>
            <given-names>Herbert</given-names>
            <surname>Roitblat</surname>
          </string-name>
          , Anne Kershaw, and
          <string-name>
            <given-names>Patrick</given-names>
            <surname>Oot</surname>
          </string-name>
          .
          <year>2010</year>
          .
          <article-title>Document categorization in legal electronic discovery: computer classification vs. manual review</article-title>
          .
          <source>Journal of the Association for Information Science and Technology</source>
          ,
          <volume>61</volume>
          (
          <issue>1</issue>
          ):
          <fpage>70</fpage>
          -
          <lpage>80</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          <string-name>
            <given-names>Fabrizio</given-names>
            <surname>Sebastiani</surname>
          </string-name>
          .
          <year>2002</year>
          . Machine Learning in
          <source>Automated Text Categorization. ACM Computing Surveys</source>
          ,
          <volume>34</volume>
          (
          <issue>1</issue>
          ):
          <fpage>1</fpage>
          -
          <lpage>47</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          <string-name>
            <surname>Octavia-Maria</surname>
            <given-names>Sulea</given-names>
          </string-name>
          , Marcos Zampieri, Shervin Malmasi, Mihaela Vela,
          <string-name>
            <given-names>Liviu P.</given-names>
            <surname>Dinu</surname>
          </string-name>
          , and Josef van Genabith.
          <year>2017</year>
          .
          <article-title>Exploring the use of text classification in the legal domain</article-title>
          .
          <source>Proceedings of 2nd Workshop on Automated Semantic Analysis of Information in Legal Texts.</source>
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          <string-name>
            <given-names>Ashish</given-names>
            <surname>Vaswani</surname>
          </string-name>
          , Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones,
          <string-name>
            <given-names>Aidan N.</given-names>
            <surname>Gomez</surname>
          </string-name>
          , Lukasz Kaiser, and
          <string-name>
            <given-names>Illia</given-names>
            <surname>Polosukhin</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <source>Attention Is All You Need. 31st Conference on Neural Information Processing Systems (NIPS</source>
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          <string-name>
            <given-names>Alex</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Amanpreet</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <surname>Julian Michael</surname>
          </string-name>
          , Felix Hill,
          <string-name>
            <given-names>Omer Levy</given-names>
            , and
            <surname>Samuel</surname>
          </string-name>
          <string-name>
            <given-names>R.</given-names>
            <surname>Bowman</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>GLUE: A multi-task benchmark and analysis platform for natural language understanding</article-title>
          . arXiv preprint arXiv:
          <year>1804</year>
          .07461.
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          <string-name>
            <given-names>Tian</given-names>
            <surname>Wang</surname>
          </string-name>
          and
          <string-name>
            <given-names>Kyunghyun</given-names>
            <surname>Cho</surname>
          </string-name>
          .
          <year>2015</year>
          .
          <article-title>Largercontext language modelling</article-title>
          .
          <source>arXiv preprint arXiv:1511</source>
          .
          <fpage>03729</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          <string-name>
            <given-names>Zhilin</given-names>
            <surname>Yang</surname>
          </string-name>
          , Zihang Dai, Ruslan Salakhutdinov, and William W. Cohen.
          <year>2017</year>
          .
          <article-title>Breaking the softmax bottleneck: A high-rank RNN language model</article-title>
          .
          <source>arXiv preprint arXiv:1711</source>
          .
          <fpage>03953</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          <string-name>
            <given-names>Wojciech</given-names>
            <surname>Zaremba</surname>
          </string-name>
          , Ilya Sutskever, and
          <string-name>
            <given-names>Oriol</given-names>
            <surname>Vinyals</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <article-title>Recurrent Neural Network Regularization</article-title>
          .
          <source>arXiv preprint arXiv:1409</source>
          .
          <fpage>2329</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          <string-name>
            <given-names>Xiang</given-names>
            <surname>Zhang</surname>
          </string-name>
          , Junbo
          <string-name>
            <surname>Zhao</surname>
            ,
            <given-names>and Yann</given-names>
          </string-name>
          <string-name>
            <surname>Lecun</surname>
          </string-name>
          .
          <year>2015</year>
          .
          <article-title>Character-level Convolutional Networks for Text Classification</article-title>
          .
          <source>Advances in Neural Information Processing Systems</source>
          <volume>28</volume>
          , pages
          <fpage>649</fpage>
          -
          <lpage>657</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>