<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Some Practical Analyses of the Judgment Documents of Labor Litigations for Social Conflicts and Similar Cases</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Chao-Lin Liu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yi-Fan Liu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>National Chengchi University</institution>
          ,
          <addr-line>Taipei</addr-line>
          ,
          <country country="TW">Taiwan</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We report two applications of the analysis of the judgment documents of labor litigations. The disputes listed in the judgment documents provide a very good foundation for recommending similar cases with explanations. For this narrowly focused “similarity”, we could achieve a 70% accuracy in our recommendations. Analyzing and learning about the disputes that the litigants argued in their cases help the lawyers, the social workers, and ordinary people to know more about and improve their society.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Machine learning</kwd>
        <kwd>legal informatics</kwd>
        <kwd>civil cases</kwd>
        <kwd>user interaction</kwd>
        <kwd>social studies</kwd>
        <kwd>social services</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>The analysis of contents of judgment
documents can have a wide variety of applications.
Certainly, the results of analysis can be used for
legal informatics. The lawsuits, both criminal and
civil ones, are about people’s lives. Analyzing the
judgment documents and deep understanding the
causes of the lawsuits can also be useful for
understanding our society and thus the needs and
expectations of our clients.</p>
      <p>
        The analysis for the judgment documents of
the civil cases that are about the support of the
elderly may shed light on the family issues of both
the plaintiffs and the defendants [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. If we can do
a large-scale analysis of this category of
documents, we probably can figure out how to
improve the social services of our governments
such that people do not have to resort to litigations
to solve problems.
      </p>
      <p>Analogously, the analysis of judgment
documents of labor litigations leads us to learn
about the conflicts between the employees and
their employers. This knowledge can be used for
legal informatics and can be used for social
studies and social services.</p>
      <p>Identifying similar cases is a more important
goal in our current work. If we can identify similar
cases for a new case, then we are more
empowered to predict the future judgements of the
new case. Similar prior cases can also be used to
support or to challenge the predicted judgments of
a prediction system.</p>
      <p>
        “Similarity” is a subjective idea, however.
People may consider two objects similar, even
when the others do not [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
      <p>
        One may approach the task of identifying
similar cases from a wholistic or theoretical
perspective, e.g., [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] and [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. We adopt a
relatively narrow and more specific focus. We
would consider two labor litigations similar if the
involved disputes between the plaintiffs and the
defendants are similar.
      </p>
      <p>By analyzing the disputes recorded in the
judgment documents, we gain insights into the
labor-related conflicts. By building a system for
recommending similar cases based on the clusters
of disputes, we would improve the explainability
of the recommender system. Experimental results
indicate that achieving a 70% accuracy is possible
for our recommender. Although this is not a
highly impressive result, it is encouraging.</p>
      <p>We offer information about the sources of the
judgment documents that we used in our research
in Section 2, and define our research problems
more officially in Section 3. We explain the
necessary preprocessing of the online files to
make them useful for our studies in Section 4, and
present the design concepts of our recommender
system in Section 5. In Section 6, we outline the
methods of how we use additional information to
assist the readers to acquire information from the
disputes recorded in the judgment documents. In
Section 7, we report the results of the evaluations
of the recommender system, and we offer more
technical discussions in Section 8.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Source and Selection of Judgment</title>
    </sec>
    <sec id="sec-3">
      <title>Documents</title>
    </sec>
    <sec id="sec-4">
      <title>2.1. Data Source</title>
      <p>The Judicial Yuan is the highest government
unit that governs the judicial matters in Taiwan.
The Judicial Yuan publishes the judgment
documents of several types of courts, including
the local courts, the high courts, the supreme
courts, and some special courts three months after
the judgment date whenever possible. Namely,
the judgment documents for February judgments
will not be published until May. Some of the
judgment documents may not be published by
legal reasons, e.g., for protecting the minors or for
protecting the litigants. In addition, the contents
of the documents were also anonymized for
privacy reasons.</p>
      <p>After these cautionary steps, the publishable
documents were placed on the Internet, and we
will refer to this website as TWJY for representing
the Taiwan Judicial Yuan.1</p>
      <p>As of May 2023, there are about 18 million
documents available on the website. The website
offers documents for judicial decisions of as early
as January 1996. In the first few years, only
documents of a limited number of special courts
were available. The coverage started to broaden
since 2000.
2.2.</p>
    </sec>
    <sec id="sec-5">
      <title>Selection</title>
      <p>After downloading all of the published
documents from the TWJY, we need to identify
the documents that belong to the category of labor
litigations. The TWJY includes documents for a
wide variety of lawsuits, certainly including the
criminal and the civil cases, and there are myriad
subcategories of lawsuits of them.</p>
      <p>Each document in the TWJY is a JSON file,
and adopts a top-level structure. The JSON file
has several fields for document: JID is the long
identification number; JYEAR is the year when
the case occurred in terms of Taiwan calendar;
1 Open data of Taiwan Judicial Yuan
https://opendata.judicial.gov.tw/, last accessed 2023/05/05
(TWJY):</p>
      <p>JCASE is the abbreviated code for the type of the
lawsuit; JNO is the short identification number for
the lawsuit; JDATE is the date for the current
judgment in terms of the Western calendar;
JTITLE is the category of the lawsuit, and JFULL
is the full text for the judgment document.</p>
      <p>Therefore, using the contents of JCASE and
JTITLE fields to find relevant documents is a
basic step. We focus on the judgments of the local
courts, where the judges would consider the
material parts of the lawsuit. Using the codes in
the JCASE and the JTITLE fields could help us
exclude cases for appeal.</p>
      <p>However, the filtering of relevant and usable
documents needs more steps. Sometimes, even
when the JCASE and JTITLE fields seem to
qualify a document, we may find clues in the
JFULL field that indicates the case does not meet
our needs.</p>
      <p>In our current study, we look for cases in which
the courts explicitly recorded the disputes
between the plaintiffs and the defendants in the
judgment document. According to the Code Civil
Procedure, which governs how the judges, the
plaintiffs, and the defendants should proceed with
the civil lawsuits, the litigants should prepare a list
of their disputes. These disputes provide
important information about the lawsuits, and
help the lawsuits to proceed more effectively.
Nevertheless, not all of the judgment documents
would record the disputes.</p>
      <p>We will explain that we build our current work
on the assumption that the published documents
would contain the list of disputes in Section 3.
Hence, at the stage of filtering for useful
documents, we look into the JFULL field to make
sure that the documents meet this requirement.</p>
      <p>At this moment we selected 3835 cases from
21 local courts in Taiwan. Figure 1 shows the
distribution over the years when the cases took
place. The horizontal axis shows the years, and the
vertical axis shows the number of cases. The
longterm trend is that the number of cases has been
increasing over the years.</p>
      <p>Figure 2 shows the sources of the selected
cases. The horizontal axis lists the code in English
letters for the 21 local courts, and the vertical axis
shows the contribution of the individual local
court in the selection. Most of the selected came
from the top five courts, which happened to locate
in the metropolitan areas.</p>
    </sec>
    <sec id="sec-6">
      <title>3. Problem definitions</title>
      <p>We aim at identifying similar cases of labor
litigations. For this task, when given three cases,
  ,   , and   , we want to determine whether two
  or   are more similar to   , denoted by
  ≽    . To this end, we hope to find a function
 of two cases, such that the relationship (1) holds.
(1)
  ≽    ⇒  (  ,   ) ≥  (  ,   )</p>
      <p>This formulation of relatively similarity should
be intuitive and convincing, but it is also
incomplete, if not controversial. People of
different interests or needs may have different
definitions for “similarity”. A person might be
interested in finding cases in which the judges’
decision styles are similar or in finding cases in
which the causes of the lawsuits are similar.
“Similarity” is a dynamic concept, and it is not
easy to define with a function.</p>
      <p>Admitting this intrinsic diversity in
“similarity”, we must define our perspective of
“similarity.” Since preparing the list of the
disputes for a civil litigation is required (or highly
recommended) by law, we would base our
definition for the relative similarity between two
civil cases on the similarity between the disputes
of these two cases. We understand that this
definition might not be very general, but should
be useful in legal practice.</p>
      <p>Let   ,   , and   denote the list of disputes
of   ,   , and   , respectively. Assume that we
can create a mechanism,  , for computing the
similarity between two lists of disputes, then we
can rewrite relationship (1) as relationship (2).
  ≽    ⇒  (  ,   ) ≥  (  ,   )
(2)</p>
    </sec>
    <sec id="sec-7">
      <title>4. Data Preprocessing</title>
      <p>For each of the judgment documents that we
selected in Section 2.2, there is a section in each
of the document that itemizes the disputes
between the plaintiffs and the defendants. The
format looks like the following, although the
formats may vary and they are actually in Chinese.
(See Appendix A for real examples.)</p>
      <p>The disputes are following.
1. dispute-1 statement
2. dispute-2 statement
3. …
cases
dispute lists
x1,x2,x3,x4
clusters
y1,y2,y3,y4,y5
z1,z2,z3
One direct challenge is that the number of
disputes vary from case to case. Hence, it is not
easy to define the function  in (2).</p>
      <p>The second challenge is that, although the
dispute statements are normally not very long,
they can still contain a few sentences, and the
number of sentences can vary from dispute to
dispute.</p>
      <p>The third challenge is that the statements
contain specific information about their belonging
cases, e.g., person names, place names, and time
expressions. Comparing these named entities
between two litigations may not make very much
sense.</p>
      <p>For the third challenge, our programs would
recognize using the NER techniques (named
entity recognition) to identify the named entities,
and would replace those specific nouns (or noun
phrases) with more general terms, e.g., someone,
somewhere, and sometime. This would make the
dispute statements more comparable. We refer to
this as a “blurring” step. (See Appendix A for
real examples.)</p>
      <p>For the second challenge, we try to do sentence
splitting in Chinese in some of our experiments. It
is well known in the field of natural language
processing that the Chinese texts do not use
delimiters between words. Hence, sometimes, we
need to do word tokenization. It is less well known
that there is no specific sentence boundary in
Chinese texts either, even though there is a
punctuation mark “ 。 ”, whose function is
supposed to be similar to the period (.) in English.</p>
      <p>Like many other researchers, we chose to split
the statements at specific punctuation marks, e.g.,
“？”. This punctuation mark appears often in the
lists of disputes in the TWJY documents, partially
due to that this is how the courts recorded some
undermined questions in the litigations. Hence,
our program might split multiple questions in one
dispute statement into individual disputes in some
experiments. (See Appendix B for a real example.)</p>
    </sec>
    <sec id="sec-8">
      <title>5. Clustering: Motivation and Issues</title>
    </sec>
    <sec id="sec-9">
      <title>5.1. Main Ideas</title>
      <p>
        We outline the basic idea for how we may
solve the first challenge with the simplified
situation shown in Figure 3. Assume that   has
four disputes, { 1,  2,  3,  4}, in its dispute list,
that   has five disputes, { 1,  2,  3,  4,  5}, and
that   has three disputes, { 1,  2,  3}. Now,
assume that we put these 12 disputes in a pool, and
that we run a clustering procedure to cluster them
into six clusters [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], as shown at the bottom of
Figure 3. Let’s name these six clusters,
 1,  2,  3,  4,  5, and  6.
      </p>
      <p>Hence, as we may inspect, in Figure 3, and find
that the disputes of   and   appear together in
{ 2,  3,  5}, and that the disputes of   and  
appear together only in { 4}.</p>
      <p>If the results of clustering the pooled disputes
is like topic modeling, which we normally hope
so, then, qualitatively, the three dispute pairs of
  and   are similar, and one dispute pair of  
and   is similar. Namely, if we define the
assignments in (3), then we have   ≽   
based on (2)
 (  ,   ) =  (  ,   ) = 3
 (  ,   ) =  (  ,   ) = 1
(3)</p>
      <p>More specifically, we can define the 
function for two cases as the number of clusters in
which their disputes appear together.
5.2.</p>
    </sec>
    <sec id="sec-10">
      <title>Some Technical Discussions</title>
      <p>The example in Figure 3 shows the main ideas,
and the procedure shows us a way to compute the
similarity between any two cases at the same time,
even though the number of disputes in their
dispute lists are different.</p>
      <p>Figure 4 shows the distribution of the original
number of disputes in the dispute lists of the
selected 3835 cases. In total, we have 12523
disputes in them.</p>
      <p>Although we showed only six clusters in
Figure 3, a clustering procedure for a realistic
analysis task may have to consider hundreds of
clusters, hoping that some of the clusters offer
useful insights into our data. Figure 5 shows the
distribution of the number of clusters that include
a certain number of disputes, when we ran a
kmeans clustering procedure to produce 200
clusters for the 12523 disputes.</p>
      <p>Given that we will generate hundred of clusters
from a large number of disputes, how could we
make sure that the disputes that were placed in the
same clusters had related and even close legal
meanings? We will discuss this problem in
Section 6.</p>
      <p>There are some more technical questions for
this procedure. The current definition favors the
cases that have more disputes in the dispute lists.
In practice, although the numbers of disputes of
cases concentrate within a small range, this factor
is influential, so more sophisticated methods may
be needed.</p>
      <p>In addition, it appears that the current
definition disregards the number of disputes that
belong to the same cluster. If   and   both have
one dispute that belongs to a certain cluster   ,
their  function will receive a credit of 1. If  
and   both have more disputes that belong to a
2 The website of scikit learn is https://scikit-learn.org/stable/, last
visited May 5, 2023.
certain cluster   , their  function will still
receive a credit of 1. Although this may be
concerning, how should we define a new score for
such cases? Should we consider the Dice
coefficient?</p>
      <p>On the other hand, if there are many disputes
of a case that can be placed into the same cluster,
the meanings or functions of these disputes may
be similar (and redundant), which is not
reasonable for a well-written judgment document.
Hence, we expect that having multiple and many
disputes in one cluster may not be a frequent
problem.</p>
    </sec>
    <sec id="sec-11">
      <title>6. Clusters for Social Conflicts</title>
    </sec>
    <sec id="sec-12">
      <title>6.1. Steps for Clustering</title>
      <p>We vectorized each of the pooled disputes, and
clustered the resulting vectors. We may apply the
techniques of singular value decomposition (SVD)
to reduce the dimension of the resulting vectors in
the middle.</p>
      <p>
        For this preliminary exploration, we applied
the TFIDFvectorizer function of scikit learn to
vectorize the disputes.2 We certainly should try
the vectorization with the BERT family, but we
would prefer to check whether using the
traditional models would give ourselves better
ability of explainability first. We chose to use the
‘char’ model, which allowed us to adopt the
concept of FastText in tokenizing the Chinese text
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. When using the ‘char’ model, we could
manipulate the longest length of the n-grams for
tokenization at will. The computational costs
would increase as we increased n. Table 1 offers
information about the resulting size of the vector
for each of the disputes when we set n to 3, 4, and
5. Most Chinese words contain no more than four
characters, but some Chinese legal terms are
longer.
      </p>
      <p>A common strategy to avoid huge
computational costs is to do the SVD step for
dimensionality reduction, after we use a large n
for capturing longer legal terms in the
tokenization step. We replied on the
TruncatedSVD function of scikit learn to do SVD,
and the only important parameter to choose was
the number of target dimension.</p>
      <p>
        We can then apply clustering methods to
cluster the vectors of the disputes. Top-down
clustering, like the k-means algorithm, can be a
choice. Bottom-up clustering, like the
agglomerative clustering, is another common
choice [
        <xref ref-type="bibr" rid="ref1 ref16">1</xref>
        ].
      </p>
      <p>We need to choose the number of clusters for
inspection. The problem of selecting the number
of clusters is a common issue for people who
apply clustering in their work, and we can find
some standard method in the literature. We will
not pursue that venue of topic in this manuscript.
Instead, we shall show that choosing a large
number of clusters would give us promising
results for now.
6.2.</p>
    </sec>
    <sec id="sec-13">
      <title>Inspecting the Clusters</title>
      <p>
        We implement a mechanism for assisting
readers to inspect the contents of the clusters. This
is necessary because that, although the results of
clustering (also topic modeling) are potentially
useful, not all of the clusters (topics) may make
sense in practice. A researcher can read the
clusters to find out the useful ones diligently and
patiently, as many have done so [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. This
inspection process does require some hard work
because a cluster can include many dozens of
disputes, as we have shown in Figure 5. It is better
to offer assistive information to facilitate this
inspection process.
      </p>
      <p>After we had produced the clusters of disputes,
we could analyze the disputes in the clusters. We
can find, list, and offer the most frequent words in
each of the clusters to the readers. The readers
may grasp a rough idea about the possible main
subject of the disputes in a cluster.</p>
      <p>Since we used the TFIDFvectorizer function
that was provided by the scikit learn to vectorize
the disputes, and used the vectors in the clustering
step, we could use the words that have highest
TFIDF values as the summary for a given cluster.</p>
      <p>We provide a partial screenshot for the
inspection of a cluster that contains 49 disputes in
Appendix C.</p>
      <p>
        Given the summaries and the list of disputes,
we found that it was easy to browse the clusters of
the disputes, and figured out the main subjects for
the clusters. We could change the settings for the
clustering steps, and confirmed that clustering the
disputes provide a practically viable way to find
the topics of the disputes. In fact, before we could
offer the summaries, we have read our clusters
directly, found the viability of the clustering
methods, and discussed some preliminary results
in a digital humanities conference [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>
        By studying the clusters of the disputes, we
found some common types of labor-employer
disputes. They are for the benefits after retirement,
for unlawful or debatable layoff, for body injuries
or fatality during worktime, for the salaries and
the late-night meals as a result of overtime work,
etc. These findings are consistent with the annual
reports of the Ministry of Labor [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Hence,
analyzing the judgment documents offer a viable
window to view the conflicts of our society.
      </p>
    </sec>
    <sec id="sec-14">
      <title>7. Similar Cases Recommendations</title>
    </sec>
    <sec id="sec-15">
      <title>7.1. Labeling Similarity</title>
      <p>To verify whether we recommend similar
cases correctly, we need to prepare for the
“correct” answers, i.e., the ground truth, for each
pair of judgments. That we selected 3835 cases
means we need to determine any two cases in this
selection are similar or not. That would be
3835 × 3835 decisions. We certainly cannot
afford this workload. Based on our previous work,
we had a collection of 3030 labeled pairs, and we
have 1453 “similar” pairs, 599 “barely similar”
pairs, and 977 “dissimilar” pairs.</p>
      <p>We chose to label the pairs by three labels
because we would like to allow the annotator the
freedom to express her negative judgments in a
soft way. Allowing the annotator to say “barely
similar”
is
an
alternative
method
to
say
“dissimilar.” Hence, in our analysis, when the
label was “dissimilar” for a recommendation, we
would
just</p>
      <p>consider that as an incorrect
recommendation.</p>
      <p>An assistant with a bachelor degree in law
conducted the labeling. We have hired a second
assistant with expertise in law, but have not
completed
the
analysis
of
inter-annotator
agreement yet. During the labeling period of the
first assistant, we gave the same the pair of cases
to her, and we found that she might assign the
same pair into</p>
      <p>different categories, but she
remained consistent most of the time.
7.2.</p>
    </sec>
    <sec id="sec-16">
      <title>Parameters for Clustering</title>
      <p>We
mentioned
several
parameters
that
influence the clustering procedure in the previous
sections. We use SP to denote whether or not we
split the original dispute statement into separate
statements (cf. the end of Section 4). We denote
whether we replace some named entities with
more general words by B (cf. middle of Section 4).
We denote the longest n-gram that we used when
we called TFIDFvectorizer by n (cf. Section 6.1).
We denote the number of clusters we set when we
clustered the disputes by noc. To simplify the
procedure for the experiments, we selected a
threshold,  . If  (  ,   ) ≥  , then our programs
would recommend that  
and</p>
      <p>were similar.</p>
      <p>are a pair that was previously
If</p>
      <p>and  
labeled, we could verify this recommendation. If
they are not previously labeled, then we will
ignore this pair in the evaluation process. In
Section 6.1, we mentioned that one might need to
do SVD to reduce computational costs.</p>
      <p>The settings of these parameters need some
explanations. SP and B are both either TRUE or
FALSE. We set n to 3, 4, and 5, as we mentioned
that most Chinese words contain four characters.
When SP is FALSE, we had 12523 dispute
statements. If we set noc to 200, 600, 800, and
1000, then these clusters will have an average of
61, 21, 16, and 13 disputes. When SP is TRUE,
we
may</p>
      <p>further split the
statements, and
we
obtained
original
18770
1000, then these clusters will have an average of
94, 31, 23, and 19 disputes. By setting noc to four
different values, we may observe its influences.</p>
      <sec id="sec-16-1">
        <title>Table</title>
        <p>experiments.</p>
        <p>B
T
T
T
T
F
F
F
F
F
F
F
F
T
F
F</p>
        <p>B
2
n
4
3
3
3
3
3
5
3
5
3
4
5
3
3
5
n
3
3:
noc
200
600
800
1000
200
600
600
800
800
1000
1000
1000
800
600
800</p>
        <p>SP 
F
F
F
F
F
F
F
F
F
F
F
F
T
T
T
3
2
2
2
3
2
2
2
2
2
2
2
3
3
3</p>
        <p>S
67.1%
68.8%
69.3%
71.7%
71.5%
71.5%
69.9%
69.6%
69.4%
70.2%
73.0%
72.5%
69.2%
68.0%
68.2%</p>
        <p>BS
18.0%
15.8%
16.3%
15.7%
17.2%
17.0%
16.8%
16.5%
17.8%
16.1%
17.5%
16.3%
15.1%
17.1%
19.5%</p>
        <p>NS
15.0%
15.4%
14.4%
12.6%
11.3%
11.5%
13.3%
13.9%
12.8%
13.7%
9.5%
11.1%
15.7%
14.9%
12.3%</p>
        <p>Depending on whether SP is FALSE or TRUE,
we set  to 2, 3, 4, or 5. When SP is FALSE, the
selected cases have 12523/3835=3.27 disputes in
their dispute lists, on average. Therefore, when SP
is FALSE, we set  to 2 and 3. When SP is TRUE,
the selected cases will have 18770/3835=4.89
disputes on average. Hence, when SP is TRUE,
we set  to 3, 4, or 5.</p>
        <p>We did not activate the SVD step because our
computers could handle the computations when
we set n to 5.</p>
        <p>In conclusion, we conducted experiments for
120 different combinations of these parameters.
This is from 2(for B)×3(for n)×4(for noc)×2(for
 )= 48, when SP is FALSE, and from 2(for
B)×3(for n)×4(for noc)×3(for  )=72, when SP is
TRUE. We summarize these calculations in Table
2.</p>
        <p>These
recommenders
would
recommend
different number of pairs of similar cases from the
3835 cases. Some recommended hundreds, but
others very few. Most important of all, the 3030
labeled pairs cannot cover all of the 3835 × 3835
pairs. Hence, we report only the experiments in
which there were at least 250 recommended and
labeled pairs.</p>
        <p>Table 3 lists data about the experiments that
had relatively better performances. In this table,
“S”, “BS”, and “NS” represent “similar”, “barely
similar”, and “not similar”, respectively. “T” and
“F” are for “TRUE” and “FALSE”, respectively.
Assume that a recommender recommended 
pairs and that there were  ,  , and  pairs of “S”,
“BS” and “NS”. Normally, we 
will be larger
than  +  +  , as we explained in the previous
paragraph. Let</p>
        <p>=  +  +  , we report  ,  ,

and  for “S”, “BS”, and “NS” in Table 3. The
average of the “S” column is just about 70.0%.
Note that the summation of a row in Table 3 may
become 100.1% due to accumulated rounding


errors.
7.3.</p>
      </sec>
    </sec>
    <sec id="sec-17">
      <title>Empirical Observations</title>
      <p>A recommendation for a pair of cases was
considered correct only if that pair was labeled as
“similar” by the annotator.</p>
      <p>When we chose a large  , the number of
recommended pairs would reduce because of the
high standard. If the number of recommended
pairs was less than 250, we would not consider the
results reliable in the current work, even though
results of these experiments would have a larger
proportion of “similar”. When the outcomes of the
experiments were reliable, increasing 
lead to better experimental results, which was
would
expected.</p>
      <p>It was possible that the recommended pairs in
an experiment were not labeled before. If the
number of labeled pairs was low, results of these
experiments were ignored because they were not
statistically reliable as well.</p>
      <p>On average, when we set SP to TRUE and
further split the dispute statements, the average
proportion of correct recommendations reduced
than when we set SP to FALSE.</p>
      <p>We had expected that the blurring step might
help us achieve better recommendations. That was
based on the intuition of using exact values of the
named entities
may</p>
      <p>make it harder for the
recommenders to learn general concepts about
similarity.</p>
      <p>However, the experimental results
indicated that whether we did the blurring step or
not did not affect the average results significantly,
all else being equal.</p>
      <p>Setting noc to 200 led to inferior results than
setting noc to 600, 800, and 1000. We did not
observe clear differences among setting noc to
600, 800, 1000. Using 200 clusters might not be
sufficient to differentiate the underlying nature of
the disputes of the selected cases, so may have
confused the recommender. Choosing a larger noc
3 ChatGPT: https://openai.com/blog/chatgpt, last visited May 5,
2023.
may help us put more similar disputes in separate
clusters, but we need to examine this manually.
This may be worthwhile to do in the near future.</p>
      <p>We
did
not
observe
clear
relationships
between the values of n and the performance of
the recommenders. The dimensionality of the
TFIDF vectors would increase exponentially with
n, so we might just set n to 3 in exploratory tests.</p>
    </sec>
    <sec id="sec-18">
      <title>8. Discussions</title>
      <p>We have conducted this preliminary research
only with relatively</p>
      <p>
        more traditional machine
approaches. We will extend our reach to deep
learning and ChatGPT. 3 BERT [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and legal
should be clear that one should try to ask the
ChatGPT to generate the summaries for the
clusters of disputes, and verify their usability.
      </p>
      <p>
        To enlarge and make our database public like
CAIL [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], the quality and the quantity of the
labeled pairs need additional work. We need more
domain experts to help the annotation task. The
analysis of inter-annotator agreement is an urgent
mission. Since we do not expect that we can, nor
do we think that we should even imagine that we
should try to label all of the 3835 × 3835 pairs,
built
recommenders
to
generate
we
recommendations, asked the annotators to label,
and used the labeled data to train our models.
Effects of such an incremental procedure relies on
the powerfulness of our recommenders. If the
recommenders are good enough, we may produce
better quality of labeled data at relatively low
costs.
      </p>
    </sec>
    <sec id="sec-19">
      <title>Acknowledgements</title>
      <p>This research was supported in part by the
project
110-2221-E-004-008-MY3
of
the
National Science and Technology Council of
Taiwan. The authors are obliged to the reviewers
who provided an abundant amount of information
to study and improve our work. We will do more
homework, though the revised version could not
reflect our future progress. Yi-Fan Liu selected
the judgment documents from TWJY and handled
the preprocessing of the documents. Chao-Lin Liu
conducted the preliminary analysis and completed
this manuscript.</p>
    </sec>
    <sec id="sec-20">
      <title>Appendix A</title>
      <p>We show two dispute lists in Chinese in this
appendix.</p>
      <sec id="sec-20-1">
        <title>Example 1</title>
        <p>The source is CHDV,92,勞訴,32,20040102,1.json.
1. 系爭夜點費應否列入平均工資核發退休
金？
2. 原告己○○、丙○○、乙○○、戊○○、辛○○、
庚○○於具領退休金時，所簽立之收據之
效力為何？</p>
      </sec>
      <sec id="sec-20-2">
        <title>Example 2</title>
        <p>The source is CHDV,98,勞訴,37,20100409,1.json.
1. (一)長森醫院於 97 年 7 月 31 日是否有歇
業之事實？
2. (二)兩造間是否因歇業而終止勞動契約？</p>
        <p>After the blurring step (cf. Section 4), the
anonymized person names in the second dispute
in Example 1 were changed to “someone” in
Chinese, which is listed below.</p>
        <p>原告某人、某人、某人、某人、某人、某人於
具領退休金時，所簽立之收據之效力為何？
The place name and the time expression in the
first dispute in Example 2 were changed to
“somewhere” and “sometime” in Chinese as well.</p>
        <p>(一)某地於某時是否有歇業之事實？</p>
      </sec>
    </sec>
    <sec id="sec-21">
      <title>Appendix B</title>
      <p>被告終止勞動契約有無理由？
原告請求被告給付資遣費是否有理由？
被告是否尚積欠原告特休假未休工資及
工傷假期間工資？</p>
      <p>
        We adopted the concept of FastText [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] for
creating Chinese tokens in our vectorization
process, so the words were not realistic words, but
the strings remained understandable for Chinese
readers.
      </p>
      <p>We showed the screenshot for inspecting a
cluster of 49 disputes partially in Figure A.1. The
“TFIDF summary” and the “frequent summary”
were explained in Section 6 In this screenshot, we
show only the first five disputes in this cluster.</p>
      <p>Given the summaries, we hope that the readers
can find that the “ 休 假 工 資 ” (compensation
salaries for working during holidays) was a
subject in this cluster.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Ethem</given-names>
            <surname>Alpaydin</surname>
          </string-name>
          ,
          <article-title>Introduction to Machine Learning, fourth edition</article-title>
          , The MIT Press,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Piotr</given-names>
            <surname>Bojanowski</surname>
          </string-name>
          , Edouard Grave, Armand Joulin, and Tomas Mikolov,
          <article-title>Enriching word vectors with subword information, Transactions of the Association for Computational Linguistics</article-title>
          , vol.
          <volume>5</volume>
          ,
          <fpage>135</fpage>
          -
          <lpage>146</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Ilias</given-names>
            <surname>Chalkidis</surname>
          </string-name>
          , Manos Fergadiotis, Prodromos Malakasiotis, Nikolaos Aletras, and
          <article-title>Ion Androutsopoulos, LEGAL-BERT: The muppets straight out of law school, Findings of the Association for Computational Linguistics: EMNLP</article-title>
          <year>2020</year>
          ,
          <volume>2898</volume>
          -
          <fpage>2904</fpage>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <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>
          , and
          <article-title>Kristina Toutanova, BERT: Pretraining of deep bidirectional transformers for language understanding</article-title>
          ,
          <source>Proceedings of NAACL-HLT</source>
          <year>2019</year>
          ,
          <volume>4171</volume>
          -
          <fpage>4186</fpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Zhanxing</given-names>
            <surname>Hao</surname>
          </string-name>
          , Xiao Wei, and
          <string-name>
            <given-names>Hong</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <article-title>A comparative method of legal documents based on LDA</article-title>
          ,
          <source>Proceedings of the 2018 International Conference on Applications and Techniques in Cyber Security and Intelligence</source>
          ,
          <fpage>271</fpage>
          -
          <lpage>280</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Peter</given-names>
            <surname>Henderson</surname>
          </string-name>
          , Mark S. Krass, Lucia Zheng, Neel Guha,
          <string-name>
            <given-names>Christopher D.</given-names>
            <surname>Manning</surname>
          </string-name>
          , Dan Jurafsky, and Daniel E. Ho,
          <article-title>Pile of law: learning responsible data filtering from the law and a 256GB opensource legal dataset</article-title>
          ,
          <source>Advances in Neural Information Processing Systems</source>
          <year>2022</year>
          ,
          <fpage>29217</fpage>
          ‒
          <lpage>29234</lpage>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Zhilong</given-names>
            <surname>Hong</surname>
          </string-name>
          , Qifei Zhou, Rong Zhang,
          <string-name>
            <given-names>Weiping</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and Tong</given-names>
            <surname>Mo</surname>
          </string-name>
          ,
          <article-title>Legal feature enhanced semantic matching network for similar case matching</article-title>
          ,
          <source>Proceedings of the 2020 International Joint Conference on Neural Networks</source>
          ,
          <fpage>1</fpage>
          ‒
          <lpage>8</lpage>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Chao-Lin</surname>
            <given-names>Liu</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yi-Fan</surname>
            <given-names>Liu</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wei-Zhi Liu</surname>
          </string-name>
          , and
          <string-name>
            <surname>Hong-Ren</surname>
            <given-names>Lin</given-names>
          </string-name>
          ,
          <article-title>Discovering civil disputes hidden in the court judgment documents for applications in social studies and legal informatics</article-title>
          ,
          <source>Proceedings of the 2022 International Conference on Digital Humanities</source>
          ,
          <fpage>298</fpage>
          ‒
          <lpage>300</lpage>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Yinglong</given-names>
            <surname>Ma</surname>
          </string-name>
          , Peng Zhang, and Jiangang Ma,
          <article-title>An efficient approach to learning Chinese judgment document similarity based on knowledge summarization</article-title>
          ,
          <year>2018</year>
          . arXiv:
          <year>1808</year>
          .01843
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Arpan</surname>
            <given-names>Mandal</given-names>
          </string-name>
          , Kripabandhu Ghosh, Saptarshi Ghosh, and Sekhar Mandal,
          <article-title>Unsupervised approaches for measuring textual similarity between legal court case reports</article-title>
          ,
          <source>Artificial Intelligence and Law</source>
          ,
          <volume>29</volume>
          ,
          <fpage>417</fpage>
          -
          <lpage>451</lpage>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>MOL</surname>
          </string-name>
          , Ministry of Labor of Taiwan,
          <source>Annual Statistics about the Labor in Taiwan</source>
          ,
          <year>2021</year>
          . &lt; https://www.mol.gov.tw/1607/2458/2464/24 68/statisticalReportList&gt;
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Shounak</surname>
            <given-names>Paul</given-names>
          </string-name>
          , Arpan Mandal, Pawan Goyal, Saptarshi Ghosh,
          <article-title>Pre-trained language models for the legal domain: a case study on Indian law</article-title>
          ,
          <year>2022</year>
          . arXiv:
          <volume>2209</volume>
          .
          <fpage>0604</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>Daniel</given-names>
            <surname>Ramage</surname>
          </string-name>
          , Evan Rosen, Jason Chuang,
          <string-name>
            <given-names>Christopher D.</given-names>
            <surname>Manning</surname>
          </string-name>
          , and
          <article-title>Daniel A. McFarland, Topic modeling for the social sciences</article-title>
          ,
          <source>Proceedings of the 2009 NIPS Workshop on Applications for Topic Models: Text and Beyond</source>
          <volume>5</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>4</lpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Shahmin</surname>
            <given-names>Sharafat</given-names>
          </string-name>
          , Zara Nasar, and Syed Waqar Jaffry.
          <article-title>Legal data mining from civil judgments</article-title>
          ,
          <source>Proceedings of 2018 International Conference on Intelligent Technologies and Applications</source>
          ,
          <volume>426</volume>
          -
          <fpage>436</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Chaojun</surname>
            <given-names>Xiao</given-names>
          </string-name>
          , Haoxi Zhong, Zhipeng Guo, Cunchao Tu, Zhiyuan Liu, Maosong Sun, Tianyang Zhang, Xianpei Han, Zhen Hu,
          <string-name>
            <given-names>Heng</given-names>
            <surname>Wang</surname>
          </string-name>
          , and Jianfeng Xu,
          <fpage>CAIL2019</fpage>
          - SCM:
          <article-title>A dataset of similar case matching in legal domain</article-title>
          ,
          <year>2019</year>
          . arXiv:
          <year>1911</year>
          .
          <article-title>08962 Here is a dispute list that contains a dispute that can be split into two separate disputes</article-title>
          .
          <source>The source is CHDV</source>
          ,
          <volume>98</volume>
          ,勞訴,
          <volume>3</volume>
          ,
          <issue>20091224</issue>
          ,1.json.
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          1. 被告終止勞動契約有無理由？ 2. 原告請求被告給付資遣費是否有理由？被 告是否尚積欠原告特休假未休工資及工傷 假期間工資？
          <article-title>If we conduct sentence splitting, as we explained at the end of Section 4, we will split the second dispute into two separate disputes</article-title>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>