Elamur Research

Using attention methods to predict judicial outcomes

Paper · 2022 · Vithor Gomes Ferreira Bertalan and Evandro Eduardo Seron Ruiz

Summary

Can a computer recover the outcome of a court case from the language of the written decision? The authors investigate that question for the São Paulo Court of Justice, focusing on cases of second-degree murder and active corruption. They build a crawler for the court’s electronic system and assemble 2,467 decisions in Brazilian Portuguese with clearly identifiable outcomes. Each document is labeled as a conviction or an acquittal. The resulting task is a form of text classification.

The study compares classifiers that use term frequencies with neural networks that process sequences of words. The reported rankings vary with the offense and the measure. Among the non-neural methods, the classification and regression tree leads on all reported measures for corruption, while the support vector machine leads on most measures for homicide and the tree leads on recall. Among the neural methods, the gated recurrent unit, or GRU, gives the strongest results for homicide. The hierarchical attention network, or HAN, comes next for homicide accuracy and has the highest reported neural accuracy for corruption. The authors also report that the standalone GRU trains faster than the HAN.

The HAN adds something the standalone GRU does not produce in these experiments. It assigns weights to words as it builds a representation of each sentence, then weights sentences as it builds a representation of the decision. The authors examine highly weighted words in each outcome group. In the homicide decisions, some highly ranked acquittal tokens concern the defendant’s personal or social circumstances, while some highly ranked conviction tokens concern violence and criminal procedure. In corruption decisions, the authors highlight terms associated with public institutions and offenses involving public office. A word can receive different weights in different sentences, so the rankings describe occurrences in context.

The experiments show how reliably classifiers can recover recorded outcomes within the selected collection. Because the inputs are written decisions, the reported performance leaves open how well the same methods would work with information available before judgment. The attention analysis makes the classifier’s weighting of the text visible. Establishing which words actually changed a prediction, or which facts mattered to the court, would require separate evidence.

Deep dive: Using attention methods to predict judicial outcomes

A study of how classifiers predict conviction and acquittal from Brazilian court decisions and what attention reveals about the words they use. · about 33 minutes to read

The problem and its context

What counts as a judicial outcome

The paper places outcome prediction within a broader area that includes identifying the applicable field of law, assigning categories to cases and estimating how a proceeding will end. Its own target is narrower. Given the text of a case selected from the São Paulo Court of Justice, the classifier assigns the document to the conviction or acquittal class. The offense is already known from the collection query. The task therefore asks whether the language of judgments on a specified subject contains enough signal to distinguish the recorded dispositions. This is the paper’s contribution to legal AI.

The distinction between a case and its written decision matters from the start. A case encompasses the events at issue and the material presented during the proceeding. A written decision is an account produced by the court, which may bring together facts, arguments, procedural details and the court’s disposition. The authors collect that written account. Its wording provides the information on which their classifiers act, even where the wording may reflect how the court chose to describe a decision it had already reached.

Choosing convictions and acquittals also determines which documents can enter the study. The authors explain that many judicial documents lack a clearly expressed equivalent of either outcome. They seek subjects where the result can be identified with confidence and retain decisions that fit the categories. A document in an electronic court system can be retrievable by subject and still be unsuitable for this task. It needs both a subject within scope and a disposition the researchers can label.

The authors motivate the work partly through language. They describe the literature they reviewed as heavily oriented toward English, with less work on judicial outcome prediction in Brazilian Portuguese. They knew of no previous study of this specific kind in Brazilian Portuguese or Brazilian courts as of 2022. That is a qualified priority claim about the literature they knew. The practical gap they address is the need for a labeled collection from the court whose decisions they want to study. A classifier trained on earlier documents must be able to use the language and kinds of outcomes found in those documents.

Why court text poses its own problems

The background starts from a simple fact about legal work. Much of it is recorded in writing, and different readers need different things from the same records. A court decision can be useful to a researcher interested in patterns across cases, a practitioner looking for a relevant passage, or a reader trying to find out what happened in a particular proceeding. The paper treats task-specific automation as potential support for such work. Its focus on recurring patterns in documents reflects an application of natural language processing.

The authors also draw on work that describes why legal text is difficult to analyze. Decisions can refer to other documents or provisions, and identifying a reference is only part of understanding what it does. A reader may need to resolve what the reference points to, determine which conditions in the cited provision matter, and connect those conditions to an account of events. The paper cites these difficulties alongside the broader problem of assessing whether facts described in ordinary language satisfy a legal predicate. A classifier can learn a recurring association between language and disposition while those underlying legal relationships remain outside its task.

The discussion of precedent serves a related purpose. The authors describe past decisions in common-law practice as material that can be followed, distinguished, applied by analogy or overturned. They characterize Brazilian courts as working in a civil-law tradition centered on statutes and codes, while also noting that precedent has become more prominent. This context helps explain why the paper’s use of historical decisions should be understood as training from examples. The system learns associations between the documents and their labels. The study does not ask whether a cited decision applies to a new dispute or which authority a court should follow.

The authors draw on earlier discussions of forecasting from past cases because a collection of decisions provides observable examples of the relationship between text and outcome. That relationship can be investigated in different ways. Some work emphasizes the facts recounted in the documents. Other work examines variables that describe features of cases beyond formal legal argument. The São Paulo experiments take the document text as the predictor. The later inspection of words asks what kinds of clues the attention network emphasized within that input.

How earlier studies framed similar tasks

The European Court of Human Rights study by Aletras and colleagues supplies the closest example in the background. As the authors describe it, that study collected judgments concerning Article 3, Article 6 and Article 8 of the relevant convention, with balanced numbers of violation and non-violation decisions. The researchers represented passages using n-grams, which are sequences of neighboring items in the text. They could build representations from different parts of a judgment, such as the circumstances or the relevant law, as well as from the case as a whole. Partitioning the input in that way let them ask where predictive signal was concentrated.

The same study examined the weights of a support vector machine to identify words associated with a finding of violation or non-violation. In the São Paulo paper, the authors likewise want to look beyond a performance score and inspect textual clues. The quantities inspected differ. A feature weight from a fitted support vector machine can characterize the role of a feature in its decision rule. A HAN word weight is computed for an occurrence in a specific sentence. This distinction matters when the same word appears in decisions with different outcomes or takes part in different expressions.

The work by Sulea and colleagues provides another precedent. The authors describe a collection of French Court of Cassation decisions with several available labels, including the area of law, the date and the disposition. The study uses lexical features, hierarchical clustering and support vector machines in its analysis of French court decisions. The important point for the São Paulo study is that the same archive can support several classification tasks. Identifying the field of law and identifying the disposition involve different targets, even when the underlying document is the same. The authors make the offense a condition for inclusion and use the disposition as the target.

Other studies in the background help place the task alongside neighboring applications. The examples include predicting settlements in securities litigation, identifying human-rights abuses in text and extracting topics from supreme court decisions. The topic study is especially helpful for clarifying the meaning of a label. Its researchers considered whether legal specialists and other readers would assess the topics in the same way. In the São Paulo experiments, the label is a recorded legal disposition, with professional advice helping the authors understand the documents. The experiment is about recognizing that disposition from textual evidence.

The attention architecture also comes from earlier work. Yang and colleagues presented the design as a way to classify documents by building representations at the word and sentence levels. The São Paulo paper describes related applications to legal subject classification, evidence for claim verification, predictions from case fact descriptions and commutation cases. Those tasks supply precedents for applying the architecture to structured documents. The authors adapt the same basic structure to distinguish acquittal from conviction within a selected offense. Hierarchical Attention Networks

The method, step by step

From court searches to labeled documents

The authors start with eSAJ, the electronic system of the São Paulo Court of Justice, also referred to as TJSP. The system supports searches using fields such as subject, judge and case number, and it gives access to the text and associated metadata of a selected record. The authors implement a Python crawler that saves retrieved documents to a file. They identify the author’s GitHub page as the location of the crawler code.

The queries concentrate on homicídio simples, which the paper describes as second-degree murder and calls homicide, and corrupção ativa, or active corruption. Cases related to these offenses are outside the collection unless they qualify under the chosen subjects. The crawler retrieves documents from different periods. For the supervised task, the researchers keep decisions with an identifiable conviction or acquittal. A conviction is coded as -1 and an acquittal as +1. These numbers identify the classes and carry no ranking of legal severity. The authors sought advice from Brazilian lawyers to help understand the material used for linguistic annotation.

The reported preprocessing begins by breaking the text into word tokens and excluding stopwords. A token is a particular occurrence of a word in the processed text. If a document repeats a word, each occurrence can contribute separately to a count or receive a separate attention weight. Stopwords are words set aside during preprocessing. The paper describes these operations without giving a full inventory of the words excluded. The distinction between a vocabulary entry and its occurrences becomes important in the final analysis. Tokenization

Once the documents have labels, the remaining work has two parts. The authors first test different ways to predict those labels from numerical representations of the text. They then inspect what the hierarchical network did with its inputs. The second part is possible because the network keeps track of how heavily each word occurrence contributes to a sentence representation. The following diagram follows that branch of the study from the collected decisions to the attention analysis.

From court decisions to hierarchical attention weights

The steps in order.

From court decisions to hierarchical attention weightsStep 1: Retrieve decisions for the selected offenses1. Retrieve decisions for the selected offensesStep 2: Label convictions and acquittals2. Label convictions and acquittalsStep 3: Tokenize text and remove stopwords3. Tokenize text and remove stopwordsStep 4: Represent tokens with Portuguese word embeddings4. Represent tokens with Portuguese word embeddingsStep 5: Encode words and weight them within sentences5. Encode words and weight them within sentencesStep 6: Encode sentences and weight them within decisions6. Encode sentences and weight them within decisionsStep 7: Classify the resulting document vectors7. Classify the resulting document vectorsStep 8: Inspect ranked word tokens by outcome8. Inspect ranked word tokens by outcome

Giving classifiers a numerical input

The paper explains two approaches to representing the words. Term frequency–inverse document frequency, or TF-IDF, describes a document by assigning numerical weights to vocabulary terms. One part of the weight reflects how frequently a term occurs in the document. The other reflects how widely that term is shared across the collection. A term can appear frequently in a particular decision yet carry little distinguishing information if it also appears throughout the corpus. The inverse document frequency discounts that kind of prevalence. TF-IDF

TF-IDF(t, d, D) = TF(t, d) · IDF(t, D) = f(t, d) · log(N / nₜ)

Here t is the term, d is the document and D is the corpus. TF(t, d) is term frequency and f(t, d) expresses that frequency in the product. IDF(t, D) is the inverse document frequency for the term in the corpus. N counts documents in D, and nₜ counts the documents that contain t. The slash indicates division, log is the logarithm and the centered dot indicates multiplication. The expression gives a weight for a term in a particular document relative to the collection.

A document represented by these weights gives a classifier a set of features it can compare with features from other decisions. The representation in the formula depends on counts, so the contribution of a term does not specify where it occurred or which words surrounded it. That is appropriate for asking whether patterns in the distribution of terms distinguish the labels. Preserving the connection between a particular occurrence and its surrounding sentence calls for a representation that can be passed through a sequence encoder.

The neural experiments use word embeddings. An embedding gives each vocabulary entry a vector, an ordered collection of numerical coordinates. The coordinates work together to represent patterns learned from text. The vector supplied for a word can be shared across occurrences. What changes across those occurrences is the context that the sequence encoder receives. Thus a shared starting vector still allows the classifier to produce different representations for the word in different sentences.

The vectors used here come from a pretrained collection for Brazilian Portuguese, with 600 dimensions per embedding in the neural experiments. The embedding method learns from how words occur together across a corpus. The paper describes its objective in terms of the relationship between the dot product of word vectors and the logarithm of co-occurrence probabilities. A dot product combines corresponding vector coordinates into a single score. The pretrained vectors provide the numerical starting point for processing the court text. GloVe

The comparison classifiers

The non-neural methods try different ways of drawing a boundary between the outcomes. Logistic regression combines input features using learned weights and applies a sigmoid to its score. The sigmoid maps that score to the interval from 0 to 1. In the authors’ description of logistic regression, the inputs are the TF-IDF features. A linear discriminant analysis classifier also uses a linear combination of features, with the combination chosen to distinguish the groups by relating their separation to variation within them.

The support vector machine finds a separating boundary with a large margin, the distance from the boundary to the training examples nearest it. A new document is represented in the same feature space and assigned according to where it falls relative to the boundary. The nearest-neighbor classifier uses proximity differently. It finds a set of nearby labeled examples and uses their labels to classify the new case. Its work is concentrated at classification time, when it has to look up similar examples, instead of fitting a single separating function in advance.

The tree method divides the feature space into successive subsets. Each split routes documents into branches according to a feature rule. The fit aims to make the outcomes within the resulting subsets more uniform. As splits accumulate, the classification can depend on a sequence of conditions, so a feature may matter in one branch and have little role in another. The paper calls these systems regression trees in its results and describes using the NLTK implementation of classification and regression trees, or CART, for the categorical disposition task.

Naïve Bayes uses probabilities to score the classes. Its simplifying assumption concerns how it combines the evidence from features within each class. The paper gives Bayes’s rule as the basis for calculating the probability of a class after observing a document.

P(Cₖ | x) = P(Cₖ) · P(x | Cₖ) / P(x)

In this expression P denotes probability, x is the observed example, Cₖ is a class and k indexes the possible classes. The vertical bar means “given.” P(Cₖ | x) is the posterior probability of the class after observing the example. P(Cₖ) is its prior probability, and P(x | Cₖ) is the probability of the observed example under that class. P(x) is the marginal probability of the example across possible classes. The dot multiplies the prior by the class-conditional probability, and the slash divides that product by the marginal probability. For the same example, the denominator is shared across the classes being compared.

Among the neural comparisons, the multilayer perceptron sends its inputs through successive layers of weighted units. The paper describes back-propagation as the method for adjusting the weights in response to prediction errors. A recurrent network carries a state across positions in an input sequence. As a result, the state used when reading a word can depend on inputs from earlier positions. This provides a way of representing an ordered stretch of text whose length can vary across examples.

The paper also tests recurrent networks with gates that control what information persists. A long short-term memory network, or LSTM, uses a memory cell and gates for admitting, forgetting and exposing information. A GRU uses a reset gate and an update gate. These govern how earlier state enters the calculation of a candidate state and how the recurrent unit combines earlier and candidate information. These mechanisms address the problem of retaining information across a sequence. The GRU matters twice in the experiment. It is a standalone classifier in the comparison and the recurrent unit inside the HAN encoders.

Reading the document at two levels

The HAN tries to preserve the organization of a document as a collection of sentences. Within each sentence, the word encoder produces a contextual representation at every word position. Word attention uses those representations to build a sentence vector. The sentence encoder then treats the sentence vectors as an ordered sequence, producing a contextual representation for each sentence. Sentence attention combines those representations into a single vector for the decision. The classifier sees that final document vector.

The architecture addresses two related questions. Within a sentence, which word positions should contribute most to the summary of what the sentence says? Within a document, which sentences should contribute most to the summary of the decision? An attention weight answers the first question relative to the other words in the same sentence, or the second relative to the other sentences in the same document. The weights are learned through the outcome task. They are not supplied by the lawyers who helped the authors read the documents.

The word encoder receives sentence inputs subject to a maximum word length, with a flexible dimension in the Keras input description. The embedding layer maps the token identifiers to vectors. A bidirectional GRU processes each sentence in forward and reverse order. The representation of a word can therefore reflect information on either side of it. This matters for a term that is qualified later in its sentence or has a different role depending on what comes before it. The paper also describes a dense stage with a rectified linear activation in the encoder.

The sentence encoder applies comparable operations at a different scale. The architecture description includes a time-distributed wrapper to apply the word-level component across the sentences. The resulting sentence vectors are processed by a bidirectional GRU, and the paper describes another dense stage with a rectified linear activation. A sentence representation can therefore carry information from neighboring sentences before the attention layer scores it. The operation is different from simply assigning a fixed weight to a sentence using its words alone.

How word attention is calculated

The paper’s formulas reuse some indices at both levels. The notation below consistently uses i for a sentence and t for a token position within that sentence. The first operation at the word level is a learned transformation of the contextual representation at a token position.

uᵢₜ = tanh(W_w hᵢₜ + b_w)

Here i identifies the sentence and t identifies the token position. hᵢₜ is the contextual representation passed from the encoder for that position. W_w is the learned word-level weight matrix and b_w is the learned bias vector. An adjacent matrix and vector indicate matrix multiplication, and the plus sign adds the bias. The subscript w indicates the word level. tanh is the hyperbolic tangent, applied to the transformed coordinates, and uᵢₜ is the resulting vector used to score the position.

The next operation measures how closely that transformed vector aligns with a learned word-level context vector. It then compares the score with the scores at the other token positions in the same sentence.

αᵢₜ = exp(uᵢₜᵀ u_w) / ∑ⱼ exp(uᵢⱼᵀ u_w)

αᵢₜ is the attention weight at word position t in sentence i. The vector uᵢₜ is the transformed representation of that position, and u_w is the trainable word-level context vector. The superscript ᵀ transposes the first vector so that its product with u_w is a dot product. exp denotes the exponential function. ∑ⱼ sums over word positions indexed by j in the same sentence, with uᵢⱼ the transformed representation of each such position. The slash divides the target position’s exponentiated score by the sum for the sentence. This normalization is a softmax.

The softmax makes each score relative to the other scores in its sentence. An occurrence that receives a large share of the weight is one the attention layer emphasizes when it constructs that sentence vector. If another word receives a higher score, the denominator changes and the share assigned to the first word can fall even if its own score is unchanged. Both the contextual encoding and the normalization matter when interpreting the coefficients.

sᵢ = ∑ₜ αᵢₜ hᵢₜ

Here sᵢ is the representation of sentence i. ∑ₜ sums over its token positions t. αᵢₜ is the scalar attention weight of a position, hᵢₜ is its contextual representation and their juxtaposition indicates scalar multiplication of that vector. The sum combines the resulting vectors. The quantity passed upward is therefore a weighted combination of contextual word representations. The vectors transformed for scoring determine the weights, while the contextual representations provide the content of the sum.

The word context vector is initialized randomly and learned during training along with the other parameters. It is shared across sentences as a scoring reference. The scores still vary from sentence to sentence because the vectors compared with it are contextual. In particular, training does not produce a dictionary in which each vocabulary item has a permanent attention coefficient.

How sentence attention produces a decision representation

The contextual sentence vectors receive a learned transformation of their own.

uᵢ = tanh(W_s hᵢ + b_s)

i identifies the sentence. hᵢ is the contextual sentence representation after encoding. W_s is the sentence-level weight matrix and b_s is the bias vector at that level. The juxtaposition W_s hᵢ means matrix multiplication, and the plus sign adds the bias. The subscript s identifies parameters of sentence attention. tanh is again the hyperbolic tangent, and uᵢ is the transformed representation used to score the sentence.

αᵢ = exp(uᵢᵀ u_s) / ∑ⱼ exp(uⱼᵀ u_s)

αᵢ is the weight assigned to sentence i and uᵢ is its transformed vector. u_s is the learned sentence-level context vector. The superscript ᵀ denotes the transpose used to form a dot product with u_s. exp exponentiates the score, ∑ⱼ sums the exponentiated scores over sentence positions j in the decision, and uⱼ is the transformed vector for each of those sentences. The slash denotes division by that sum. The comparison set for this softmax is the document’s sentences.

v = ∑ᵢ αᵢ hᵢ

v is the vector for the whole decision. ∑ᵢ sums over its sentence positions i, multiplying each contextual sentence representation hᵢ by its scalar attention weight αᵢ. A fully connected output layer with a softmax uses the resulting vector to classify the document. This output softmax operates on class scores, whereas the preceding softmax operations allocate weight within the text.

The hierarchy matters when following a word’s contribution. The word coefficient weights a contextual vector in its sentence. That sentence goes through another encoder before receiving its own weight in the document representation. The paper illustrates the structure with the visualization from Yang and colleagues. The example highlights sentences at one level and particular words inside those sentences at another. The illustration shows how to read the two kinds of highlights. It does not supply data about any São Paulo judgment.

Training and comparing the classifiers

The authors train the classifiers with the disposition labels and use cross-validation to assess them. In cross-validation, each fold is held out in turn while the classifier is fitted on the remaining folds. The procedure gives the researchers performance estimates across several held-out portions of the corpus. The non-neural experiments use 10 folds, and the neural experiments use the same number of folds for both offense datasets. The reported results are fold means.

The training description for the neural networks also gives criteria for changing the learning rate and stopping a run. The learning rate controls the size of the parameter adjustments made during optimization. The paper describes lowering it by 0.2 every three epochs. An epoch is a pass through the training data. The stopping rule ends training after five epochs without a loss reduction of at least 0.001. The latter threshold concerns the loss used to monitor training, so it should be read separately from the accuracy, precision, recall and F-score reported for evaluation.

The authors say that they tried several hyper-parameter combinations and favored the framework’s defaults where they give no alternative setting. Hyper-parameters are choices governing the fitting process or architecture that sit outside the weights learned from individual training runs. The description gives the general procedure and the stated convergence criteria. It leaves several implementation details, including the full list of settings tested, unspecified.

Experiments and results

The two evaluation collections

The crawler produced 2,467 cases in the study collection. Of these, 1,681 are homicide decisions and 786 are active corruption decisions. These numbers count cases, while the much larger counts in the attention analysis count word occurrences. The experiments report results separately by offense. A homicide score characterizes classification within the homicide collection, and a corruption score characterizes classification within the corruption collection. The study does not report a test in which a classifier fitted to one offense is evaluated on the other.

The baseline consists of several families of classifiers. Non-neural comparisons include the tree, the support vector machine, a nearest-neighbor method and linear classification approaches, as well as Naïve Bayes. The neural comparisons include a multilayer perceptron and recurrent architectures, with the standalone GRU and the hierarchical attention network among the candidates. This design lets the authors ask whether familiar methods using term-level features can recover the disposition, and whether processing word or sentence sequences yields stronger results on the same offense.

The reported measures capture different aspects of performance. Accuracy counts the share of evaluated decisions assigned their correct label. Precision asks how often a prediction of a class is correct. Recall asks how many of the cases that belong to a class the classifier recovers. F-score combines precision and recall. The paper names these metrics and describes their fold means. The narrative does not specify the class averaging convention, a detail that matters when deciding how to interpret a reported precision or recall across both labels.

Non-neural results

In the detailed account of the homicide comparison, the authors identify logistic regression, linear discriminant analysis and the support vector machine as strong performers. The support vector machine leads on 3 out of the 4 reported metrics, while the tree has the highest recall. The practical difference between those claims is that a classifier can recover more instances under the reported recall measure while another classifier makes better predictions under other aspects of the evaluation. Counting wins by metric gives a more specific account of the experiment than assigning a single label of “best” to the dataset.

The corruption comparison is clearer in the narrative. The regression tree leads on all four reported measures. The support vector machine’s strong position in homicide does not carry over to corruption. This difference is observed across the selected offense datasets. The experiment does not isolate which properties of the collections account for it.

The authors’ general discussion describes the tree as the non-neural method with the highest accuracy across the datasets. The dataset-specific homicide discussion attributes most metric wins to the support vector machine and singles out the tree for recall. Those descriptions are in tension. The table captions identify the metrics as mean values after 10-fold cross-validation, but the narrative gives no per-system numerical values that resolve the homicide accuracy ranking. The clearest reported claims are the support vector machine’s lead on most homicide measures, the tree’s homicide recall lead and the tree’s sweep of the corruption measures.

Neural results

For homicide, the authors describe the GRU as achieving the strongest set of neural results. They place the HAN next for accuracy. For corruption, they identify the HAN as the neural architecture with the highest accuracy. The conclusion also says that GRU accuracy is slightly higher than the regression tree result, while describing the tree as computationally faster. The paper gives those comparisons qualitatively, so the size of the accuracy or runtime differences cannot be recovered from the rankings.

The authors report higher GRU metrics and faster GRU training than for LSTM in their experiments. They also report longer training for the HAN than for the standalone GRU. That comparison involves a difference in the structure of the systems. The HAN uses recurrent processing at word and sentence levels and adds attention at both. Its output includes the weights used in the later analysis. The standalone GRU supplies strong classification results without that token-level output.

The conclusion says that selected non-neural and neural approaches exceed 95% precision in most cases. Here 95% is a threshold in the authors’ overall description of the experiments. It is not assigned to a particular offense, fold or classifier in that statement. The accompanying narrative identifies nearest neighbors and ordinary recurrent networks as less effective, without giving their individual fold means. The reported evidence supports a ranking and a qualitative account of the comparisons, with less detail about their margins.

The study’s decision to evaluate both types of classifier is especially relevant given the different rankings. A tree that performs strongly on corruption can be part of the evaluation even if the later analysis needs a neural architecture. Conversely, the value of the HAN for examining tokens comes from the attention mechanism it uses to summarize the document. The classification results establish that this ability was available from a competitive architecture in the reported tests. The authors do not give a measured runtime or a numerical estimate of how much accuracy a reader trades for access to attention weights.

The reported attention comparisons

After classification, the authors sort token occurrences by their word attention weights within the outcome groups. The paper presents a list of the top 50 words for homicide and the top 20 for corruption. Each chart below compares the coefficient at the 20th position of the conviction ranking with the coefficient at the same position of the acquittal ranking. The stars mark the higher reported values on this comparison. The plotted quantity is a word attention weight, separate from the classification measures.

Word attention weight at the 20th rank in the homicide dataset

The conviction list retains a larger weight at the same rank.

Word attention weight at the 20th rank in the homicide datasetAcquittal tokens: 0.36Acquittal tokens0.36Conviction tokens (this paper): 0.42Conviction tokens (this paper)0.42
The numbers
System or settingWord attention weight
Acquittal tokens0.36
Conviction tokens (this paper)0.42

Word attention weight at the 20th rank in the corruption dataset

The conviction list again has the larger weight at the same rank.

Word attention weight at the 20th rank in the corruption datasetAcquittal tokens: 0.88Acquittal tokens0.88Conviction tokens (this paper): 0.96Conviction tokens (this paper)0.96
The numbers
System or settingWord attention weight
Acquittal tokens0.88
Conviction tokens (this paper)0.96

These numbers locate a specific point in each ranked list. They report the weight the classifier assigned to the token occupying that position. A larger value in the conviction list shows that the upper part of that list still contains a higher-weighted token at the selected rank. The comparison leaves the rest of each distribution to be examined separately. The paper also includes a boxplot of homicide word attention. The ranked values and the plot concern the use of positions within sentences, whereas the classification measures concern the correctness of outcomes at the document level.

The corruption coefficients at that rank are higher than the homicide coefficients. A coefficient is normalized inside a particular sentence, however, and the sentences from which the ranked positions come can differ in length and in the distribution of their scores. A high coefficient can occur when the weight concentrates on a single position. The plotted values do not place a corruption case and a homicide case on a common scale of how difficult they were to classify.

The authors also report aggregate token counts by outcome. In homicide, the acquittal collection contains 248,460 word tokens and the conviction collection contains 466,461. In corruption, the corresponding counts are 66,929 tokens for acquittals and 252,620 for convictions. These are totals across text in the respective groups. The larger conviction totals describe how much token material was available on that side of the analysis. Comparing the length of a typical conviction and acquittal document would require counts or length summaries at the document level.

What the ablations show

The paper has no formal component ablation. Its comparisons change the classifier architecture, while its inspection of attention examines the trained HAN in place. These are different ways of looking at the results. The first asks which complete system performs better under the reported evaluation. The second asks what kinds of word occurrences appear among the positions the attention network weights highly.

What the architecture comparisons establish

The closest comparison to an attention ablation is the standalone GRU against the HAN. The two share a recurrent building block, and the use of Brazilian Portuguese GloVe embeddings is a common feature of the neural experiments. The GRU does best on the reported neural homicide metrics, and the HAN has the leading neural accuracy on corruption. That pattern establishes that the attention-based architecture can compete while offering weights for inspection. An experiment isolating attention would need to hold the encoders and other training choices fixed while substituting a different way to combine their outputs. The standalone GRU comparison changes the hierarchy and sequence processing as well as the availability of attention.

The GRU and LSTM results concern a different architectural choice. Both handle sequences and use gates, and the paper describes the GRU as faster to train and stronger on its evaluation measures. That is a result for the recurrent systems tested. It leaves open how individual gates contributed, since the experiment changes the recurrent unit as a whole. The authors make a similar point when discussing the wider literature. Relative performance can depend on the task and the data on which the systems are trained.

The contrast between a tree and a support vector machine is informative at the level of full classifiers. The tree has the clearer advantage in corruption, while the support vector machine performs strongly in homicide. A tree can base later decisions on the outcome of an earlier split. A margin-based classifier uses relationships in the feature space to separate the groups. The experiment shows that the relative usefulness of those approaches varies in the studies reported here. It leaves the connection between particular features, tree branches and the advantage on corruption available for further investigation.

What the ranked words show

The researchers inspect attention by retaining occurrences, which lets the same word appear more than once in the ranked data. The paper illustrates this with two uses of the word bank. A reference to a financial institution in the account of a robbery and a reference to a blood bank in an account of someone’s whereabouts involve the same written form. Each occurrence has its own surrounding language. The example explains why context-sensitive encoding is relevant before a token is scored. It is an illustration of the mechanism instead of a measured result for those example sentences.

The same feature of the method matters in the actual results. The token bo appears among the homicide examples for both outcomes with the same reported weight. Its appearance in both groups shows why a ranking of highly weighted occurrences cannot simply be used as a list of terms that point toward one class. A token can receive high weight in a conviction and in an acquittal because it is prominent in the sentence representation in each case. Which disposition the classifier favors depends on what the resulting representation contains and how the output layer uses it.

For homicide acquittals, the authors identify terms such as origem for origin, infância for childhood and mãe for mother. They read these and related words as references to a defendant’s social and personal circumstances. In the homicide conviction lists, disparos refers to shots, golpes to blows and lesões to injuries. Other examples, including acusação and sentença, concern legal procedure. The juxtaposition gives the authors a basis for asking whether the decisions discuss defendants and events differently depending on the disposition. The observation concerns the words in the ranked lists. It does not establish how often those subjects appear across all decisions or how frequently their appearance favors one outcome.

The corruption analysis offers a different vocabulary. The authors point to público and ministério in connection with public institutions or services, and to propina and peculato in connection with bribery and embezzlement. They caution that the smaller amount of material limits the precision of this reading. These terms show what kinds of references appear among the highly weighted examples from this collection. Broader claims about the distribution of corruption in Brazil would require evidence about cases outside the active corruption judgments selected for the analysis.

The authors take the higher conviction coefficients at the selected rank as evidence of a stronger contribution from conviction tokens. The calculation establishes a narrower numerical claim. At that point in the ranks, the token from the conviction group receives more of its sentence’s attention than the corresponding ranked token from the acquittal group receives of its own. The attention coefficient scales a vector. It has no sign indicating which class the vector will favor. An occurrence with a large coefficient can contribute information relevant to either class, and its sentence can receive little weight at the next level. The examples therefore support an analysis of interpretability at the level of the network’s internal weighting.

Limitations

Limits the authors identify

The authors present the labeled collection as an initial contribution and point to ways of expanding it. It contains selected homicide and active corruption decisions from one court. They propose collecting more examples of those offenses and extending the research to subjects substantially different from them, including family law and arbitration. The motivation is coverage. A subject with different terminology, different document structure or different kinds of dispositions would probe whether the approach carries further than the tasks evaluated here.

They also identify available features that remain unexplored. The paper raises the judge’s gender and the location of a case as variables that could be examined in future analysis. The present experiments use the decision text for classification and do not report the effect of adding, withholding or grouping by these fields. Though the archive provides metadata, that does not make a subgroup comparison part of the experiment.

The authors recognize that the architecture choice depends on the purpose and the computation involved. Their tree takes less computation than the GRU, while the GRU performs strongly and trains faster than the HAN. The HAN can support token inspection. The conclusion leaves the cause of the tree’s strong performance as a question for further work. The experiments compare techniques under the reported procedure and do not establish an explanation for why a tree should perform well on judicial documents in general.

The scope of the attention analysis also receives an explicit qualification. The authors place a full sociological account beyond the study and say that the shorter corruption material limits how precisely they can interpret the words. That qualification applies when reading vocabulary such as references to family background or public institutions. It is possible to observe which terms recur among heavily weighted positions without establishing a social explanation for their presence.

Limits apparent from the setup

The central boundary of the evaluation is the time at which the input was written. The classifiers receive judicial decisions whose dispositions have already been reached. The collection procedure also favors documents in which a conviction or acquittal can be clearly identified. The preprocessing description names tokenization and removal of stopwords. It does not identify a procedure that removes disposition language or reconstructs a version of each case containing only material available before the court ruled. Direct outcome wording, procedural expressions or the structure of an opinion could therefore account for part of the measured signal. The paper does not determine how much.

This leaves a meaningful distinction between recovering a label from a record and forecasting it in advance. Both address the relationship between case text and outcome, but they expose the classifier to different information. A successful retrospective classification may draw on the court’s formulation of its reasoning or ruling. A prospective study would need a separately defined input that exists at the relevant earlier point in the proceeding. The cross-validation scores estimate performance for the first task as the authors constructed it.

The fold procedure also leaves questions about how similar the training and evaluation documents could be. The corpus spans different periods, but the paper does not report a chronological split in which earlier decisions predict later ones. Nor does it describe a fold assignment that keeps documents grouped by judge, location or related proceeding. Such grouping would change what generalization means. An evaluation across judges, for example, would ask whether the vocabulary and structures learned in the training decisions remain predictive when the style of authorship can change. Ordinary fold averages alone do not answer that question.

The description of hyper-parameter search says that combinations were tried before the final choices, without spelling out a separate selection procedure for each fold. Likewise, the paper explains TF-IDF as a corpus-dependent measure but does not state where the document frequencies were fitted in relation to the fold boundaries. The neural stopping criterion names the required improvement in loss without fully identifying the data used to monitor it. These omissions leave details of the evaluation protocol uncertain. They do not establish that any held-out label was used in fitting.

Precision, recall and F-score also require care because their meaning depends on the class treatment. Readers would need the case counts by disposition and class-specific results, or a defined averaging procedure, to assess whether success is shared across convictions and acquittals. The aggregate word counts cannot stand in for counts of decisions. A group can supply more tokens because it contains more documents, because its documents are longer, or because of both. The same totals cannot establish that judges typically write longer conviction decisions or that the conviction vocabulary is richer.

Attention has its own evidentiary boundary. Word attention measures a position’s relative contribution to a weighted sentence representation. Sentence attention then allocates weight over contextual sentence representations, and the final classifier operates on the resulting vector. Without an intervention such as removing or changing a word and measuring the prediction again, the effect of the word on the outcome score remains undetermined. Because the encoding is contextual, changing one word can also change the representations of the words around it. A coefficient read from the original document does not capture the full effect of such a change.

Comparing ranked coefficients across outcome groups introduces additional uncertainty. The groups produce different numbers of token occurrences, and each list pools weights normalized within separate sentences. A rank comparison across those pools does not control for sentence length, the number of candidate positions or repeated wording. It is evidence about the sorted lists that the authors obtained, with an interpretation tied to how attention works inside the sentences. Claims that one outcome uses more refined language or that the court relied on a particular expression go beyond what the comparison measures.

Finally, the experiment establishes no external validation across courts or languages. The paper uses earlier findings elsewhere to motivate the possibility of common patterns and suggests that the approach might transfer after adaptation. Earlier work on other court systems used its own texts, labels and setups. Agreement that a classifier family can be useful in several studies is compatible with substantial differences in which textual features it uses. Establishing transfer for the São Paulo classifiers would require testing them beyond the selected collection.

What came after

There is no documented follow-up to connect directly to the São Paulo experiments. The paper’s comparisons with work on legal subjects, claim verification and sentence commutation describe related applications of hierarchical attention. They do not establish subsequent adoption of this study’s corpus, evaluation procedure or token rankings.

The authors leave two questions open for a follow-up. One is whether the CART results are tied to the language and structure of the selected judgments or extend to other courts and legal subjects. The other is whether prediction from information available before a ruling would recover the signal found in the judgments themselves. The study supplies an initial labeled collection and a comparison of approaches for the retrospective task. The proposed extensions remain open empirical questions.

Cite

Cite as Vithor Gomes Ferreira Bertalan and Evandro Eduardo Seron Ruiz. 2022. Using attention methods to predict judicial outcomes. arXiv:2207.08823 · Artificial Intelligence and Law. 30 (2022).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1007/s10506-022-09342-7 · arXiv 2207.08823

@misc{bertalan2022using,
  title = {{Using attention methods to predict judicial outcomes}},
  author = {Vithor Gomes Ferreira Bertalan and Evandro Eduardo Seron Ruiz},
  year = {2022},
  doi = {10.1007/s10506-022-09342-7},
  eprint = {2207.08823},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1007/s10506-022-09342-7}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bertalan-2022-using-attention-methods-predict-judicial/

References

61 references, from the paper's own bibliography.

  1. Alarie B, Niblett A, Yoon AH (2018) How artificial intelligence will affect the practice of law. University of Toronto Law Journal 68(supplement 1):106–124 OpenAlex ↗ · Scholar ↗
  2. Aletras N, Tsarapatsanis D, Preoţiuc-Pietro D, Lampos V (2016) Predicting judicial decisions of the European Court of Human Rights: A natural language processing perspective. PeerJ Computer Science 2:e93 our card
  3. Alschner W, Skougarevskiy D (2017) Towards an automated production of legal texts using recurrent neural networks. In: Proceedings of the 16th Edition of the International Conference on Articial Intelligence and Law, Association for Computing Machinery, New York, NY, USA, ICAIL '17, p 229–232, , https://doi.org/10.1145/3086512.3086536 OpenAlex ↗ · Scholar ↗
  4. Antonucci L, Crocetta C, d’Ovidio FD (2014) Evaluation of Italian judicial system. Procedia Economics and Finance 17:121–130 OpenAlex ↗ · Scholar ↗
  5. Antos A, Nadhamuni N (2021) Practical guide to artificial intelligence and contract review. In: Research Handbook on Big Data Law, Edward Elgar Publishing OpenAlex ↗ · Scholar ↗
  6. Ashley KD, Brüninghaus S (2009) Automatically classifying case texts and predicting outcomes. Artificial Intelligence and Law 17(2):125–165 OpenAlex ↗ · Scholar ↗
  7. Balakrishnama S, Ganapathiraju A (1998) Linear discriminant analysis - a brief tutorial. Institute for Signal and information Processing 18(1998):1–8 OpenAlex ↗ · Scholar ↗
  8. Bishop CM (2006) Pattern Recognition and Machine Learning (Information Science and Statistics). Springer-Verlag, Berlin, Heidelberg OpenAlex ↗ · Scholar ↗
  9. Branting LK, Yeh A, Weiss B, Merkhofer E, Brown B (2015) Inducing predictive models for decision support in administrative adjudication. In: AI Approaches to the Complexity of Legal Systems, Springer, pp 465–477 OpenAlex ↗ · Scholar ↗
  10. Cambria E, White B (2014) Jumping NLP Curves: A Review of Natural Language Processing Research [Review Article]. IEEE Computational Intelligence Magazine 9(2):48–57, OpenAlex ↗ · Scholar ↗
  11. Chalkidis I, Fergadiotis M, Malakasiotis P, Aletras N, Androutsopoulos I (2019) Extreme multi-label legal text classification: A case study in eu legislation. arXiv preprint arXiv:190510892 OpenAlex ↗ · Scholar ↗
  12. Chantar HK, Corne DW (2011) Feature subset selection for Arabic document categorization using bpso-knn. In: 2011 Third World Congress on Nature and Biologically Inspired Computing, IEEE, pp 546–551 OpenAlex ↗ · Scholar ↗
  13. Chi Y, Zhang P, Wang F, Lu T, Gu N (2022) Legal judgement prediction of sentence commutation with multi-document information. In: CCF Conference on Computer Supported Cooperative Work and Social Computing, Springer, pp 473–487 OpenAlex ↗ · Scholar ↗
  14. Chung J, Gulcehre C, Cho K, Bengio Y (2014) Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:14123555 OpenAlex ↗ · Scholar ↗
  15. Dar JA, Srivastava KK, Lone SA (2022) Spectral features and optimal hierarchical attention networks for pulmonary abnormality detection from the respiratory sound signals. Biomedical Signal Processing and Control 78:103905 OpenAlex ↗ · Scholar ↗
  16. Desmet B, Hoste V (2014) Recognising suicidal messages in dutch social media. In: 9th international conference on language resources and evaluation (LREC), pp 830–835 OpenAlex ↗ · Scholar ↗
  17. Do PK, Nguyen HT, Tran CX, Nguyen MT, Nguyen ML (2017) Legal question answering using ranking svm and deep convolutional neural network. arXiv preprint arXiv:170305320 OpenAlex ↗ · Scholar ↗
  18. Gao S, Young MT, Qiu JX, Yoon HJ, Christian JB, Fearn PA, Tourassi GD, Ramanthan A (2018) Hierarchical attention networks for information extraction from cancer pathology reports. Journal of the American Medical Informatics Association 25(3):321–330 OpenAlex ↗ · Scholar ↗
  19. Gokhale R, Fasli M (2017) Deploying a co-training algorithm to classify human-rights abuses. In: 2017 International Conference on the Frontiers and Advances in Data Science (FADS), IEEE, pp 108–113 OpenAlex ↗ · Scholar ↗
  20. Hartmann N, Fonseca E, Shulby C, Treviso M, Rodrigues J, Aluisio S (2017) Portuguese word embeddings: Evaluating on word analogies and natural language tasks. arXiv preprint arXiv:170806025 our card
  21. He X, Shi S, Geng X, Xu L (2022) Hierarchical attention-based context-aware network for red tide forecasting. Applied Soft Computing 127:109337 OpenAlex ↗ · Scholar ↗
  22. Kanakaraj M, Guddeti RMR (2015) Performance analysis of ensemble methods on twitter sentiment analysis using NLP techniques. In: Proceedings of the 2015 IEEE 9th International Conference on Semantic Computing (IEEE ICSC 2015), IEEE, pp 169–170 OpenAlex ↗ · Scholar ↗
  23. Kastellec JP (2010) The statistical analysis of judicial decisions and legal rules with classification trees. Journal of Empirical Legal Studies 7(2):202–230 OpenAlex ↗ · Scholar ↗
  24. Krestel R, Fankhauser P, Nejdl W (2009) Latent dirichlet allocation for tag recommendation. In: Proceedings of the third ACM conference on Recommender systems, pp 61–68 OpenAlex ↗ · Scholar ↗
  25. Kufandirimbwa O, Kuranga C (2012) Towards judicial data mining: Arguing for adoption in the judicial system. Online Journal of Physical and Environmental Science Research 1(2):15–21 OpenAlex ↗ · Scholar ↗
  26. Le TTN, Shirai K, Le Nguyen M, Shimazu A (2015) Extracting indices from japanese legal documents. Artificial Intelligence and Law 23(4):315–344 OpenAlex ↗ · Scholar ↗
  27. Li X, Chen W, Wang T, Huang W (2017) Target-specific convolutional bi-directional lstm neural network for political ideology analysis. In: Asia-Pacific Web (APWeb) and Web-Age Information Management (WAIM) Joint Conference on Web and Big Data, Springer, pp 64–72 OpenAlex ↗ · Scholar ↗
  28. Liu Z, Chen H (2017) A predictive performance comparison of machine learning models for judicial cases. In: 2017 IEEE Symposium series on computational intelligence (SSCI), IEEE, pp 1–6 OpenAlex ↗ · Scholar ↗
  29. Liu Z, Tu C, Sun M (2019) Legal cause prediction with inner descriptions and outer hierarchies. In: China National Conference on Chinese Computational Linguistics, Springer, pp 573–586 OpenAlex ↗ · Scholar ↗
  30. Loh WY (2011) Classification and regression trees. Wiley interdisciplinary reviews: data mining and knowledge discovery 1(1):14–23 OpenAlex ↗ · Scholar ↗
  31. Luo B, Feng Y, Xu J, Zhang X, Zhao D (2017) Learning to predict charges for criminal cases with legal basis. In: Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, Association for Computational Linguistics, Copenhagen, Denmark, pp 2727–2736 OpenAlex ↗ · Scholar ↗
  32. Ma J, Gao W, Joty S, Wong KF (2019) Sentence-level evidence embedding for claim verification with hierarchical attention networks. In: Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Association for Computational Linguistics, Florence, Italy, pp 2561–2571 OpenAlex ↗ · Scholar ↗
  33. Mac Kim S, Xu Q, Qu L, Wan S, Paris C (2017) Demographic inference on twitter using recursive neural networks. In: Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp 471–477 OpenAlex ↗ · Scholar ↗
  34. Manning CD, Raghavan P, Schütze H (2008) Introduction to Information Retrieval. Cambridge University Press, New York, NY, USA OpenAlex ↗ · Scholar ↗
  35. McShane BB, Watson OP, Baker T, Griffith SJ (2012) Predicting securities fraud settlements and amounts: a hierarchical bayesian model of federal securities class action lawsuits. Journal of Empirical Legal Studies 9(3):482–510 OpenAlex ↗ · Scholar ↗
  36. Moens MF (2001) Innovative techniques for legal text retrieval. Artificial Intelligence and Law 9(1):29–57 OpenAlex ↗ · Scholar ↗
  37. Obasi CK, Ugwu C (2015) Feature selection and vectorization in legal case documents using chi-square statistical analysis and naïve bayes approaches. IOSR Journal of Computer Engineering 17(2):42–50 OpenAlex ↗ · Scholar ↗
  38. Oliveira FLd, Cunha LG (2020) The indicators on the brazilian judiciary: limitations, challenges and the use of technology. Revista Direito GV 16(1) OpenAlex ↗ · Scholar ↗
  39. Pavlinek M, Podgorelec V (2017) Text classification method based on self-training and lda topic models. Expert Systems with Applications 80:83–93 OpenAlex ↗ · Scholar ↗
  40. Pelle R, Alcântara C, Moreira VP (2018) A classifier ensemble for offensive text detection. In: Proceedings of the 24th Brazilian Symposium on Multimedia and the Web, Association for Computing Machinery, New York, NY, USA, WebMedia '18, p 237–243 OpenAlex ↗ · Scholar ↗
  41. Pennington J, Socher R, Manning CD (2014) Glove: Global vectors for word representation. In: Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp 1532–1543 our card
  42. Rao A, Spasojevic N (2016) Actionable and political text classification using word embeddings and lstm. arXiv preprint arXiv:160702501 OpenAlex ↗ · Scholar ↗
  43. Remmits Y (2017) Finding the topics of case law: Latent dirichlet allocation on supreme court decisions. PhD thesis, Radboud Universiteit OpenAlex ↗ · Scholar ↗
  44. Rios-Figueroa J (2006) Judicial independence and corruption: An analysis of latin america. Available at SSRN 912924 OpenAlex ↗ · Scholar ↗
  45. Roy D, Dutta M (2022) Optimal hierarchical attention network-based sentiment analysis for movie recommendation. Social Network Analysis and Mining 12(1):1–16 OpenAlex ↗ · Scholar ↗
  46. de Sa CA, Santos RLdS, Moura RS (2017) An approach for defining the author reputation of comments on products. In: International Conference on Applications of Natural Language to Information Systems, Springer, pp 326–331 OpenAlex ↗ · Scholar ↗
  47. Sannier N, Adedjouma M, Sabetzadeh M, Briand L (2017) An automated framework for detection and resolution of cross references in legal texts. Requirements Engineering 22(2):215–237 OpenAlex ↗ · Scholar ↗
  48. Sulea OM, Zampieri M, Malmasi S, Vela M, Dinu LP, Van Genabith J (2017a) Exploring the use of text classification in the legal domain. arXiv preprint arXiv:171009306 OpenAlex ↗ · Scholar ↗
  49. Sulea OM, Zampieri M, Vela M, Van Genabith J (2017b) Predicting the law area and decisions of french supreme court cases. arXiv preprint arXiv:170801681 OpenAlex ↗ · Scholar ↗
  50. Sun C, Zhang Y, Liu X, Wu F (2020) Legal Intelligence: Algorithmic, Data, and Social Challenges. In: Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, pp 2464–2467 OpenAlex ↗ · Scholar ↗
  51. Surden H (2014) Machine learning and law. Washington Law Review 89:87–115 OpenAlex ↗ · Scholar ↗
  52. Tamilarasan Ramasamy DJJ (2022) Early risk detection of depression from social media posts using hierarchical attention networks. JOURNAL OF ALGEBRAIC STATISTICS 13(1):483–489 OpenAlex ↗ · Scholar ↗
  53. Tarnpradab S, Liu F, Hua KA (2017) Toward extractive summarization of online forum discussions via hierarchical attention networks. In: The Thirtieth International Flairs Conference OpenAlex ↗ · Scholar ↗
  54. Tran OT, Ngo BX, Le Nguyen M, Shimazu A (2014) Automated reference resolution in legal texts. Artificial intelligence and Law 22(1):29–60 OpenAlex ↗ · Scholar ↗
  55. Turian J, Ratinov L, Bengio Y (2010) Word representations: a simple and general method for semi-supervised learning. In: Proceedings of the 48th annual meeting of the association for computational linguistics, Association for Computational Linguistics, pp 384–394 our card
  56. Wang J, Deng H, Liu B, Hu A, Liang J, Fan L, Zheng X, Wang T, Lei J (2020) Systematic Evaluation of Research Progress on Natural Language Processing in Medicine Over the Past 20 Years: Bibliometric Study on PubMed. J Med Internet Res 22(1):e16816, , http://www.ncbi.nlm.nih.gov/pubmed/32012074 OpenAlex ↗ · Scholar ↗
  57. Wenguan W, Yunwen C, Hua C, Yanneng Z, Huiyu Y (2019) Judicial document intellectual processing using hybrid deep neural networks. Journal of Tsinghua University (Science and Technology) 59(7):505–511 OpenAlex ↗ · Scholar ↗
  58. Xie J, Liu X, Dajun Zeng D (2018) Mining e-cigarette adverse events in social media using bi-lstm recurrent neural network with word embedding representation. Journal of the American Medical Informatics Association 25(1):72–80 OpenAlex ↗ · Scholar ↗
  59. Yang Z, Yang D, Dyer C, He X, Smola A, Hovy E (2016) Hierarchical attention networks for document classification. In: Proceedings of the 2016 conference of the North American chapter of the association for computational linguistics: human language technologies, Association for Computational Linguistics, San Diego, California, pp 1480–1489 our card
  60. Zeng Y, Wang R, Zeleznikow J, Kemp E (2007) A knowledge representation model for the intelligent retrieval of legal cases. International Journal of Law and Information Technology 15(3):299–319 OpenAlex ↗ · Scholar ↗
  61. Zhang Z, Robinson D, Tepper J (2018) Detecting hate speech on twitter using a convolution-gru based deep neural network. In: European semantic web conference, Springer, pp 745–760 OpenAlex ↗ · Scholar ↗