<!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>Esfinge at CLEF 2008: Experimenting with answer retrieval patterns. Can they help?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Luís Costa</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Linguateca</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>SINTEF ICT</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>NORWAY</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>Esfinge is a general domain Portuguese question answering system which has been participating at QA@CLEF since 2004. It uses the information available in the “official” document collections used in QA@CLEF (newspaper text and Wikipedia), but additionally it also uses information from the Web as an additional resource when searching for answers. Where it regards the use of external tools, Esfinge uses a syntactic analyzer, a morphological analyzer and a named entity recognizer. This year an alternative approach to retrieve answers was tested: whereas in previous years, search patterns were used to retrieve relevant documents, this year a new type of search patterns was also used to extract the answers themselves. Besides that we took advantage of the main novelty introduced this year by QA@CLEF organization which was that the systems could return up to three answers for each question, instead of the single answer allowed in previous editions. This enabled the investigation about how good were the second and third best answers returned by Esfinge (when the first answer is not correct). The experiments revealed that the answer retrieval patterns created for this participation improve the results, but only for definition questions. Regarding the study of the three answers returned by Esfinge, the conclusion was that when Esfinge answers correctly a question, it does so usually with its first answer.</p>
      </abstract>
      <kwd-group>
        <kwd>Question answering</kwd>
        <kwd>named-entity recognition</kwd>
        <kwd>anaphoric reference</kwd>
        <kwd>Portuguese</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>The proposed task in this year at QA@CLEF was quite similar to the previous year. The main novelty was the
systems could return up to three answers for each question. Besides taking advantage of that possibility, our
participation focused in using an alternative approach to retrieve answers. In previous years, search patterns were
used to retrieve relevant documents to particular questions. This year we also used search patterns to extract the
answers themselves.</p>
      <p>The following sections describe in detail the system architecture used this year, how the answer retrieval
patterns were created and the results obtained in the official runs. There is a final section where the results are
discussed and where directions for future work are indicated.
Esfinge has been participating at CLEF since 2004. These participations are described in detail in [2, 3, 4, 5].
Figure 1 gives an overview of the system used this year:
The Anaphor Resolution module is the first module in Esfinge. It adds to the original questions, a list of
alternative questions where the anaphors are tentatively resolved. This module uses the analysis of the
PALAVRAS parser [1] to identify the anaphoric element in a question and a list of candidates to replace it in the
context of the other questions in the same topic.</p>
      <p>For each of the alternative questions and until the requested number of answers is found:
The Question Reformulation Module transforms the question into patterns of text where it is plausible to find
answers. This is done using two different approaches: a purely string matching technique and an alternative
approach which uses the analysis of PALAVRAS.</p>
      <p>Esfinge starts with the string matching technique. This technique uses patterns which have an associated score
giving an indication about how likely the pattern will help to retrieve relevant text passages.</p>
      <p>For example the question Quem foi Baden Powell de Aquino? matches with the patterns (simplified here for
illustration purposes):
Quem ([^\s?]*) ([^?]*)\??/"$2 $1"/10
Quem ([^?]*)\??/$1/1
Which in turn generate the following (Text pattern/Score) pairs:
"Baden Powell de Aquino foi"/10
foi Baden Powell de Aquino/1</p>
      <sec id="sec-1-1">
        <title>2.1. Searching and supporting answers</title>
        <p>Text patterns are then searched in the document collections (newspapers and Portuguese Wikipedia) using the
Search Document Collections module in order to find text passages that are relevant to the question. These
patterns are also searched in the Web using Yahoo’s search API.</p>
        <p>Then, all the relevant texts retrieved are analyzed in order to obtain candidate answers. Three techniques are
used for that purpose: extraction of answers using the answer retrieval patterns created for this year’s
participation, the named entity recognizer (NER) system SIEMÊS [6] and an n-grams computing module. Figure
2 illustrates how these techniques are used: namely each of them is used in sequence until Esfinge finds the
required number of answers.
Esfinge begins by extracting answers using answer retrieval patterns. These patterns associate questions with
their respective answers. They are different from the patterns used to retrieve relevant documents because they
include the position where the answers should appear.</p>
        <p>The following pattern is a simplified example of the patterns used by Esfinge. The patterns that are actually
used are a bit more general in the sense that they can for example cater for some alternative verb tenses (é, são,
eram) and alternative articles (a, o, as, os, um, uma):</p>
        <p>O que é a __X__? Æ</p>
        <p>__X__ (__ANSWER__)
This means that the answer to a question like O que é a __X__? can be retrieved inside parenthesis following the
string __X__.</p>
        <p>First, Esfinge checks which patterns match with the question (left hand side of the rule). The pattern in the
right hand side of the rule is then checked against the relevant documents to the question with the purpose of
finding candidate answers.</p>
        <p>The candidate answers are then ranked according to their frequency, length and the score of the passage from
where they were retrieved using the formula:</p>
        <p>Candidate answer score = ∑ (F * S * L), through the passages retrieved in the previous modules where:
F = Candidate answer frequency
S = Score of the passage</p>
        <p>L = Candidate answer length1
At this stage Esfinge has a list of candidate answers {A1, A2 … An}. These candidate answers are then tested
using the following filters:
• A filter that excludes answers contained in the questions. For example, the answer partido (party) is not a
good answer to the question A que partido pertence Zapatero? (To which party does Zapatero belong?).
• A filter that excludes answers contained in a list of undesired answers (very frequent words that usually can
not answer questions). This list includes words like parte (part), antigo (old), pessoas (people), mais (more) and
was created based on experiments performed with the system. At present, it contains 96 entries.
1 This parameter is only used for the answers obtained through the n-grams module. For the other answers this is
set to 1.
An answer that passes all the filters proceeds to the next module which checks whether there are documents in
the collections which support the answer.</p>
        <p>If Esfinge does not find the requested number of answers using the answer retrieval patterns, it tries to get
more answers using the named entity recognizer (NER) system SIEMÊS [6]. This system is used for the
questions which imply specific types of answers like Place, People, Quantity, Date, Height, Duration, Area,
Organization or Distance. Esfinge uses pattern matching to check whether it is possible to infer the type of
answer for a given question. For example, questions starting with Onde (Where) imply an answer of type Place,
questions starting with Quando (When) imply an answer of type Date, questions starting with Quantos (How
Many) imply an answer of type Quantity. For these questions, SIEMÊS tags the relevant text passages in order to
count the number of occurrences of named entities belonging to the expected categories. The identified named
entities are then ranked, filtrated and checked for the existence of documents which can support them in a similar
manner as described previously for the answers obtained using answer retrieval patterns.</p>
        <p>In case the previous efforts still do not yield the necessary number of answers, Esfinge uses its last answer
retrieval technique which consists in using an n-grams module. The n-grams computed through this module are
also ranked, filtrated and checked for the existence of documents which can support them in a similar manner as
described previously for the other two techniques. The answers obtained through n-gram harvesting, however,
are submitted to an additional filter that uses the morphological analyzer jspell [7] to check the PoS of the words
contained in the answer. Jspell returns a list of tags for each of the words. Esfinge rejects all answers in which
the first and last word are not tagged as one of the following categories: adjectives (adj), common nouns (nc),
numbers (card) and proper nouns (np).</p>
      </sec>
      <sec id="sec-1-2">
        <title>2.2. Alternative techniques used to find relevant texts</title>
        <p>If at this point of execution, Esfinge did not retrieve the required number of answers, the next step will be to
select a new set of relevant texts (this time patterns based on the analysis of the question by PALAVRAS [1]).
These patterns are created using the main verb of the question, its arguments and adjuncts and entities from
previous questions belonging to the same topic. From this stage, Esfinge repeats the steps described in
subsection 2.1.</p>
        <p>In case the last step did not yield the required number of answers either, a last attempt is tried which consists
in selecting relevant texts using again the patterns based on the analysis of the question by PALAVRAS, but
excluding the verbs included in these patterns.</p>
        <p>Figure 3 gives an overview about the three techniques used by Esfinge to select relevant texts.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>3 Creating the list of answer retrieval patterns</title>
      <p>
        The hypothesis we wanted to test this year was whether it would be possible to extract useful answer retrieval
patterns from the solutions available from the previous edition of CLEF. Unfortunately, only the so
        <xref ref-type="bibr" rid="ref3 ref4">lutions for
2007</xref>
        questions were available (answers and text passages where they occur), since the requirement to support
answers with text snippets was only introduced on that year.
      </p>
      <p>The following is an example of the solution for the question Quem é o Lampadinha? (Who is Lampadinha?) :
&lt;pergunta ano="2007" id_org="X" new_id_org="070101" categoria="D" tipo="PERSON" restrição="NO"
ling_orig="PT" tarefa_pt="0101" tópico="082"&gt;
&lt;texto&gt;Quem é o Lampadinha?&lt;/texto&gt;
&lt;resposta n="1" docid="Professor Pardal 6afa"&gt;
um pequeno andróide com uma lâmpada no lugar da cabeça&lt;/resposta&gt;
&lt;extracto n="1" resposta_n="1"&gt;"Pardal é ajudado frequentemente por Lampadinha (criado por Barks em
1953), um pequeno andróide com uma lâmpada no lugar da cabeça, que é considerado sua maior invenção
(ao lado do ""chapéu pensador"", um dispositivo em forma de telhado com chaminé habitado por corvos, que o
ajuda a ter idéias)."&lt;/extracto&gt;
&lt;/pergunta&gt;
From this solution one can derive the following pattern: Quem é o __X__ ? Æ
__X__ *, __ANSWER__,
This pattern means that the answer for a question of the form Quem é o X ? can be retrieved following a comma
which appears after an instance of X. The asterisk (* ) stands for 0 or more characters after the sub-string __X__
and immediately before a comma.</p>
      <p>For the participation at CLEF, 24 answer retrieval patterns were derived. The process used to obtain these
patterns was semi-automatic: they were derived automatically from the solution file, but then adjusted manually,
not only in order to correct or complete them, but also to generalize them.</p>
    </sec>
    <sec id="sec-3">
      <title>4 Results</title>
      <p>Since the main goal of this participation was to evaluate the impact of the answer retrieval patterns described in
the previous section, two official runs were submitted: esfi081PTPT which uses these patterns and esfi082PTPT
which does not use them.</p>
      <p>Table 1 and Figure 4 show the results of the official runs, considering all the questions (Total), only for
factoid (F) or definition (D) questions. Table 1 includes results where only the first answer is evaluated (labeled
first answer in the table and esfg08Nptpt in the figure), where the first and second answers are evaluated (first 2
Answers in the table and esfg08Nptpt2 in the figure) and where all the three answers returned are evaluated (first
3 Answers in the table and esfg08Nptpt3 in the figure). As an illustration, take a question for which only the third
answer is correct: this question is only accounted in the columns labeled first 3 answers.</p>
      <sec id="sec-3-1">
        <title>Runs esfi081ptpt esfi082ptpt F</title>
        <p>39
39</p>
      </sec>
      <sec id="sec-3-2">
        <title>Right Answers</title>
        <p>(first answer)</p>
      </sec>
      <sec id="sec-3-3">
        <title>D Total</title>
        <p>10 49
2 41</p>
      </sec>
      <sec id="sec-3-4">
        <title>Right Answers Right Answers</title>
        <p>(first 2 Answers) (first 3 Answers)</p>
      </sec>
      <sec id="sec-3-5">
        <title>F D Total F D Total</title>
        <p>44 14 58 46 16 62
43 3 46 46 6 52
Table 1: Results of the official runs</p>
      </sec>
      <sec id="sec-3-6">
        <title>Inexact</title>
      </sec>
      <sec id="sec-3-7">
        <title>Answers</title>
      </sec>
      <sec id="sec-3-8">
        <title>Unsupported Answers</title>
      </sec>
      <sec id="sec-3-9">
        <title>Right</title>
      </sec>
      <sec id="sec-3-10">
        <title>Answers</title>
        <p>10
35
4
49
F</p>
        <p>D</p>
        <p>Total
There were no further developments of the anaphor resolution module of Esfinge for this participation, but since
a considerable amount of this year’s questions (51 questions) require the processing of anaphors, a study was
performed to evaluate how well Esfinge dealt with the anaphors in this year’s questions. Table 2 summarizes the
results of this analysis: more than half of the anaphors are well resolved (26 out of 51) and there were
additionally 6 useful resolutions. By useful anaphor resolutions, we mean questions which are not grammatically
correct or where it is not possible to say that the anaphor was completely resolved, but where the resolution can
nevertheless lead to the discovery of right answers given the techniques used in Esfinge. If one does not
consider the questions which require anaphor resolution, the precision increases slightly: 28% against 24.5%
when considering all the questions.</p>
      </sec>
      <sec id="sec-3-11">
        <title>Type of Question</title>
        <p>Right Definition Answers
Right Factoid Answers
Right NIL Answers
Right Answers</p>
      </sec>
      <sec id="sec-3-12">
        <title>Answer</title>
        <p>supported in
newspaper text
4
14</p>
      </sec>
      <sec id="sec-3-13">
        <title>Answer</title>
        <p>supported in</p>
      </sec>
      <sec id="sec-3-14">
        <title>Wikipedia</title>
        <p>6
21
An additional study was performed in order to find how Esfinge supports its right answers (newspaper text or
Wikipedia) in the best run. The results, summarized in Table 3, reveal that Esfinge finds support in Wikipedia
more often than in newspaper texts both for factoid and definition questions.
We consider our participation at QA@CLEF this year fruitful and rewarding. In our opinion it was wise that the
organization proposed a similar task as last year’s since a good number of challenges remain to be achieved.</p>
        <p>Nevertheless, the main novelty in this years’s task which consisted in allowing the return of up to three
answers for each question, allowed us to investigate how good the second and third best answers returned by
Esfinge are. The conclusion regarding this matter is that when Esfinge answers correctly a question, it does so
usually with its first answer (for example the best run has 49 right answers, but even when considering all the
answers returned (3 for each question) the number of right answers amount only to 62 right answers.</p>
        <p>Nonetheless the most relevant result obtained in this year’s participation was that the answer retrieval patterns
clearly improved the results for definition questions (the first answer is correct for 34% of the definition
questions and there is a correct answer in one of the three returned answers for 55% of questions of this type),
but the same does not applied for the factoid questions.</p>
        <p>A more detailed error analysis is due in order to better understand the current limitations of Esfinge, but we
believe that there is still improvement potential where it regards the use of answer retrieval patterns. We would
like to deepen our research on how to create these patterns using a more automated approach (as stated we used a
semi-automatic process taking as input last year’s solutions). Equally there is also interest in investigating how
the results can improve when more answer retrieval patterns are used.</p>
      </sec>
      <sec id="sec-3-15">
        <title>Acknowledgments</title>
        <p>This work was done in the scope of the Linguateca project, jointly funded by the Portuguese Government and the
European Union (FEDER and FSE) under contract ref. POSC/339/1.3/C/NAC.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>Eckhard</given-names>
            <surname>Bick</surname>
          </string-name>
          .
          <article-title>The Parsing System "Palavras": Automatic Grammatical Analysis of Portuguese in a Constraint Grammar Framework</article-title>
          . Aarhus: Aarhus University Press (
          <year>2000</year>
          )
          <article-title>Luís Costa</article-title>
          .
          <article-title>First Evaluation of Esfinge - a Question Answering System for Portuguese</article-title>
          . In Carol Peters, Paul Clough, Julio Gonzalo, Gareth Jones,
          <string-name>
            <given-names>Michael</given-names>
            <surname>Kluck</surname>
          </string-name>
          &amp; Bernardo Magnini (eds.):
          <article-title>Multilingual Information Access for Text, Speech and Images: 5th Workshop of the Cross-Language Evaluation Forum (CLEF</article-title>
          <year>2004</year>
          )
          <article-title>(Bath</article-title>
          , UK,
          <fpage>15</fpage>
          -
          <issue>17</issue>
          <year>September 2004</year>
          ), Heidelberga, Alemanha: Springer. LNCS, pp.
          <fpage>522</fpage>
          -
          <lpage>533</lpage>
          ,
          <year>2005</year>
          . Revised Selected Papers.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>Luís</given-names>
            <surname>Costa</surname>
          </string-name>
          <article-title>: 20th Century Esfinge (Sphinx) solving the riddles at CLEF 2005</article-title>
          . In Carol Peters, Frederic C. Gey, Julio Gonzalo,
          <string-name>
            <given-names>Gareth J.F.</given-names>
            <surname>Jones</surname>
          </string-name>
          , Michael Kluck, Bernardo Magnini, Henning Müeller &amp; Maarten de Rijke (eds.):
          <article-title>6th Workshop of the Cross-Language Evaluation Forum (CLEF'</article-title>
          <year>2005</year>
          ) (Vienna, Austria,
          <fpage>21</fpage>
          -
          <issue>23</issue>
          <year>September 2005</year>
          ), Springer.
          <source>LNCS 4022</source>
          , pp.
          <fpage>467</fpage>
          -
          <lpage>476</lpage>
          ,
          <year>2006</year>
          . Revised Selected Papers.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>Luís</given-names>
            <surname>Costa</surname>
          </string-name>
          .
          <article-title>Question answering beyond CLEF document collections</article-title>
          . In Carol Peters, Paul Clough, Fredric C. Gey, Douglas W. Oard, Maximilian Stempfhuber, Bernardo Magnini, Maarten de Rijke &amp; Julio Gonzalo (eds.):
          <article-title>7th Workshop of the Cross-Language Evaluation Forum</article-title>
          ,
          <string-name>
            <surname>CLEF</surname>
          </string-name>
          <year>2006</year>
          . Alicante, Spain,
          <year>September 2006</year>
          . Berlin / Heidelberg: Springer, Lecture Notes in Computer Science,
          <year>2007</year>
          . Revised Selected Papers.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <given-names>Luís</given-names>
            <surname>Miguel</surname>
          </string-name>
          <string-name>
            <surname>Cabral</surname>
          </string-name>
          ,
          <article-title>Luís Fernando Costa and Diana Santos "What happened to Esfinge in 2007?"</article-title>
          . In Carol Peters, Valentin Jijkoun, Thomas Mandl, Henning Müller, Doug W. Oard, Anselmo Peñas, Vivien Petras &amp; Diana Santos (eds.),
          <source>Advances in Multilingual and Multimodal Information Retrieval: 8th Workshop of the Cross-Language Evaluation Forum</source>
          ,
          <string-name>
            <surname>CLEF</surname>
          </string-name>
          <year>2007</year>
          , Budapest, Hungary,
          <source>September 19-21</source>
          ,
          <year>2007</year>
          , Revised Selected Papers. Berlin: Springer, Lecture Notes in Computer Science,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>Luís</given-names>
            <surname>Sarmento. SIEMÊS - A Named Entity</surname>
          </string-name>
          <article-title>Recognizer for Portuguese Relying on Similarity Rules</article-title>
          . In Renata Vieira, Paulo Quaresma,
          <source>Maria da Graça Volpes Nunes</source>
          ,
          <string-name>
            <given-names>Nuno J.</given-names>
            <surname>Mamede</surname>
          </string-name>
          , Cláudia Oliveira &amp; Maria Carmelita Dias (eds.),
          <source>Computational Processing of the Portuguese Language: 7th International Workshop</source>
          ,
          <string-name>
            <surname>PROPOR</surname>
          </string-name>
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <surname>Itatiaia</surname>
          </string-name>
          , Brazil, May
          <year>2006</year>
          (PROPOR'
          <year>2006</year>
          ) LNAI
          <volume>3960</volume>
          ,
          <fpage>13</fpage>
          -
          <lpage>17</lpage>
          May
          <year>2006</year>
          , Berlin/Heidelberg: Springer Verlag, pp.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <article-title>Alberto Manuel Simões and José João Almeida. "Jspell.pm - um módulo de análise morfológica para uso em Processamento de Linguagem Natural"</article-title>
          .
          <source>In Anabela Gonçalves &amp; Clara Nunes Correia (eds.)</source>
          ,
          <article-title>Actas do XVII Encontro Nacional da Associação Portuguesa de Linguística (APL</article-title>
          <year>2001</year>
          )
          <article-title>(Lisboa</article-title>
          ,
          <fpage>2</fpage>
          -4 de Outubro de
          <year>2001</year>
          ), Lisboa: APL, pp.
          <fpage>485</fpage>
          -
          <lpage>495</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>