<!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>Hungarian Monolingual Retrieval at CLEF 2005</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Anna Tordai Maarten de Rijke Informatics Institute, University of Amsterdam Kruislaan 403</institution>
          ,
          <addr-line>1098 SJ Amsterdam</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>We describe our official runs for the ad hoc monolingual task in Hungarian for CLEF 2005. We conducted experiments with four stemmers of varying impact. The experiments indicate that stemmers focusing on noun inflection are as effective as more broadly oriented stemmers, and that extensive stemming is especially beneficial for Hungarian monolingual retrieval.</p>
      </abstract>
      <kwd-group>
        <kwd>Stemming</kwd>
        <kwd>Morphological analysis</kwd>
        <kwd>Hungarian language</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        In our participation in the CLEF ad hoc task this year, we focused exclusively on monolingual
retrieval for Hungarian. This is the first year Hungarian is part of CLEF and it is an ideal
opportunity to test our work on the effects of stemming in Hungarian. Previous work on languages
that are morphologically richer than English, such as Finnish, indicate that there should be benefits
from morphological analysis such as stemming, lemmatization, and compound analysis [
        <xref ref-type="bibr" rid="ref3 ref4 ref5">3, 4, 5</xref>
        ].
We have developed a number of suffix-stripping algorithms of varying impact, all focusing on
inflectional suffixes. Our goal is to determine the degree of stemming that would prove benecfiial
for retrieval effectiveness, in terms of both precision and recall. We expect to see improvements
for recall for the stemmers, but in addition, we hope that our “light” stemmers keep precision at
an acceptable level. The “heavy” stemmer we developed is also expected to improve recall, but it
will probably hurt precision.
      </p>
      <p>The paper is organized as follows. Section 2 describes the traits of the Hungarian language
that are important from an information retrieval point of view. Section 3 contains a description
algorithmic stemmers along with an evaluation. Section 4 describes the retrieval system we used.
Section 5 concerns the official and non-official runs, finally followed by a conclusion.</p>
    </sec>
    <sec id="sec-2">
      <title>Hungarian Morphology</title>
      <p>
        Hungarian is an agglutinative language remotely related to Finnish and Estonian, and a member
of the Ob-Ugric languages [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. The Hungarian language is highly ineflctional, rich in compound
words, and has an extensive inflectional and derivational morphology. To illustrate this, nouns
have 16 to 24 cases depending on the classification system. Additionally, if person, number and
possession are added for a single noun there may be as many as 1400 forms [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Adjectives also
have case, person, number and possession, as well as degree, pushing the number of forms to
around 2700. Verbs have fewer forms, with person, number, tense, transitivity adding up to 59.
These numbers merely illustrate the inflectional variety of the language. Additionally, there is an
extensive system of derivational suffixes, many of them changing the part of speech of a word.
      </p>
      <p>Compound words are frequent in Hungarian, presenting an additional challenge for retrieval.
Compound nouns can be formed by two nouns and a participle and a noun. Adjectives can also
be formed by the combination of a noun and adjective. Compounding was not addressed at this
time.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Algorithmic Stemmers</title>
      <p>In this section we describe and evaluate the stemmers used in our retrieval experiments.
3.1</p>
      <sec id="sec-3-1">
        <title>Description of the Stemmers</title>
        <p>
          The stemmers were built in the Snowball language [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] and are rule-based stemmers focusing on
inflectional suffixes in Hungarian. Using the Szeged Corpus [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ], which is a collection of annotated
texts ranging from novels, children’s essays, legal texts, newspaper articles to computer books, we
created a list of the most frequent types of morphosyntactic tags. This helped to determine which
suffixes appear most often in the text and guided the construction of the stemmers.
        </p>
        <p>We developed four types of stemmers:
• Light1 – handling frequent noun cases, plural and frequent owners.
• Light2 – handling all noun cases, plural and frequent owners.
•
•</p>
        <p>Medium – handling frequent noun cases, plural, frequent owners and frequent verb tenses.</p>
        <p>Heavy – handling most ineflctional suffixes.</p>
        <sec id="sec-3-1-1">
          <title>We will now discuss the stemmers in more detail.</title>
          <p>The lightest stemmer, Light1, only handles 14 frequent noun cases, plural and the most frequent
possessive cases. It is the least invasive stemmer but statistics suggest it might still have a
significant impact. Of all the nouns in the Szeged corpus 26% were in uninflected form. The most
frequent types of suffixes cover 36% of the nouns. These were the ones targeted by Light1 with
the exception of the single letter suffix ‘k’ indicating plurality. Even without it, at least half of
all nouns should be indexed in their stem form. Since adjectives have the same case, number and
possession suffixes as nouns they also become stemmed along with numerals which also share a
number of cases with nouns.</p>
          <p>The second stemmer, Light2, is similar to Light1 except that it handles 21 noun cases instead
of just 14, also removing single letter suffixes such as the accusative ‘t’ and superessive ‘n’. The
Light1 and Light2 stemmers both take word length into account, making sure the remainder is at
least a valid vowel-consonant combination.</p>
          <p>The third stemmer, Medium, removes 12 frequent noun cases, plural, possession and
combinations of ownership and plurality. It also handles frequent verb tense-person-number combinations
as well as the degree of adjectives. In addition, suffixes forming ordinals and fractions out of
numerals were also removed.</p>
          <p>Light1
Light2
Medium
Heavy</p>
          <p>The last stemmer, Heavy, is the most aggressive, removing 21 noun cases, handling plurality
and possession. For verbs it handles innfiitive, indicative, conditional and subjunctive moods.</p>
          <p>Unfortunately, there are a number of difficulties for the stemmers such as overstemming and
homonymy. As an example of overstemming, the word nemzet, meaning ‘nation’, is already in
stemmed form but the heavy stemmer removes the ‘et’ suffix since it is a valid accusative ending
leaving the invalid nemz as the stem. This problem could be alleviated by expanding the stemmer
with the use of an exceptions list containing certain frequent words.</p>
          <p>To illustrate the problem of homonymy, consider the word nevet, which either means the verb
‘to laugh’ or the noun ‘name’ in accusative form. For the latter the stemmer ought to remove the
‘et’ ending and swap ‘e’ for e‘’´ to produce nev´ ; for the former it must leave the word untouched.
What complicates the decision whether to remove this suffix, is that accusative is the most frequent
case in the Szeged corpus after the nominative case. At present the stemmers that remove the
accusative case overstem the verb form. It would be interesting to see if a lemmatizer would have
an edge over an algorithmic stemmer when it comes to these problems.
3.2</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>Evaluating the Stemming Algorithms</title>
        <p>
          The stemmers were evaluated both intrinsically and extrinsically. For the intrinsic evaluation, we
used Paice’s method based on error counting [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. According to this method, two values determine
the quality of a stemmer: understemming and overstemming. In order to determine these values,
a list of words is separated into conceptual groups formed by semantically and morphologically
related words. This is the target, and an ideal stemmer should conflate words to these conceptual
groups.
        </p>
        <p>The stemmers were used to stem the word list, and following the Paice method their
correspondence to the conceptual groups was measured. This resulted in an understemming (UI) and
overstemming measure (OI). By dividing the overstemming index by the understemming measure
we get the stemming weight (SW) which is a measure of the strength of the stemmer.</p>
        <p>Paice also offers a different way to combine the two measures (UI and OI) to determine the
general relative accuracy of the stemmers. This measure, called error rate relative to truncation,
or ERRT, is useful for deciding on the best overall stemmer in cases where one stemmer is better
in terms of understemming but worse in terms of overstemming. To calculate the ERRT we
created a baseline using length truncation by reducing the words in the world list to their n first
letters where n was 9, 10, 11 and 12. The overstemming and understemming measure of these
truncated lists denfies the truncation line. The values of any reasonable stemmers are found
between this line and the origin. Figure 1 shows the UI and OI values for each stemmer with the
truncation line. Generally, the further the stemmer is from this line, the better it performs on
the word lists. By drawing a line that passes through the origin, the datapoint identified by the
pair (UI,OI) consisting of the stemmer’s understemming and overstemming index, respectively,
and that intersects the truncation line, we obtain the distances necessary to calculate the ERRT
value of each stemmer. These are the distance from the origin to the stemmer’s (UI,OI) divided
by the distance from the origin to the intersection (with the truncation line). Low overstemming
and understemming indexes are the desired feature in a stemmer. Stemmers that are closer to the
origin have lower UI and OI values which means the distance is also shorter. The ‘best’ stemmer
would also have the lowest ERRT value compared to the rest.</p>
        <p>Heavy</p>
        <p>Medium
trunc(9)
trunc(10)
trunc(11)
trunc(12)
1
OI 3</p>
        <p>4
3.5
2.5
1.5
2
1
0.5
00</p>
        <p>Light2
0.6
UI</p>
        <p>Light1
0.8
0.2
0.4
1.2</p>
        <p>Table 1 contains the UI, OI, SW and ERRT values for each of the four stemmers used. As
expected, Light1, being the lightest stemmer, has the highest understemming index, while Heavy
has the lowest value. The high value for understemming for Light1 indicates that it leaves many
words unstemmed or just understemmed. The reverse is true for the overstemming index. The
Medium stemmer has a lower understemming and higher overstemming index than Light2 which,
at first sight, seems surprising. However, 54% of the words in the list are nouns, and since Light2
removes all noun cases just like the Heavy stemmer, but unlike Light1 and Medium, these scores
make sense. The Medium stemmer focuses on some frequent noun cases and verbs. Verbs only
form 23% of the word list so the reason for the somewhat unexpected values is simply due to
the fact that the Medium stemmer stems fewer words than Light2. Overall, when it comes to
stemming a word list, a stemmer handling all noun cases yields better results than one restricted
to the most frequent noun cases and verb tenses. We suspect that this will apply to a lesser extent
for retrieval as words are unique in the word list unlike in a normal corpus.</p>
        <p>The high ERRT value of Light1 indicates that although it has very low overstemming it leaves
too many words understemmed making it too light. The same is true for the Medium stemmer,
which loses out because it focuses on verbs even though there are fewer verbs than nouns in the
word list. In this sense Light2 and Heavy come out as winners having the lowest ERRT values.
What would this mean when used in an information retrieval setting? An analysis of English
topics used in CLEF 2004 showed that after stopping over 65% of the words were nouns, only
10% verbs and 12% adjectives. A post submission analysis conrfimed these nfidings for the 2005
Hungarian topics, with 60% of nouns, 23% adjectives and 17% verbs after stopping. Thus, even
if a stemmer only concentrates on stemming nouns it should still have an impact on recall if not
precision. Based on the ERRT values we expect the runs with Light2 and Heavy stemmers to
yield a better recall than the other two stemmers and the baseline (no stemming at all). At the
same time, precision will probably be negatively affected by the Heavy stemmer. These results
suggest that the run with Light2 should have the highest recall and precision values since it has
a low understemming ratio and should still stem a large percentage of words. Let’s see.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Retrieval Setup</title>
      <p>
        Now that we have described the stemmers that we have developed, we turn to our retrieval
experiments and submissions. First, we used Lucene (off-the-shelf) for indexing and retrieval with
a standard vector space model [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        In addition, we used a stopword list which was created using the Szeged Corpus [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. We created
a list from the 300 most frequent words in the corpus. Numbers and homonyms were removed for
the list and it was expanded with pronouns. The result was a list of 188 words.1 Both the index
and queries were stopped. Diacritics were left untouched.
      </p>
      <p>The Hungarian document collection for CLEF 2005 consists of a collection of the newspaper
Magyar Hrı´lap from 2002. The document collection was encoded in UTF-8. As the Snowball
stemmers were created for ISO Latin encoding the entire collection was converted into ISO Latin
1 encoding without any loss of textual data. For each document the title, lead and description
fields were allowed to be used for retrieval; they were all indexed.</p>
      <p>There were 50 queries and we used both the title (T) and description (D) fields for retrieval.
5</p>
    </sec>
    <sec id="sec-5">
      <title>CLEF 2005 Experiments</title>
      <sec id="sec-5-1">
        <title>In this section describe the results of our experiments.</title>
        <p>5.1</p>
        <sec id="sec-5-1-1">
          <title>Runs</title>
          <p>We submitted four official runs for the monolingual Hungarian ad-hoc task, one for each of the
four stemmers we developed:
Some of these additional experiments serve as baseline runs to assess the overall impact of the
Snowball stemmers and of stopping. In addition we ran experiments using character n-grams. The
run with 6-grams was not stopped; for this run the corpus was indexed with the original word and
its 6-grams. The 6-gram performed better than 7-grams and 8-grams, which are not discussed in
here.
5.2</p>
        </sec>
        <sec id="sec-5-1-2">
          <title>Retrieval Results</title>
          <p>The Mean Average Precision (MAP) scores in Table 2 show that of the stemmed runs the Heavy
stemmer performed best, closely followed by Light2, while Medium and Light1 perform worse.
This conrfims the results of the ERRT values in Section 4 and suggests that extensively stemming
nouns yields good results and even more extensive stemming improves precision. It is worth
noting that the MAP score of the 6-Gram run is only slightly below the score of Light2. In fact,
1The stopword list is available at http://ilps.science.uva.nl/Resources/.
•
•
• Light1 (run id: UAmsMoHu4AnV)
• Light2 (run id: UAmsMoHu3AnL)</p>
          <p>Medium (run id: UAmsMoHu2AnG)</p>
          <p>Heavy (run id: UAmsMoHu1AnH)
• Base
• Base + stop
• 6-grams
We conducted several post-submission experiments once the assessments and the results of the
submitted runs had been made available:
100%
90%
80%
70%
ion 60%
s
i
c
e
reP 50%
g
a
r
veA 40%
30%
20%
10%
Heavy
Medium
Light 1
Light 2
Base + stop
Base
6 gram
Light1
Light2
Medium
Heavy
Base
Base + stop
6-Gram
we see that using 6-grams on this corpus is almost as good as using stemming. When looking at
the Interpolated Recall vs Average Precision (Figure 2) we see that the Light2 run has almost
exactly the same values as the Heavy run. When it comes to R-precision scores Light2 has the
best scores beating the Heavy run.</p>
          <p>Interestingly, the 6-Gram run retrieves the largest number of relevant documents but does not
rank them sufficiently high, as the MAP scores are not the best ones. Judging from the combination
of number of retrieved relevant documents, R-precision and MAP scores, Light2 ranks the relevant
documents the highest even though it does not retrieve as many as the 6-gram or Heavy runs.
5.3</p>
        </sec>
        <sec id="sec-5-1-3">
          <title>Discussion</title>
          <p>The retrieval performance of the stemmed runs follows our expectations from Section 4. Of the
four stemmers, the Heavy and Light2 stemmers performed best, followed by Medium and Light.
The Light2 stemmer shows the importance of stemming nouns when it comes to retrieval in
Hungarian. The Heavy stemmer indicates that even extensive stemming does not lower precision
like it is known to do for English retrieval.</p>
          <p>We will now look at the performance of the stemmed runs on certain topics. As in general,
the Heavy and Light2 stemmers performed much better per topic than the other two stemmers
did. We will compare the stronger group to the weaker group in order to determine why there
was such a difference in performance as well as why the stemmers performed below the median.</p>
          <p>Topic 289 is an example where all of the runs were below the median. In this document the
task is to retrieve documents about the Falkland islands.</p>
          <p>&lt;num&gt; C289 &lt;/num&gt;
&lt;HU-title&gt; Falkland-szigetek &lt;/HU-title&gt;
&lt;HU-desc&gt; Keresus¨nk a Falkland-szigetekr˝ol sozo´l´ cikkeket.
&lt;/HU-desc&gt;
Some of the relevant documents were not retrieved. One of the reasons for this was that the term
Falkland-szigetek was indexed as a single word. Hyphenated words are frequent in Hungarian for
dates, acronyms and when foreign words or brand names become inflected (e.g., for NATO becomes
NATO-nak ). One of the relevant documents contained the words Falkland-szigetek (“Falkland
islands”) in separate form while another contained the term Falkland-ha´bour´ (“Falkland wars”)
and these were not retrieved.</p>
          <p>Another document was not found because it contained the adjective form Falkland-szigeti
meaning “from the Falkland islands.” This is a derivative suffix and, as mentioned earlier,
derivative suffixes are not removed by our stemmers. However, this type of suffix is so frequent it will
be removed in future versions of the stemmer.</p>
          <p>One of the topics where the Heavy and Light2 runs did much better (noticeably higher than
the median) than the weaker ones was Topic 259. Documents relevant for this topic contain
information about movies that have been awarded the Golden Bear at the Berlin film festival.
&lt;num&gt; C259 &lt;/num&gt;
&lt;HU-title&gt; Aranymedve &lt;/HU-title&gt;
&lt;HU-desc&gt; Mely lfimek kaptak Aranymedve dıja´t a berlini filmfesztiva´lon?
&lt;/HU-desc&gt;
While all four relevant documents were retrieved in each run it was their ranking that resulted
in different precision scores. The Heavy and Light2 stemmers correctly stemmed one form of the
word “Aranymedve” in one of the relevant documents as well as the word “lfimfesztiva´l”. This
boosted the ranking of these documents. The word “film” was correctly stemmed by all stemmers
in all the documents but as this word appears frequently in irrelevant document as well it resulted
in lower rankings for the Medium and Light1 runs. It is worth noting that the word filmfesztiav´lon
is a compound of film and fesztiav´lon . Although the word film was in the query, we believe that
decompounding the word fesztiav´lon would have helped to would have further boosted the ranking.</p>
          <p>Now that we know the form of the topics we will also be able to adjust the stopword list so as
to include the words keresus¨nk (search) and cikkeket (articles).
6</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Conclusion</title>
      <p>The experiments on which we report in this paper confirm that stemming in Hungarian greatly
improves retrieval effectiveness. They show that a stemmer focusing merely on the inflection of
nouns works almost as well as a more broadly oriented stemmer. Merely stemming frequent noun
and verb inflections however yields worse results than using 6-grams. Our results are sobering as
a 6-grammed run performed almost as well as the best performing stemmed run.</p>
      <p>Our stemmers themselves can be improved upon and hyphenated words will have to be
addressed differently in the future. A detailed error analysis has shown that decompounding will
probably boost rankings and help retrieve additional documents. Analyzing the impact of
decompounding on Hungarian monolingual retrieval is left as future work, though.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgements</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Szeged</given-names>
            <surname>Corpus</surname>
          </string-name>
          .
          <article-title>A morpho-syntactically annotated and POS tagged Hungarian corpus</article-title>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>T.</given-names>
            <surname>Erjavec</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Monachini</surname>
          </string-name>
          .
          <article-title>Specifications and notation for lexicon encoding</article-title>
          .
          <source>Technical report, COP Project 106 MULTEXT - East, December</source>
          <volume>17</volume>
          ,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Fissaha Adafre</surname>
          </string-name>
          ,
          <string-name>
            <surname>W.R. van Hage</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Kamps</surname>
          </string-name>
          , G. Lacerda de Melo, and M. de Rijke. The University of Amsterdam at CLEF 2004. In C. Peters and
          <string-name>
            <surname>F</surname>
          </string-name>
          . Borri, editors,
          <source>Working Notes for the CLEF 2004 Workshop</source>
          , pages
          <fpage>91</fpage>
          -
          <lpage>98</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>V.</given-names>
            <surname>Hollink</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Kamps</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Monz</surname>
          </string-name>
          , and M. de Rijke.
          <article-title>Monolingual document retrieval for European languages</article-title>
          .
          <source>Information retrieval</source>
          ,
          <volume>7</volume>
          :
          <fpage>33</fpage>
          -
          <lpage>52</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>T.</given-names>
            <surname>Korenius</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Laurikkala</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Jarvelin</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Juhola</surname>
          </string-name>
          .
          <article-title>Stemming and lemmatization in the clustering of nfinish text documents</article-title>
          .
          <source>In Proceedings of the Thirteenth ACM conference on Information and knowledge management</source>
          ,
          <year>2005</year>
          , pages
          <fpage>625</fpage>
          -
          <lpage>633</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Lucene</surname>
          </string-name>
          .
          <article-title>The Lucene search engine</article-title>
          . URL: http://jakarta.apache.org/lucene/.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>B.</given-names>
            <surname>Megyesi</surname>
          </string-name>
          .
          <article-title>The Hungarian language</article-title>
          . URL: http://www.speech.kth.se/~bea/hungarian. pdf.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>C.D.</given-names>
            <surname>Paice</surname>
          </string-name>
          .
          <article-title>Method for evaluation of stemming algorithms based on error counting</article-title>
          .
          <source>Journal of The American Society for Information Science</source>
          ,
          <volume>47</volume>
          (
          <issue>8</issue>
          ):
          <fpage>632</fpage>
          -
          <lpage>649</lpage>
          ,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Snowball</surname>
          </string-name>
          .
          <article-title>The Snowball string processing language</article-title>
          . URL: http://snowball.tartarus.org/,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>