<!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>A Study on the use of Stemming for Monolingual Ad-Hoc Portuguese Information Retrieval</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Viviane Moreira Orengo</string-name>
          <email>vmorengo@inf.ufrgs.br</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>General Terms</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Experimentation</institution>
          ,
          <addr-line>Performance, Measurement, Algorithm</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Instituto de Informática - Universidade Federal do Rio Grande do Sul (UFRGS) Caixa Postal 15.</institution>
          <addr-line>064 - 91.501-970 - Porto Alegre - RS -</addr-line>
          <country country="BR">Brazil</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>For UFRGS's first participation on CLEF our goal was to compare the performance of heavier and lighter stemming strategies using the Portuguese data collections for Monolingual Ad-hoc retrieval. The results show that the safest strategy was to use the lighter alternative (reducing plural forms only). On a query-by-query analysis, full stemming achieved the highest improvement but also the biggest decrease in performance when compared to no stemming. In addition, statistical tests showed that the only significant improvement both in terms of mean average precision and precision at ten was achieved by our lighter stemmer.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>This paper reports on monolingual information retrieval experiments that we have performed for
CLEF2006. We took part on the ad-hoc monolingual track, focusing on the Portuguese test collections.
Our aim was to compare the performance of lighter and heavier stemming alternatives. We compared two
different algorithms: a Portuguese version of the Porter stemmer1 and the “Removedor de Sufixos da</p>
      <sec id="sec-1-1">
        <title>Língua Portuguesa (RSLP)” (Orengo &amp; Huyck, 2001). The remainder of this paper is organised as follows: Section 2 presents RSLP stemmer; Section 3 discusses the experiments and results; and Section 4 presents the conclusions.</title>
        <sec id="sec-1-1-1">
          <title>Word ends in "s" ?</title>
          <p>Yes</p>
        </sec>
        <sec id="sec-1-1-2">
          <title>Plural</title>
        </sec>
        <sec id="sec-1-1-3">
          <title>Reduction</title>
          <p>No</p>
        </sec>
        <sec id="sec-1-1-4">
          <title>Word ends in "a" ?</title>
          <p>Yes</p>
        </sec>
        <sec id="sec-1-1-5">
          <title>Feminine</title>
        </sec>
        <sec id="sec-1-1-6">
          <title>Reduction</title>
          <p>No</p>
        </sec>
        <sec id="sec-1-1-7">
          <title>Augmentative</title>
        </sec>
        <sec id="sec-1-1-8">
          <title>Reduction</title>
        </sec>
        <sec id="sec-1-1-9">
          <title>Adverb</title>
        </sec>
        <sec id="sec-1-1-10">
          <title>Reduction</title>
        </sec>
        <sec id="sec-1-1-11">
          <title>Noun</title>
        </sec>
        <sec id="sec-1-1-12">
          <title>Reduction</title>
        </sec>
        <sec id="sec-1-1-13">
          <title>Suffix</title>
        </sec>
        <sec id="sec-1-1-14">
          <title>Removed</title>
          <p>No</p>
        </sec>
        <sec id="sec-1-1-15">
          <title>Verb</title>
        </sec>
        <sec id="sec-1-1-16">
          <title>Reduction</title>
          <p>Yes</p>
        </sec>
        <sec id="sec-1-1-17">
          <title>Remove</title>
        </sec>
        <sec id="sec-1-1-18">
          <title>Accents End</title>
        </sec>
        <sec id="sec-1-1-19">
          <title>Suffix</title>
        </sec>
        <sec id="sec-1-1-20">
          <title>Removed</title>
          <p>Yes
No</p>
        </sec>
        <sec id="sec-1-1-21">
          <title>Remove</title>
        </sec>
        <sec id="sec-1-1-22">
          <title>Vowel</title>
          <p>Each step has a set of rules, the rules in the steps are examined in sequence and only one rule in a step can
apply. The longest possible suffix is always removed first because of the ordering of the rules within a
step, e.g. the plural suffix –es should be tested before the suffix –s. At the moment, the Portuguese</p>
        </sec>
      </sec>
      <sec id="sec-1-2">
        <title>Stemmer contains 199 rules. please refer to (Orengo &amp; Huyck, 2001) for the complete list.</title>
      </sec>
      <sec id="sec-1-3">
        <title>Each rule states:</title>
      </sec>
      <sec id="sec-1-4">
        <title>The suffix to be removed;</title>
        <p>•
•
•
•</p>
      </sec>
      <sec id="sec-1-5">
        <title>The minimum length of the stem: this is to avoid removing a suffix when the stem is too</title>
        <p>short. This measure varies for each suffix, and the values were set by observing lists of
words ending in the given suffix. Although there is no linguistic support for this procedure it
reduces overstemming errors. Overstemming is the removal of a sequence of characters that
is part of the stem and not a suffix.</p>
      </sec>
      <sec id="sec-1-6">
        <title>A replacement suffix to be appended to the stem, if applicable;</title>
      </sec>
      <sec id="sec-1-7">
        <title>A list of exceptions: for nearly all rules we defined, there were exceptions, so we added exception lists for each rule. Such lists were constructed with the aid of a vocabulary of 32,000 Portuguese words freely available from (Snowball). Tests with the stemmer have shown that exceptions list reduce overstemming errors by 5%.</title>
      </sec>
      <sec id="sec-1-8">
        <title>An example of a rule is:</title>
        <p>"inho", 3, ””, {"caminho", "carinho",
"golfinho", "padrinho", "sobrinho", "vizinho"}
"cominho",
Where “inho” is a suffix that denotes diminutive, 3 is the minimum size for the stem, which prevents
words like “linho” (linen) from being stemmed and the words between brackets are the exceptions for this
rule, that is, they end in the suffix but they are not diminutives. All other words that end in –inho and that
are longer than 6 characters will be stemmed. There is no replacement suffix in this rule.</p>
      </sec>
      <sec id="sec-1-9">
        <title>Below we explain the eight steps involved in our stemming procedure.</title>
        <p>Step 1: Plural Reduction
With rare exceptions, the plural forms in Portuguese end in –s. However, not all words ending in –s
denote plural, e.g. lápis, (pencil). This step consists basically in removing the final “s” of the words that
are not listed as exceptions. Yet sometimes a few extra modifications are needed e.g. words ending in –ns
should have that suffix replaced by “m” like in bons → bom.</p>
        <p>Step 2: Feminine Reduction
All nouns and adjectives in Portuguese have a gender. This step consists in transforming feminine forms
to their corresponding masculine. Only words ending in –a are tested in this step but not all of them are
converted, just the ones ending in the most common suffixes, e.g. chinesa → chinês.</p>
        <p>Step 3: Adverb Reduction
This is the shortest step of all, as there is just one suffix that denotes adverbs –mente. Again not all words
with that ending are adverbs so an exception list is needed.</p>
        <p>Step 4: Augmentative/Diminutive Reduction
Portuguese nouns and adjectives present far more variant forms than their English counterparts. Words
have augmentative, diminutive and superlative forms e.g. “small house” = casinha, where –inha is the
suffix that indicates a diminutive. Those cases are treated by this step. According to (Cunha &amp;
LindleyCintra, 1985) there are 38 of these suffixes, however some of them are obsolete therefore, in order to
avoid overstemming, our algorithm uses only the most common ones that are still in common usage.
Step 5: Noun Suffix Reduction
This step tests words against 61 noun (and adjective) endings. If a suffix is removed here, steps 6 and 7
are not executed.</p>
        <p>
          Step 6: Verb Suffix Reduction
Portuguese is a very rich language in terms of verbal forms, while the regular verbs in English have just 4
variations (e.g. talk, talks, talked, talking), the Portuguese regular verbs have over 50 different forms
          <xref ref-type="bibr" rid="ref2">(Macambira, 1999)</xref>
          . Each one has its specific suffix. The verbs can vary according to tense, person,
number and mode. The structure of the verbal forms can be represented as: root + thematic vowel2 + tense
+ person, e.g. and + a + ra + m (they walked). Verbal forms are reduced to their root.
Step 7: Vowel Removal
This task consists in removing the last vowel (“a”, “e” or “o”) of the words which have not been stemmed
by steps 5 and 6, e.g. the word menino (boy) would not suffer any modifications by the previous steps,
therefore this step will remove its final –o, so that it can be conflated with other variant forms such as
menina, meninice, meninão, menininho, which will also be converted to the stem menin.
Step 8: Accents Removal
Removing accents is necessary because there are cases in which some variant forms of the word are
accented and some are not, like in psicólogo (psychologist) and psicologia (psychology), after this step
both forms would be conflated to psicolog. It is important that this step is done at this point and not right
at the beginning of the algorithm because the presence of accents is significant for some rules e.g. óis →
ol transforming sóis (suns) to sol (sun). If the rule was ois → ol instead, it would make mistakes like
stemming dois (two) to dol.
        </p>
        <p>The Portuguese version of the Porter Stemmer and the RSLP are based solely on rules that need to be
applied in a certain order. However there are some differences between the two stemmers:
2 There are 3 classes of verbs in Portuguese according to the ending of their infinitive form: “ar”, “er”,
“ir”. Thematic Vowel the letter (“-a”, “-e” and “-i”) that groups verbs into categories.
•
•
•</p>
        <p>The number of rules – RSLP has many more rules than the Portuguese Porter because it was
designed specifically for Portuguese. There are some morphological changes such as
augmentatives and feminine forms that are not treated by the Portuguese Porter.</p>
        <p>The use of exceptions lists – RSLP includes a list of exceptions for each rule as they help
reducing overstemming errors.</p>
      </sec>
      <sec id="sec-1-10">
        <title>The steps composing the two algorithms are different.</title>
        <p>3</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Experiments</title>
      <p>This section describes our experiments submitted to the CLEF-2006 campaign. Section 3.1 details the
resources used, and Section 3.2 presents the results.
3.1</p>
      <p>Description of Runs and Resources
The Portuguese data collections were indexed using SMART3. We used the title and description fields of
the query topics. Query terms were automatically extracted from the topics. Stop words were removed
from both documents and topics. In addition, terms such as “find documents” were removed from the
topics. The processing time was less than 4 minutes for all runs. This includes indexing the 210,734
documents and running all 50 queries.</p>
      <sec id="sec-2-1">
        <title>Four runs were tested:</title>
        <p>•
•
•
•</p>
      </sec>
      <sec id="sec-2-2">
        <title>NoStem – No stemming was applied, this run was used as the baseline</title>
      </sec>
      <sec id="sec-2-3">
        <title>Porter – Full stemming using the Portuguese version of the Porter stemmer</title>
      </sec>
      <sec id="sec-2-4">
        <title>RSLP – Full stemming using the RSLP stemmer</title>
      </sec>
      <sec id="sec-2-5">
        <title>RSLP-S – applying only the first step of RSLP to deal with plural reduction only</title>
        <p>3.2</p>
        <p>
          Results
3 Available from ftp://ftp.cs.cornell.edu/pub/smart/
80,00%
70,00%
60,00%
50,00%
n
o
i
is40,00%
c
e
r
P30,00%
20,00%
10,00%
0,00%
RSLP
Porter
RSLP-s
No Stemming
In order to tell whether the performance improvements shown in Table 1 are statistically significant, a
paired T-test was performed. Although our data is not perfectly normally distributed, Hull
          <xref ref-type="bibr" rid="ref1">(Hull, 1993)</xref>
          argues that the T-test performs well even in such cases. The standard threshold for statistical significance
(α) of 0.05 was used. When the calculated p value is less thanα, there is a significant difference between
the experimental runs. The results of the statistical tests show that full stemming does not produce a
statistically significant improvement (in terms of both MAP and Pr@10) for either algorithm (p values of
0.25 for RSLP and 0.22 for Porter considering MAP and p values of 0.14 for RSLP and 0.18 for Porter
when analysing Pr@10 ). RSLP-S, however, has achieved a statistically significant improvement
compared to baseline for both MAP and Pr@10 (p values of 0.003 for MAP and 0.01 for Pr@10). Figure
2 shows recall-precision curves for all runs.
        </p>
        <p>0%
10%
20%
30%
40%
50%
60%
70%
80%
90%</p>
        <p>100%</p>
        <p>Recall
A query-by-query, analysis shown in Table 3, demonstrates that for 12 topics no stemming was the best
alternative. Some form of stemming helped 38 out of 50 topics. Confirming the results in terms of MAP
and Pr@10, the best performance was achieved by the lighter stemming alternative RSLP-S. Full
stemming with RSLP achieved the biggest performance improvement (topic 340 AvP 0.0003 → 0.3039),
but also the biggest drop (topic 343 AVP 0.4276 → 0.1243). Stemming also helped finding 221 relevant
documents that were not retrieved by the NoStem run.
It seemed plausible that queries with few relevant documents would benefit more from stemming,
resulting in a negative correlation between the number of relevant documents for the topic and the change
in performance achieved with stemming. However a weak positive correlation of 0.15 was found. We
would like to be able to predict the types of queries that would be benefited from stemming, but that
needs further analysis with a larger number of topics.
This paper reported on monolingual ad-hoc IR experiments using Portuguese test collections. We
evaluated the validity of stemming comparing the Portuguese version of the Porter stemmer and two
versions of the RSLP stemmer, one that applies full stemming and one that only reduces plural forms</p>
      </sec>
      <sec id="sec-2-6">
        <title>Below we summarise our conclusions:</title>
        <p>•
•
•</p>
        <p>The lighter version of the RSLP stemmer yields statistically significant performance
improvements both in terms of MAP and Pr@10.</p>
        <p>Full stemming, both with Porter and RSLP, has improved the results in terms of MAP and</p>
      </sec>
      <sec id="sec-2-7">
        <title>Pr@10. However the difference was statistically significant. On a query-by-query analysis we found that stemming helped 38 out of 50 topics and that it enabled the retrieval of 221 further relevant documents that were missed by the run in which no stemming was used.</title>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Acknowledgements References</title>
      <p>This work was supported by a CAPES-PRODOC grant from the Brazilian Ministry of Education.
Cunha, C., Lindley-Cintra, L., 1985. Nova Gramática do Português Contemporâneo. Rio de</p>
      <sec id="sec-3-1">
        <title>Janeiro: Nova Fronteira (in Portuguese). Hull, D.,1993. Using Statistical Testing in the Evaluation of Retrieval experiments. In ACM</title>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>Hull</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <year>1993</year>
          .
          <article-title>Using Statistical Testing in the Evaluation of Retrieval experiments</article-title>
          .
          <source>In ACM SIGIR Conference on Research and Development in Information Retrieval</source>
          (pp.
          <fpage>329</fpage>
          -
          <lpage>338</lpage>
          ). Pittsburgh: ACM.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <surname>Macambira</surname>
            ,
            <given-names>J. R.</given-names>
          </string-name>
          ,
          <year>1999</year>
          .
          <article-title>A Estrutura Morfo-Sintática do Português</article-title>
          . São Paulo, Brazil: Ed. Pioneira (in Portuguese).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Orengo</surname>
            ,
            <given-names>V. M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huyck</surname>
            ,
            <given-names>C. R.</given-names>
          </string-name>
          ,
          <year>2001</year>
          .
          <article-title>A Stemming Algorithm for the Portuguese Language</article-title>
          .
          <source>In 8th International Symposium on String Processing and Information Retrieval (SPIRE)</source>
          . Laguna de San Raphael, Chile.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <source>Snowball. Retrieved</source>
          <volume>29</volume>
          /07/2006, from http://snowball.tartarus.org/portuguese/voc.txt
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>