<!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>The Use of Lexical Context in Question Answering for Spanish</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>M. Pérez-Coutiño</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>T. Solorio</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>M. Montes-y-Gómez</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A. López-López</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>L. Villaseñor-Pineda</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Instituto Nacional de Astrofísica, Óptica y Electrónica (INAOE) Luis Enrique Erro No. 1, Sta Ma Tonantzintla</institution>
          ,
          <addr-line>72840, Puebla, Pue</addr-line>
          ,
          <country country="MX">México</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper describes the prototype developed by the Language Technologies Laboratory at INAOE for Spanish monolingual QA evaluation task at CLEF 2004. Our approach is centered in the use of context at a lexical level in order to identify possible answers to factoid questions. Such method is supported by an alternative one based on pattern recognition in order to identify candidate answers to definition questions. The methods applied at different stages of the system and prototype architecture for question answering are described. The paper shows and discusses the results achieved with this approach.</p>
      </abstract>
      <kwd-group>
        <kwd>Question Answering for Spanish</kwd>
        <kwd>Lexical Context</kwd>
        <kwd>Natural Language Processing</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>System Overview</title>
      <p>The system adjusts to a typical QA system architecture [14]. Figure 1 shows the main blocks of the system. The
system could be divided into the following stages: question processing, which involves the extraction of named
entities and lexical context in the question, as well as question classification to define the semantic class of the
answer expected to respond to the question; indexing, where a preprocessing of the supporting document
collection is done, building the representation of each document that become the searching space to find
candidate answers to the question; searching, where a set of candidate answers is obtained from the index and
the Internet, (here candidate answers are classified by a machine learning algorithm, and provides information to
perform different weighting schemes); and finally answer selection where candidate answers are ranked and the
final answer recommendation of the system is produced. Next sections describe each of these stages.</p>
      <p>Question Processing</p>
      <p>Indexing
Question
Question’s</p>
      <p>Lexical
Context and NEs</p>
      <p>Question
Classification
Searching
Candidate
answers
Answer
Selection</p>
      <p>POS
NE classifier
Index
Answer</p>
      <p>Document
Collection</p>
      <p>Collection’s</p>
      <p>Lexical
Contexts and NEs
Indexing</p>
      <p>Searching
Internet</p>
      <p>
        Answer Selection
MACO [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] is a POS tagger and lemmatizer capable of recognizing and classifying named entities (NEs). The
possible categories for NEs are the following: person, organization, geographic place, date, quantity and
miscellaneous. In order to reduce the possible candidate answers provided by our system we perform a question
classification process. The purpose of this classification is to match each question with one of the six named
entities provided by MACO.
      </p>
      <p>We use a straightforward approach, where the attributes for the learning task are the prefixes of the words in
the question and additional information acquired by an Internet search engine.</p>
      <p>The procedure for gathering this information from Internet is first we use a set of heuristics in order to extract
from the question the first noun word or words w. We then employ a search engine, in this case Google,
submitting queries using the word w in combination with the five possible semantic classes. For instance, for the
question Who is the President of the French Republic? President is extracted as the noun in the question using
our heuristics, and run 5 queries in the search engine, one for each possible class. The queries take the following
forms:</p>
      <p>
        Iw(qi ) = Cri
Each document in the collection is modeled by the system as a factual text object whose content refers to several
named entities even when it is focused on a central topic. As mentioned, named entities could be one of these
objects: persons, organizations, locations, dates, quantities and miscellaneous. The model assumes that the
named entities are strongly related to their lexical context, especially to nouns (subjects) and verbs (actions).
Thus, a document can be seen as a set of entities and their contexts. For details about the document model we
refer the reader to [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. In order to obtain the representation of the documents, the system begins preprocessing
each document with MACO, where this process is performed off-line. Once the document collection has been
tagged, the system extracts the lexical contexts associated to named entities. The context considered for this
experiment consists of the four verbs or nouns, both at the left and right of its corresponding NE (table 1 shows a
sample). The final step in the indexing stage is the storage of the extracted contexts, populating a relational
database3 which preserves several relations between each named entity, its semantic class, associated contexts,
and the documents where they appeared. In other words, the index is an adaptation of the well knows inverted
file structure used in several information retrieval systems.
&lt;DOCNO&gt;EFE19941219-11009&lt;/DOCNO&gt;
… Los CFC son usados en los productos anticongelantes, de insuflación y como refrigerantes, que
tienen al cloro como un ingrediente común. "Los CFC son los responsables del agujero de la capa
de ozono",…
5
      </p>
    </sec>
    <sec id="sec-3">
      <title>Searching</title>
      <p>The search engine developed for the system and the searching process differ in several aspects from traditional
search engines. This process relies on two information sources: first the information gathered from question
processing, i.e., the expected semantic class of the answer to the question, and the named entities and lexical
context of the question; and second, the index of named entities, contexts and documents created during
indexing.</p>
      <sec id="sec-3-1">
        <title>5.1 Searching Algorithm</title>
        <p>With the document representation, all the name entities mentioned in a given document can be known
beforehand. Thus, the name entities from the question become key elements in order to define the document set
more likely to provide the answer. For instance, in the question “¿Dónde se entregan los Oscar?”, the named
entity “Oscar” narrows the set of documents to only those containing such name entity. At the same time,
another assumption is that the context in the neighborhood of the answer has to be similar to the lexical context
of the question. Once more, from the question of the example, the fragment “…reciben esta noche, en la
sexagésimasexta edición de los Oscar, el homenaje de Hollywood…” contains a lexical context next to the
answer which is similar to that of the question.
3 Due to performance constraints, the index has been distributed over a cluster of 5 CPUs.</p>
        <p>Following is the algorithm in detail:
1. Identify the set of relevant documents according to the named entities in the question.
2. Retrieve all contexts in each relevant document.
3. Compute the similarity between question context and those obtained in step 2.</p>
        <p>3.1. Preserve only those contexts whose associated named entity corresponds to the semantic class of the
question.
3.2. Compute a similarity function based on frequencies to perform further ranking and answer
selection. This function is based on the number of question’s named entities found in each pair
(NE,Context) retrieved and the number of similar terms in both contexts.
4. Rank the candidate named entities in decreasing order of similarity.</p>
        <p>5. Store similarity and named entity classification information (step 3.2) for next stage.
6</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Answer Selection</title>
      <p>Analyzing the output from the local index we find out that we had a lot of possible answers with the same values
for similarity and named entity classification information. Thus, we develop a method for selecting the final
possible answer based on answers retrieved from Internet and automated classification of answers using a
bagged ensemble of J48 [15].</p>
      <p>The final answer presented by our system was selected by calculating the intersection among words between
the local index candidate answers and the answers provided by the Internet search. We consider the candidate
answer with highest intersection value to be more likely to be the correct answer. However, in some cases all the
candidate answers have the same intersection values. In this case we selected from the candidates the first one
classified by the learning algorithm as belonging to the positive class. When no positive answer was found
among the candidates for a question, then we selected the first candidate answer with highest value from the
local index.</p>
      <p>The following sections briefly describe the Internet search and the answer classification processes.
6.1</p>
      <sec id="sec-4-1">
        <title>Internet Searching</title>
        <p>As mention earlier, at the final stage, the system uses information from the Internet in order to get more evidence
of the possible accuracy of each candidate answer. From the perspective of the overall system, Internet searching
occurs simultaneously to the local search. This subsection reviews the process involved in such task.</p>
        <p>The module used at this step was originally developed at our laboratory to research the effectiveness of a
statistical approach to web question answering in Spanish. Such approach lies in the concept of redundancy in
the web, i.e, the module applies a several transformations in order to convert the question into a typical query
and then this query along to some query reformulations are sent to a search engine with the hypothesis that the
answer would be contained –several times– in the snippets retrieved by the search engine4. The selection of
candidate answers from Internet is based on computing all the n-grams, from unigrams to pentagrams, as
possible answers to the given question. Then, using some statistical criteria the n-grams are ranked by decreasing
likelihood of being the correct answer. The top ten are used to validate the candidates gathered from the local
searching process.
6.2</p>
      </sec>
      <sec id="sec-4-2">
        <title>Answer Classification</title>
        <p>
          Discriminating among possible answers was posed as a learning problem. Our goal was to train a learning
algorithm capable of selecting from a set of possible candidates the answer that most likely satisfies the question.
We selected as features the values computed by the local indexing. We use five attributes: 1) the number of
times the possible answer was labeled as the entity class of the question; 2) the number of times the possible
entity appeared labeled as a different entity class; 3) number of words in common in the context of the possible
answer and the context of the question, excluding named entities; 4) the number of entities that matched the
entities in the question, and 5) the frequency of the possible answer along the whole collection of documents.
With these attributes, we then trained a bagged ensemble of classifiers using as base learning algorithm the rule
induction algorithm J48 [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ].
        </p>
        <p>
          In this work we build the ensemble using the bagging technique which consists of manipulating the training
set [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ].
        </p>
        <p>Given that we had available only one small set of questions, we evaluate the classification process in two
parts. We divided the set of questions into two subgroups of the same size and performed two runs. In each run,
we trained on one half and tested on the other.
4 The search engine used by this module is Google (http://www.google.com)</p>
      </sec>
      <sec id="sec-4-3">
        <title>6.3 Answering Definitions</title>
        <p>
          Due to the length and elements in a definition answer, our approach considers the treatment of these questions as
a special case. In order to reach accurate definition answers, we have implemented a set of heuristics able to find
patterns like those described in [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ]. Table 2 shows some samples of applying such heuristics.
        </p>
        <p>The heuristics are based in punctuation and some stopwords (articles, pronouns and prepositions) which
provide evidence for identification of pairs &lt;Answer&gt;&lt;Name&gt;. Thus could be easily gathered by regular
expressions.
We participate in the evaluation with two runs. The first one inao041eses was gathered applying all components
of the system, while our second run inao042eses didn’t make use of heuristics for definition answers. Table 3
shows our results.</p>
        <p>Results show that overall performance of the system with evaluation questions was over 60% lower than
training results. A preliminary analysis of the errors has let us note some obvious mistakes like the length and
elements considered as part of the context (which couldn’t be fixed before questions’ release due to time
constraints). However there are some other issues to take into account besides those errors, for instance, question
classification. Figure 2 shows the accuracy of the classifier, from a total of 200 questions, the classifier only can
assign an accurate semantic class to 157 questions, which represents a precision of 78.5%. Besides classifier
performance, searching and candidate answers selection were also very low, only 29.41% of questions right
classified as person were answered, 63.63 % of organizations, 39.10% of localities, 37.50% of dates, 28.57% of
quantities and 18.18% of miscellaneous were answered.</p>
        <p>We have begun a detailed analysis looking for inconsistencies in the overall approach, as well as
programming bugs. The initial step is to get an improved configuration of the POS tagger and NE classifier
(MACO) in order to label the corpus and rebuild our indexes (databases) with a non restricted version of
document model, i.e. without pre-established elements and length in the context. Thus repeat some experiments
with a refinement method for candidates and answer selection.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusions</title>
      <p>This work has presented a lexical-context approach for QA in Spanish. The strength of this work lies in the
model used for the source documents. The identification and annotation in advance of named entities and their
associated contexts serves as key information in order to select possible answers to a given factoid question. On
the other hand, the discrimination of candidate answers is a complex task that requires more research and
experimentation of different methods. In this work we have experimented with the merging of evidence coming
from three main sources: a ranked list of candidate answers gathered by a similarity measure, answer
classification by a bagged ensemble of classifiers, and a set of candidate answers gathered from the Internet.
Further work includes exploring the inclusion of more information as part of the context, the refinement of the
semantic classes for questions and named entities, and the improvement of answer selection methodology.
45
40
35
30
25
20
15
10
5
0
34
11
23 24
21
44
10
7
9
9
6</p>
      <p>8</p>
      <sec id="sec-5-1">
        <title>Classified</title>
      </sec>
      <sec id="sec-5-2">
        <title>Answ ered</title>
      </sec>
      <sec id="sec-5-3">
        <title>Person</title>
      </sec>
      <sec id="sec-5-4">
        <title>Organization</title>
      </sec>
      <sec id="sec-5-5">
        <title>Locality</title>
      </sec>
      <sec id="sec-5-6">
        <title>Date</title>
      </sec>
      <sec id="sec-5-7">
        <title>Quantity</title>
      </sec>
      <sec id="sec-5-8">
        <title>Misc</title>
        <p>Acknowledgements. This work was done under partial support of CONACYT (Project Grants U39957-Y and
43990), SNI-Mexico, and the Human Language Technologies Laboratory of INAOE. We also like to thanks to
the CLEF as well as EFE agency for the resources provided.
11. Solorio T., Pérez-Coutiño M., Montes-y-Gómez M., Villaseñor-Pineda L., and López-López A. 2004. A
language independent method for question classification. In COLING-04. 2004. Switzerland.
12. Vapnik, V. The Nature of Statistical Learning Theory, Springer, 1995.
13. Vicedo, J.L., Izquierdo R., Llopis F. and Muñoz R., Question Answering in Spanish. CLEF 2003 Workshop,</p>
        <p>Springer-Verlag.
14. Vicedo, J.L., Rodríguez, H., Peñas, A. and Massot, M. Los sistemas de Búsqueda de Respuestas desde una
perspectiva actual. Revista de la Sociedad Española para el Procesamiento del Lenguaje Natural, n.31, 2003.
15. Witten H. and Frank E. 1999. Data Mining, Practical Machine Learning Tools and Techniques with Java
Implementations. The Morgan Kaufmann Series in Data Management Systems. Morgan Kaufmann.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. Breiman L.
          <article-title>Bagging predictors</article-title>
          .
          <source>Machine Learning</source>
          ,
          <volume>24</volume>
          (
          <issue>2</issue>
          ):
          <fpage>123</fpage>
          -
          <lpage>140</lpage>
          ,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Burger</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          et al. Issues, Tasks and Program Structures to Roadmap Research in Question &amp;
          <string-name>
            <surname>Answering (Q&amp;A).</surname>
            <given-names>NIST</given-names>
          </string-name>
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Carreras</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Padró</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <article-title>A Flexible Distributed Architecture for Natural Language Analyzers</article-title>
          .
          <source>In Proceedings of the LREC'02</source>
          ,
          <string-name>
            <surname>Las Palmas de Gran Canaria</surname>
          </string-name>
          , Spain,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Cowie</surname>
            <given-names>J.</given-names>
          </string-name>
          , et al.,
          <source>Automatic Question Answering, Proceedings of the International Conference on Multimedia Information Retrieval (RIAO</source>
          <year>2000</year>
          ).,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Hirshman</surname>
            <given-names>L.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Gaizauskas R. Natural</surname>
          </string-name>
          <article-title>Language Question Answering: The View from Here</article-title>
          ,
          <source>Natural Language Engineering 7</source>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Magnini</surname>
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Romagnoli</surname>
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vallin</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Herrera</surname>
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Peñas</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Peinado</surname>
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Verdejo</surname>
            <given-names>F.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Rijke</surname>
            <given-names>M.</given-names>
          </string-name>
          <article-title>The Multiple Language Question Answering Track at CLEF 2003</article-title>
          . CLEF 2003 Workshop, Springer-Verlag.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Pérez-Coutiño</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Solorio</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montes-</surname>
          </string-name>
          y
          <string-name>
            <surname>-Gómez</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>López-López</surname>
            <given-names>A</given-names>
          </string-name>
          . and
          <string-name>
            <surname>Villaseñor-Pineda</surname>
            <given-names>L.</given-names>
          </string-name>
          ,
          <article-title>Toward a Document Model for Question Answering Systems</article-title>
          .
          <source>In Advances in Web Intelligence. LNAI3034 SpringerVerlag</source>
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Prager</surname>
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Radev</surname>
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brown</surname>
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Coden</surname>
            <given-names>A.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Samn</surname>
            <given-names>V.</given-names>
          </string-name>
          <article-title>The Use of Predictive Annotation for Question Answering in TREC8</article-title>
          .
          <source>NIST</source>
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Quinlan</surname>
            <given-names>J. R.</given-names>
          </string-name>
          <year>C4</year>
          .
          <article-title>5: Programs for machine learning</article-title>
          .
          <year>1993</year>
          . San Mateo, CA: Morgan Kaufmann.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Ravichandran</surname>
            <given-names>D.</given-names>
          </string-name>
          and Hovy E.
          <article-title>Learning Surface Text Patterns for a Question Answering System</article-title>
          .
          <source>In ACL Conference</source>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>