<!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>FIRE2019@AILA: Legal Retrieval Based on Information Retrieval Model</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jiaming Gao</string-name>
          <email>gaojiaming24@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hui Ning</string-name>
          <email>ninghui@hrbeu.edu.cn</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Huilin Sun</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ruifeng Liu</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhongyuan Han</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Leilei Kong</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Haoliang Qi</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Harbin Engineering University Harbin</institution>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Heilongjiang Institute of Technology Harbin</institution>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>sunhuilin24</institution>
          ,
          <addr-line>liuruifeng812, Hanzhongyuan, Kongleilei1979</addr-line>
        </aff>
      </contrib-group>
      <fpage>2</fpage>
      <lpage>7</lpage>
      <abstract>
        <p>This paper describes our evaluation methods in the task 1 of AILA (Artificial Intelligence for Legal Assistance) tasks in FIRE 2019. The task 1 is to identify relevant prior cases for a given situation. We deem the task as an information retrieval task. We first extract the topic words from the given situation and use the topic words as a query to identify the relevant prior cases by using the information retrieval model. The best result gets the second place on the MAP.</p>
      </abstract>
      <kwd-group>
        <kwd>Artificial Intelligence for Legal Assistance</kwd>
        <kwd>Legal Retrieval</kwd>
        <kwd>Information Retrieval</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        During the judge's trial of the case, prior cases help a lawyer understand how the
Court has dealt with similar cases in the past and prepare the legal reasoning
accordingly. Therefore, it is important to help judges find similar prior cases for a given
situation. In this evaluation, the organizer provides 3000 cases of documents of cases
that were judged in the Supreme Court of India. The task is to identify the most
relevant cases related to the given situation [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. In this paper, we introduced the methods
in this task. Our method is divided into two steps. First, the topic words are extracted
from the given situation. And then, the topic words are deemed as a query to search
the relevant prior cases by using the retrieval model. We use experimental data
provided by the Fire2017 legal retrieval task, and select the number of keywords
according to the change of the MAP value.
      </p>
    </sec>
    <sec id="sec-2">
      <title>Model Framework</title>
      <p>The Framework is shown as following figure 1.
First, the topic extraction module uses TF-IDF and TextRank methods to extract the
topic words from a given situation. And then the top-k topic words, which are deemed
to be a query, are input to the retrieval model such as the VSM(Vector Space Model),
the BM25 model, and the LM(Language Model). The top-n cases in the retrieval
result are deemed the relevant prior cases.
3
3.1</p>
    </sec>
    <sec id="sec-3">
      <title>Topic Extraction Method</title>
      <p>
        TF-IDF-based topic extraction method
TF-IDF (term frequency-inverse document frequency) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] is an important indicator of
how important a word is in a document. The weight assigned by TF-IDF to the word t
in document d can be expressed as: 
− 
=   , ×   ，  , =
sents the frequency of the term in the document d,   = log10   +1
inverse document frequency. Where   indicates the number of all documents in
which the term t appears, plus 1 is to prevent the denominator from being zero, and N
      </p>
      <p>,
∑   ,
indicates the
repreis the number of all documents.
3.2</p>
      <p>TextRank-based topic extraction method</p>
      <p>
        TextRank [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] is a graph-based topic extraction algorithm that can extract topic
words from a single document. Formally, let 
= ( ,  ) is a directed graph consisting
of a series of vertices V and edges E.   represents the weight between two vertices
  and   . In(  ) represents a collection of points pointing to that point. Out(  )
indicates that vertex   points to a collection of points. Where d is the damping
coefficient, which is between 0 and 1, and is generally set to 0.85. The score of a vertex  
is defined as follows, according to the formula for calculating the score of each word.
      </p>
      <p>Identifying the Relevant Cases via Information Retrieval</p>
    </sec>
    <sec id="sec-4">
      <title>Model</title>
      <p>In our approach, we consider the extracted topic as a query and the prior cases as a
document collection. The task of this evaluation can be formulated as a retrieval
problem. We used three search models, as follows:
4.1</p>
      <p>
        Vector Space Model
The Vector Space Model [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] uses cosine similarity to calculate the similarity between
a query and a document. Suppose the vector corresponding to the query q is
represented by  ̅( ) = ( 11,  12, ⋯ ,  1 ), and the vector corresponding to the document
d is represented by  ̅( ) = ( 21,  22, ⋯ ,  2 ), each of the vectors The components
correspond to one term.
      </p>
      <p>( ,  ) = 
= ̅( )∙̅( )
|̅( )||̅( )| =

∑ =1  1 × 2
√∑ =1  12 ∑

 =1  22
(1)
(2)
(3)</p>
      <p>During the retrieval process, the similarity scores of the query and each document
are calculated and sorted according to the similarity score. The higher the ranking, the
more relevant the document is to the query.
4.2</p>
      <p>
        Probability Model
BM25 [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] is a method for establishing a probability model based on factors such as
word frequency and document length. For a query q is a collection containing n terms
t.   , represents the word frequency of the term t in the document d, N represents the
number of all documents,   represents the number of all documents in which the
term t appears,   represents the length of the document d, and  
represents the
whole The average document length of the document collection.  1 is a tuning
parameter with a positive value, and  is another tuning parameter. The value ranges from 0
to 1.  3 represents a tuning parameter with a positive value, which is used to scale and
control the frequency of the term in the query. n represents the number of terms in the
query. The relevant line scores of each query word and document are calculated in the
calculation process, and finally, the sum is obtained to obtain the correlation score
between the query and the document.
( ,  ) = ∑ ∈ log [
 ] ∙
      </p>
      <p>, ∙( 1+1)
  , + 1∙[(1− )+ ∙ 
  ]
∙
( 3+1)∙  ,
 3+  ,</p>
      <p>
        Language Model
We build language models θQ and θD for queries and documents. According to the
risk minimization model, the KL (Kullback-Leibler) distance metric is applied to the
correlation between the query language model θQ and the document language model
θD[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The scores for query q and document d become:

( ,  ) = KL( Q | D )   P(w | Q ) log
wV
      </p>
      <p>P(w | Q )
P(w | D )
(4)</p>
      <p>
        Where V is the entire vocabulary, w is the term in V, and is the language model of
the query and document, respectively. P(w|θQ) and P(w|θD) are the probabilities of w
in the query language model θQ and the document language model θD, respectively.
P(w|θQ) uses the maximum likelihood estimation, and P(w|θD) uses the Dirichlet
smoothing[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] document language model.
5
5.1
      </p>
    </sec>
    <sec id="sec-5">
      <title>Experiment</title>
      <p>
        Experiment Setting
In the process of extracting the topic words using TextRank, we use the TextRank
method in the open-source toolkit HanLP† to extract the topic words. The VSM
retrieval model was implemented using the Lucene [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] toolkit‡, and the BM25 retrieval
model and language model were implemented using the Lemur[
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] toolkit3§.
5.2
      </p>
      <p>Parameter Settings
We conducted six experiments according to topic extracting methods and retrieval
models. The value of TopK is between 40 and 120, and the experimental results are as
shown in Fig.2. And select the number of topic words according to MAP.
0.3
0.2
0.1
0
40</p>
      <p>50
TF-IDF+VSM
TextRank+LM
60
70 80
TextRank+VSM
TF-IDF+BM25
90
† https://github.com/hankcs/HanLP
‡ http://lucene.apache.org/
§http://www.lemurproject.org/</p>
      <p>It can be seen from the figure 2 that TF-IDF+VSM, TF-IDF+BM25,
TextRank+LM are relatively stable, so we submitted the search results of these three
models, labeled HGC_1, HGC_2, HGC_3, and the model parameter settings are as
following Table 1 :</p>
      <p>BPREF
0.1286
This paper describes the evaluation method we used in the FIRE2019 AILA. The
TFIDF and TextRank based topic extraction methods are used in the topic extraction
stage. And the VSM, BM25, and LM are used in the retrieval stage. Through the final
evaluation results, it can be seen that the TF-IDF-based topic extraction method
combined with the VSM model is superior to our other submission results.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgment</title>
      <p>This work is supported by the National Social Science Fund of China (No.
18BYY125).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>P.</given-names>
            <surname>Bhattacharya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Ghosh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ghosh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Pal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Mehta</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. Bhattacharya.</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Majumder</surname>
          </string-name>
          ,
          <article-title>Overview of the Fire 2019 AILA track: Artificial Intelligence for Legal Assistance</article-title>
          .
          <source>In Proc. of FIRE 2019 - Forum for Information Retrieval Evaluation</source>
          , Kolkata, India,
          <source>December 12-15</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Singhal</surname>
          </string-name>
          ,
          <string-name>
            <surname>Amit</surname>
          </string-name>
          , et al.
          <article-title>Document length normalization</article-title>
          .
          <source>Information Processing &amp; Management 32.5</source>
          (
          <year>1996</year>
          ):
          <fpage>619</fpage>
          -
          <lpage>633</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Mihalcea</surname>
            , Rada, and
            <given-names>Paul</given-names>
          </string-name>
          <string-name>
            <surname>Tarau</surname>
          </string-name>
          . Textrank:
          <article-title>Bringing order into text</article-title>
          .
          <source>Proceedings of the 2004 conference on empirical methods in natural language processing</source>
          .
          <year>2004</year>
          :
          <fpage>404</fpage>
          -
          <lpage>411</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Salton</surname>
            , Gerard,
            <given-names>Anita</given-names>
          </string-name>
          <string-name>
            <surname>Wong</surname>
          </string-name>
          , and
          <string-name>
            <surname>Chung-Shu Yang</surname>
          </string-name>
          .
          <article-title>A vector space model for automatic indexing</article-title>
          .
          <source>Communications of the ACM 18.11</source>
          (
          <year>1975</year>
          ):
          <fpage>613</fpage>
          -
          <lpage>620</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Robertson</surname>
            , Stephen, and
            <given-names>Hugo</given-names>
          </string-name>
          <string-name>
            <surname>Zaragoza</surname>
          </string-name>
          .
          <article-title>The probabilistic relevance framework: BM25 and beyond</article-title>
          .
          <source>Foundations and Trends® in Information Retrieval 3</source>
          .4 (
          <year>2009</year>
          ):
          <fpage>333</fpage>
          -
          <lpage>389</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Song</surname>
            , Fei, and
            <given-names>W. Bruce</given-names>
          </string-name>
          <string-name>
            <surname>Croft</surname>
          </string-name>
          .
          <article-title>A general language model for information retrieval</article-title>
          .
          <source>Proceedings of the eighth international conference on Information and knowledge management. ACM</source>
          ,
          <year>1999</year>
          :
          <fpage>316</fpage>
          -
          <lpage>321</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Zhai</given-names>
            <surname>Chengxiang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and John</given-names>
            <surname>Lafferty</surname>
          </string-name>
          .
          <article-title>A study of smoothing methods for language models applied to ad hoc information retrieval</article-title>
          .
          <source>ACM SIGIR Forum</source>
          . Vol.
          <volume>51</volume>
          . No.
          <article-title>2</article-title>
          . ACM,
          <year>2017</year>
          :
          <fpage>268</fpage>
          -
          <lpage>276</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>McCandless</surname>
            , Michael,
            <given-names>Erik</given-names>
          </string-name>
          <string-name>
            <surname>Hatcher</surname>
            , and
            <given-names>Otis</given-names>
          </string-name>
          <string-name>
            <surname>Gospodnetic</surname>
          </string-name>
          .
          <source>Lucene in action: covers Apache Lucene</source>
          <volume>3</volume>
          .0. Manning Publications Co.,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Ogilvie</surname>
            , Paul, and
            <given-names>Jamie</given-names>
          </string-name>
          <string-name>
            <surname>Callan</surname>
          </string-name>
          .
          <article-title>Experiments using the Lemur toolkit</article-title>
          .
          <source>TREC</source>
          . Vol.
          <volume>10</volume>
          .
          <year>2001</year>
          :
          <fpage>103</fpage>
          -
          <lpage>108</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>