<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="65"/><title>Design of a Rule-based Stemmer for Natural Language Text in Bengali</title><author surname="Sarkar" givenname="Sandipan"><org  name="Jadavpur University" country="India" city="Calcutta"/></author><author surname="Bandyopadhyay" givenname="Sivaji"><org  name="Jadavpur University" country="India" city="Calcutta"/></author></firstpageheader><frontmatter><p><b>Design of a Rule-based Stemmer for Natural Language Text in Bengali</b></p><p><b>Sandipan Sarkar Sivaji Bandyopadhyay</b></p><p>IBM India Computer Science and Engineering Department</p><p>sandipan.sarkar@in.ibm.com, Jadavpur University, Kolkata</p><p>sandipansarkar@gmail.com sbandyopadhyay@cse.jdvu.ac.in</p></frontmatter><abstract>This paper presents a rule-based approach for finding out the stems from text in Ben­gali, a resource-poor language. It starts by introducing the concept of orthographic syllable, the basic orthographic unit of Bengali. Then it discusses the morphologi­cal structure of the tokens for different parts of speech, formalizes the inflection rule constructs and formulates a quantita­tive ranking measure for potential candi­date stems of a token. These concepts are applied in the design and implementation of an extensible architecture of a stemmer system for Bengali text. The accuracy of the system is calculated to be ~89% and above. </abstract></header><body><section number="1" title="Introduction"><p>While stemming systems and algorithms are being studied for European, Middle Eastern and Far Eastern languages for sometime, such studies in Indic scripts are quite limited. Ramanathan and Rao (2003) reported a lightweight rule-based stemmer in Hindi. Garain et. al. (2005) proposed a clustering-based approach to identify stem from Bengali image documents. Majumdar et. al. (2006) accepted the absence of rule-based stemmer in Bengali and proposed a statistical clustering-based approach to discover equivalence classes of root words from electronic texts in different languages including Bengali. We could not find any publica­tion on Bengali stemmer following rule-based ap­proach.</p><p>Our approach in this work is to identify and formalize rules in Bengali to build a stemming sys­tem with acceptable accuracy. This paper deals with design of such a system to stem Bengali</p><p><i>Proceedings of the IJCNLP-08 Workshop on NLP </i>Hyderabad, India, January 2008. ©2008 Asian</p><p>words tokens tagged with their respective parts of speech (POS).</p></section><section number="2" title="Orthographic Syllable"><p>Unlike English or other Western-European lan­guages, where the basic orthographic unit is a character, Bengali uses syllable. A syllable is typi­cally a vowel core, which is preceded by zero or more consonants and followed by an optional dia­critic mark.</p><p>However, the syllable we discuss here is ortho­graphic and not phonological, which can be differ­ent. As for example, the phonological syllables of word <i>[kartaa] </i>are <i>[kar_] </i>and ®t <i>[taa]. </i>Whereas, the orthographic syllables will be ^ <i>[ka] </i>and ®t [rtaa] respectively. Since the term <i>'syllable' </i>is more used in phonological context, we use 'o-<i>syllable' </i>to refer orthographic syllables, which will be a useful tool in this discussion.</p><p>Formally, using regular expression syntax, an o-syllable can be represented as <i>C </i>* V ? <i>D </i>? where C is a consonant, V is a vowel and D is a diacritic mark or <i>halant. </i>If one or more consonants are pre­sent, the vowel becomes a dependent vowel sign <i>[maatraa].</i></p><p>We represent the o-syllables as a triple (C, V, D) where C is a string of consonant characters, V is a vowel character and D is a diacritic mark. All of these elements are optional and their absence will be denoted by 0. V will be always represented in independent form.</p><p>We define <i>o-syllabic length </i>|t| of token (t) as the number of o-syllables in t.</p><p><i>'for Less Privileged Languages, </i>pages 65-72, Federation of Natural Language Processing<page local="2" global="66"/></p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Few examples</p></td><td class="cell"><p>are provided below:</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Token (</b><b>t</b><b>)</b></p></td><td class="cell"><p><b>O-syllable Form</b></p></td><td class="cell"><p><b>|</b><b>t</b><b>|</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>3TT <i>[maa]</i></p></td><td class="cell"><p>(3T,3IT,0)</p></td><td class="cell"><p>1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>FFT <i>[chaa'nd]</i></p></td><td class="cell"><p>(F,ölT,o )(TT,a,0)</p></td><td class="cell"><p>2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>arsw <i>[agastya]</i></p></td><td class="cell"><p>(0,a,0)(^a,0)(3fis3j,a,0)</p></td><td class="cell"><p>3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p><b>Token (</b><b>t</b><b>) O-syllable Form |</b><b>t</b><b>|</b></p><doubt alpha="37.1" length="35" tooSmall="False" monospace="0.0">wT^r[aaTkaa](0,w,0)(S,0,o)(^,w,0) 3</doubt><table caption="Table 1: O-syllable Form Examples"></table></section><section number="3" title="Morphological Impact of Inflections"><p>Like English, the inflections in Bengali work as a suffix to the stem. It typically takes the following form:</p><doubt alpha="64.1" length="64" tooSmall="False" monospace="0.0">&lt;token&gt; ::= &lt;stem&gt;&lt;inflections&gt; &lt;inflections&gt; ::= &lt;inflection&gt; |</doubt><p>&lt;inflection&gt;&lt;inflections&gt;</p><p>Typically Bengali word token are formed with zero or single inflection. Example: st<b>totw </b><i>[maayer] </i>&lt; 3tt [maa] (stem) + ew <i>[yer] </i>(inflection)</p><p>However, examples are not rare where the token is formed by appending multiple inflections to the stem: ^^wiro <i>[karaleo] </i>&lt; [kar_] (stem) + [le] (inflection) + o [o] (inflection), aiiihwi+i <i>[bhaaid-erakei] </i>&lt; <i>[bhaai] </i>(stem) + i&lt;tw <i>[der] </i>(inflec­tion) + <i>v$</i><i> [ke] </i>(inflection) + i [i] (inflection).</p><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">3.1 Verb</doubt><p>Verb is the most complex POS in terms of in­flected word formation. It involves most number of inflections and complex formation rules.</p><p>Like most other languages, verbs can be finite and non-finite in Bengali. While inflections for non-finite verbs are not dependent on tense or per­son; finite verbs are inflected based on person (first, second and third), tense (past, present and future), aspect (simple, perfect, habitual and progressive), honour (intimate, familiar and formal), style (tradi­tional <i>[saadhu], </i>standard colloquial <i>[chalit] </i>etc.) mood (imperative etc.) and emphasis. Bengali verb stems can yield more than 100 different inflected tokens.</p><p>Some examples are: &lt;miR&gt;h <i>[karaatis] </i>&lt; ^wt <i>[karaa] </i>(stem) + t^r [tis] (inflection representing second person, past tense, habitual aspect, intimate honour and colloquial style), ^li^ <i>[khaaiba] </i>&lt; [khaa] (stem) [iba] (inflection representing first person, future tense, simple aspect and tradi­tional style) etc.</p><p>A verb token does not contain more than two in­flections at a time. Second inflection represents either emphasis or negation.</p><p><u>Example</u>: wmi <i>[aasabai] </i>&lt; ws [aas ] (stem) + ^ <i>[ba] </i>(inflection representing first person, future tense, simple aspect and colloquial style) + i <i>[i] </i>(inflection representing emphasis).</p><p>While appended, the inflections may affect the verb stem in four different ways:</p><p>1. Inflections can act as simple suffix and do not make any change in the verb stem. Examples: ^wt (stem) + tc <i>[chchhi] </i>(inflection) &gt; ^wifc <i>[karaach-chhi],   </i>(stem) + ^ (inflection) &gt;     <i>[khaaba] </i>etc.</p><p>2. Inflections can change the vowel of the first o-syllable of the stem. Example (the affected vow­els are in <b><u>bold and underlined</u> </b>style): T0wt <i>[shudhraa] </i>(stem) + r [sa] (inflection) &gt; (t,U,0) (tf,0,&lt;&gt;) (w,w,0) + r &gt; (^,o,0) (*f,0,&lt;?) (w,w,0) + r &gt; PTprar <i>[shodhraa] </i>+ r &gt; irpfwpr <i>[shodhraasa].</i></p><doubt alpha="54.1" length="185" tooSmall="False" monospace="0.0">3. Inflections can change the vowel of the last o-syllable of the stem. Example:[aaT kaa](stem) + ft [chhi] (inflection) &gt; (0,w,0) (S,0,o)(^,w,0) + ft &gt; (0,w,0) (&amp;,0,o&gt;) (^,e,0) + ft &gt;w</doubt><p><i>[aaT_ke] </i>+ ft &gt; wk+fa <i>[aaTkechhi].</i></p><p>4. Inflections can change the vowel of both first and last o-syllable of the stem. Example: i&amp;rfwr <i>[Thokraa] </i>(stem) + o [o] (inflection) &gt; (&amp;,a,0) (^,0,o) (w,w,0) + o &gt; (*,t,0) (^,0,o) (w,i,0) + o &gt; £kft <i>[Thukri] </i>+ o &gt; ^jktwo <i>[Thukrio].</i></p><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">3.2 Noun</doubt><p>Noun is simpler in terms of inflected token forma­tion. Zero or more inflections are applied to noun stem to form the token. Nouns are inflected based on number (singular, plural), article and case [ka-<i>raka] </i>(nominative, accusative, instrumental, dative, ablative, genitive, locative and vocative). Unlike verbs, stems are not affected when inflections are applied. The inflections applicable to noun is a dif­ferent set than verb and the number of such inflec­tions also less in count than that of verb.</p><p><u>Example</u>: ^ftSrwi <i>[baarhiTaarai] </i>&lt; ^rft <i>[baarhi] </i>(stem) + St [Taa] (inflection representing article) + w [ra] (inflection representing genitive case) + i [i] (inflection representing emphasis), stt^'^w <i>[maanushhaguloke] </i>&lt; ^r^j" <i>[maanushha] </i>(stem) + ^rr [gulo] (inflection representing plural number) + [ke] (inflection representing accusative case) etc.</p><subsection number="3.3" title="Pronoun"><p>Pronoun is almost similar to noun. However, there are some pronoun specific inflections, which are not applicable to noun. These inflections represent location, time, amount, similarity etc.</p><page local="3" global="61"/><p><u>Example</u>: mr <i>[sethaa] &lt; </i><b>pt </b><i>[se] </i>(stem) + «rr <i>[thaa] </i>(inflection representing location). This inflection is not applicable to nouns.</p><p>Moreover, unlike noun, a pronoun stem may have one or more post-inflection forms.</p><p><u>Example</u>: stem srrfSr <i>[aami] </i>becomes sm <i>[aamaa] </i>(strw &lt; sim + w) or wr [mo] (wrcr??" &lt; <i>m </i>+ fts) once inflected.</p></subsection><subsection number="3.4" title="Other Parts of Speeches"><p>Other POSs in Bengali behave like noun in their inflected forms albeit the number of applicable inflections is much less comparing to that of noun.</p><p><u>Example</u>:   erfem   <i>[shreshhThatama]   &lt; </i>er&amp; <i>[shreshhTha] </i>(adjective stem) + «m [tama] (inflec­tion representing superlative degree), mm <i>[madhye] </i><i>&lt;</i><i> </i><i>mm</i><i> [madhya] </i>(post-position stem)  + to [e] (inflection) etc.</p></subsection></section><section number="4" title="Design 4.1 Context"><p>As we identified in the previous section, the impact of inflections on stem are different for different POSs. Also the applicable list of inflections varies a lot among the POSs. Hence, if the system is POS aware, it will be able to generate more accurate result. This can be achieved by sending POS tagged text to the stemmer system, which will ap­ply POS specific rules to discover stems. This proposition is quite viable as statistical POS tag­gers like TnT (Brants, 2000) are available.</p><p>The context of the proposed system is provided below:</p><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">I t</doubt><p><b>Plain Text Stemmed Text</b></p><p>To discover the rules, we took the help of the seminal work by Chatterji (1939). For this work we limited our study within traditional and stan­dard colloquial styles (dialects) of Bengali. For each of the POSs, we prepared the list of applica­ble inflections considering these dialects only. We studied these inflections and inflected tokens and framed the rules inspired by the work of Porter (1981). We had following observations:</p><p>1. To find out the stem, we need to replace the inflection with empty string in the word token. Hence all rules will take the following form:</p><doubt alpha="55.6" length="18" tooSmall="False" monospace="0.0">&lt;inflection&gt; -- ""</doubt><p>2. For rules related to verbs, the conditionals are present but they are dependent on the o-syllables instead of 'm' measure, as defined and described in Porter (1981).</p><p>3. For pronouns the inflection may change the form of the stems. The change does not follow any rule. However, the number of such changes is small enough to handle on individual basis instead of formalizing it through rules.</p><p>4. A set of verb stems, which are called <i>incom­plete verbs, </i>take a completely different form than the stem. Such verbs are very limited in number. Examples: [Jaa] (<b>p</b>ttr" <i>[gelaam] </i>etc. are valid tokens for this verb), sis (eTW <i>[elaam] </i>etc. are valid tokens), spf <i>[aachh_] </i>(strstr' <i>[thaakalaam], </i>ftr <i>[chhila] </i>etc. are valid tokens) 5. For non-verb POSs, there is no conditional.</p><p>6. Multiple inflections can be applied to a token.</p><p>7. The inflections may suggest mutually contra­dictory results. As for example token prfT <i>[kheli] </i>can be derived by applying two legitimate inflec­tions It [li] and to [i] on two different stems [khaa] and m <i>[khel_] </i>respectively. Finding out the correct stem can be tricky.</p><p>8. Because of contradictory rules and morpho­logical similarities in different stems there will be ambiguities.</p><subsection number="4.3" title="Analysis and Design Decisions"><p>Based on the observations above we further ana­lyzed and crafted a few design decisions, which are documented below:</p><p><b>POS Group Specific Inflection Sets: </b>It is ob­served that multiple POSs behave similarly while forming inflected word tokens. We decided to group them together and keep a set of inflections for each such group. By separating out inflection sets, we are minimizing the ambiguity.</p><p>We identified following inflection sets based on the tagset developed by IIIT Hyderabad for Indic languages. The tags not mentioned in the table be­low do not have any inflected forms. Size indicates the number of inflections found for that set.</p><table caption="Figure 1: Context of Proposed Stemmer4.2    Inflection Rule Observations" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>f &gt;</i></p></td><td class="cell"><p><b>Tagged Text</b></p><p>-►</p></td><td class="cell"><p>r ï</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>POS Tagger</b></p></td><td class="cell"><p><b>Stemmer</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="4" global="68"/><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Class</doubt><p><b><u>Identification Characteristics</u>_</b> syllable is 's'. Example: sS^r, mpr <i><u>[dham kaa] </u></i><u>etc.</u>_</p><table caption="Table 2: POS Groups"></table><p><b>Pronoun - Post-inflection vs. Actual Stem Map: </b>For pronoun we decided to keep a map of post-inflection stems and actual stems. After in­flection stripping, this map will be consulted to discover the stem. Since number of pronouns in Bengali is limited in number, this approach will provide the most effective and performance friendly mechanism.</p><p><b>Verb - Morphological Rules: </b>Based on obser­vation 2, we further studied the verb POS and iden­tified four classes of stems that exhibits own char­acteristics of morphological changes when inflec­tions are applied. These classes can be identified for a stem o based on the following two meas­ures:</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">n</doubt><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">n= |o| andX=^cj</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">j=2</doubt><p>where <i>c</i><i>j </i>is the number of consonants in j-th o-syllable of the stem.</p><p><b><u>Class   Identification Characteristics</u>_</b></p><p>I If <i>n </i>= 1. Example:    [khaa], itt [de] etc.</p><p>II If <i>n </i>&gt; 1 and the n-th o-syllable has <i>halant </i>as diacritic mark. Only this class of verb stems can have <i>halant </i>at the last o_ <u>syllable.</u><u> Example: </u><u>^r, ffof </u><i><u>[shikh_] </u></i><u>etc.</u></p><doubt alpha="62.8" length="78" tooSmall="False" monospace="0.0">HI | Ifn&gt; 1, X = 1 and vowel of the n-th o-syllable is's'.Example:wr, fw[shik-</doubt><p>_<u>, haa], </u><u>it</u><u>T</u><u>tst </u><i><u>[dourhaa] </u></i><u>etc.</u>_</p><doubt alpha="51.1" length="45" tooSmall="False" monospace="0.0">IV      Ifn&gt; 1, X &gt; 1 and vowel of then-th o-</doubt><table caption="Table 3: Verb Stem Classes"></table><p>Since the verb inflections may affect the stems by changing the vowels of first and last o-syllable, a rule related to verb inflection is presented as a 5-tuple:</p><doubt alpha="66.7" length="12" tooSmall="False" monospace="0.0">(LbR1,LnRni)</doubt><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">where</doubt><p>• <i>L1 </i>is the vowel of the first o-syllable of post-inflection stem</p><p>• <i>R1 </i>is the vowel of the first o-syllable of ac­tual stem</p><p>• <i>Ln </i>is the vowel of the last (n-th) o-syllable of post-inflection stem</p><p>• <i>Rn </i>is the vowel of the last (n-th) o-syllable of actual stem</p><p><i>• i </i>is the inflection</p><p>The vowels are always presented in their inde­pendent form instead of <i>maatraa. </i>This is because, we are going to apply these rules in the context of o-syllables, which can deterministically identify, which form a vowel should take. However, for in­flection, we decided to differentiate between de­pendent and independent forms of vowel to mini­mize the ambiguity.</p><p>As for example, for the token ^k^o, inflection is o, post-inflection stem is £k?r, and the actual stem is tirkwr. Hence the rule for this class IV verb will be (U, o, i, s, o).</p><p>Absence of an element of the 5-tuple rule is rep­resented by '0'. Example: for token m?t <i>[kheye], </i>which is derived from stem vr, a class I verb stem; the rule will be (e, s, 0, 0, w).</p><p>After completion of analysis, we captured 731 such rules. The distribution was 261, 103, 345 and 22 for class I, II, III &amp; IV combined and IV respec­tively.</p><p><b>Map for Incomplete Verbs: </b>For incomplete verbs, we decided to maintain a map. This data structure will relate the tokens to an imaginary to­ken, which can be generated from the stem using a 5-tuple rule. Taking the example of token wim, which is an inflected form of stem ^r, will be mapped to fttr" [Jelaam], which can be generated by applying rule (e, s, 0, 0, Trm). The system will consult this map for each input verb token. If it is found, it will imply that the token is an incom­plete verb.<page local="5" global="69"/> The corresponding imaginary token will be retrieved to be processed by rules.</p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>In</p></td><td class="cell"><p>The inflection set for noun group. It covers NN, NNP, NVB, NNC and NNPC tags.</p></td><td class="cell"><p>40</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Ip</p></td><td class="cell"><p>The inflection set for pronoun group. It covers PRP and QW tags. This is a superset of IN.</p></td><td class="cell"><p>54</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Iv</p></td><td class="cell"><p>The inflection set for verb group. It covers VFM, VAUX, VJJ, VRB and VNN tags.</p></td><td class="cell"><p>184</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Ij</p></td><td class="cell"><p>The inflection set for adjective group. It covers JJ, JVB, QF and QFNUM tags.</p></td><td class="cell"><p>14</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Ir</p></td><td class="cell"><p>The inflection set for adverb, post­position, conjunction and noun-location POSs. It covers RB, RBVB, PREP, NLOC and CC tags.</p></td><td class="cell"><p>6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p><b>Recursive Stem Discovery Process: </b>Since mul­tiple inflections can be applied to a token, we de­cided to use a stack and a recursive process to dis­cover the inflections and the possible stems for a token. However, we do special processing for verb tokens, which cannot have more than two inflec­tions attached at a time and require extra morpho­logical rule processing.</p><p><b>Ranking: </b>Since there will be ambiguity, we de­cided to capture all candidate stems discovered and rank them. The client of the system will be ex­pected to pick up the highest ranked stem.</p><p>Our observation was - stems discovered by stripping a lengthier inflection are more likely to be correct. We decided to include the o-syllabic length of the inflection as a contributing factor in rank calculation.</p><p>Additionally, for verb stems, the nature of the 5-tuple rule will play a role. There is a degree of strictness associated with these rules. The strict­ness is defined by the number of non-0 elements in the 5-tuple. The stricter the rule, chances are more that the derived stem is accurate.</p><p>Taking an example - token tvt?r <i>[kheye] </i>can be derived from two rules: vr [khaa] + t?r <i>[ye] </i>is de­rived from (e, s, 0, 0, t?r) and vr?r [khaay_]+ to [e] is derived from (0, 0, 0, 0, to). Since rule (e, s, 0, 0, t?r) is stricter, vr should be the correct stem, and that matches with our knowledge also.</p><p>Let t be a token and o is one of the candidate stem derived from inflection CG.</p><p>For non-verb cases the rank of o will be:</p><p>For verb, the strictness of the rule that generated o has to be considered. Let that rule be</p><p>The strictness can be measured as the number of non-0 elements in the 5-tuple. Element <i>i </i>always demands an exact match. Moreover, <i>(L</i><i>1, </i><i>R</i><i>1) </i>and <i>(Ln, Rn) </i>always come in pair. Hence the strictness Sp of rule p   can be calculated as</p><doubt alpha="26.3" length="19" tooSmall="False" monospace="0.0">[1,  if L1=   Ln= 0</doubt><doubt alpha="47.1" length="17" tooSmall="False" monospace="0.0">2, ifL1^ 0andLn=0</doubt><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">2,ifL1=0andLn^0</doubt><doubt alpha="47.1" length="17" tooSmall="False" monospace="0.0">3, ifL1^ 0andLn^0</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">sp</doubt><p>Hence for verb stems the rank of o will be:</p><p><b>Overchanged Verb Stems and Compensation:</b></p><p>Because of the rule strictness ranking some verb stems might be <i>overchanged. </i>As for example, to­ken ta^rrrrsr <i>[bhejaalaam] </i>is an inflected form of stem cssrr [bhejaa]. This is a class III stem. There are two relevant rules p1 = (0, 0, 0, 0, tw) and p2= (e, i, 0, 0, Trm) which identifies the candidate stems cssrr and ftsrr <i>[bhijaa] </i>respectively. Since the p2 has higher strictness, ftsrr will rank better, which is wrong.</p><p>This type of situation only happens if the ap­plied rule satisfies following condition:</p><p>(L1, R1) X ((i, e), (e, i), (U, 3), (3, U)). This effect comes because the verbs with first vowel of these pairs at first o-syllable exhibits morphologically similar behaviour with such verbs for the last vowel of the pair once inflected.</p><p>Prvr and cssrr are example of such behaviour. With inflection Trm, both of them produce similar morphological structure (mrrr" <i>[shekhaalaam] </i>and tasrrTpr) even though their morphology is different at their actual stem.</p><p>To compensate that, we decided to include a stem to the result set without changing the first o-syllable, with same calculated rank, once such rule is encountered. Going back to example of csstttr, even though we identified ftsrr as the stem with highest rank, since p2 satisfies the above condition, cssrr will be included with same rank as compensa­tion.</p><p><b>Dictionary: </b>To reduce ambiguity further, we decided to introduce a stem dictionary, which will be compared with potential stems. If a match found, the rank of that stem will be increased with a higher degree, so that they can take precedence.</p><p>Bengali word can have more than one correct spelling. As for example, <i>[jan_ma] </i>and <i>sn</i><i> [janma] </i>are both correct. Similarly, siSr <i>[garjaa] </i>and srasrr <i>[garjaa], </i>^r^r <i>[bar shhaa] </i>and ^fr <i>[bar-shhaa] </i>etc.</p><p>To take care of the above problem, instead of exact match in the dictionary, we decided to intro­duce a quantitative match measure, so that some tolerance threshold can be adopted during the search in the dictionary.</p><p>Edit-distance measure (Levenshtein, 1966) was a natural choice for this. However direct usage of this algorithm may not be useful because of the following.<page local="6" global="70"/> For any edit operation the cost is always calculated 1 in edit-distance algorithm. This may mislead while calculating the edit-distance of a pair of Bengali tokens. As for example: The edit-distance for (^rtr, 5T?ptt) and (^ptt, ^ptf <i>[barshaa]) </i>pairs are same, which is 1. However, intuitively we know that ^r^r should be closer to ^ptt than ^rtr.</p><p>To address the above problem we propose that the edit cost for diacritic marks, <i>halant </i>and de­pendent vowel marks should be less than that of consonants or independent vowels. Similarly, edit cost for diacritic marks and <i>halant </i>should be less than that of dependent vowel marks.</p><p>Formally, let VO, CO, VS and DC be the set of vowels, consonants, dependent vowel signs and diacritic marks (including <i>halant) </i>in Bengali al­phabet.</p><p>We define the insertion cost Ci and deletion cost Cd of character y as:</p><p>We also define the substitution cost Cs of char­acter y1 by character y2 as:</p><doubt alpha="50.0" length="50" tooSmall="False" monospace="0.0">C(yY)= |0, if=Y2&gt;s1,2[Min(Ci(y1&gt;,Ct(y2&gt;&gt;,otherwise</doubt><p>We refer this modified distance measure as <i>weighted edit-distance </i>(WED) hereafter.</p><p>Going back to the previous example, the WED between ^rtr and ^rtr is 1 and between ^rtr and ^rrrr is 0.25. This result matches our expectation.</p><p>We proposed that the discovered stems will be compared against the dictionary items. If the WED is below the threshold value 9, we enhance the previous rank value of that stem.</p><doubt alpha="65.2" length="89" tooSmall="False" monospace="0.0">Let D = (w1, w2, ... wM&gt; be the dictionary of size M. Let us definerafor stem o as below:</doubt><doubt alpha="41.7" length="12" tooSmall="False" monospace="0.0">C(Y&gt; =Cd(y&gt;:</doubt><doubt alpha="48.0" length="25" tooSmall="False" monospace="0.0">--Min(9, Min(WED((T,wk&gt;&gt;&gt;</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">k=1</doubt><p>The modified rank of o is:</p><doubt alpha="30.0" length="10" tooSmall="False" monospace="0.0">\w\ + Sp+-</doubt><p>if <i>a </i>is verb , otherwise</p><doubt alpha="0.0" length="6" tooSmall="False" monospace="0.0">100(6-</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">e r&gt;</doubt><p>The match score is raised by a factor of 100 to emphasise the dictionary match and dampen the previous contributing ranking factors, which are typically in the range between 0 - 20.</p></subsection></section><section number="5" title="System Architecture"><p>The proposed system structure is provided below using Architecture Description Standard notation (Youngs et. al., 1999):</p><figure caption="Figure 2: Stemmer Architecture The components of the system are briefly de­scribed below:"></figure><p><b>Stemn</b>im<b>gEngine: </b>It receives a tagged token and produces a set of candidate stems with their assigned ranks and associated inflection.</p><p><b>OrthosyllableHandler: </b>This component is re­sponsible for converting a token into o-syllables and vice-versa. It also allows calculating the WED between two Bengali tokens.</p><p><b>InflectionTracker: </b>While discovering the in­flections recursively, this stack will help the Stemming Engine to keep track of the inflections discovered till now.</p><p><b>InflectionSets: </b>Contains the POS group specific inflection sets (IN, IP, IV, Ij and IR&gt;.</p><p><b>PostinflectionPronouns: </b>A map of post-inflection pronoun stems against their correspond­ing actual stem form.</p><p><b>VerbRules: </b>A table of 5-tuple verb rules along with their verb stem class association.</p><p><b>IncompleteVerbs: </b>A map of incomplete verb tokens against their formal imaginary forms.</p><p><b>Lexicon: </b>The dictionary where a discovered stem will be searched for rank enhancement.</p><p>As presented, the above design is heavily de­pendent on persisted rules, rather than hard-coded logic.<page local="7" global="71"/> This will bring in configurability and adaptability to the system for easily accommodat­ing other dialects to be considered in future.</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">e</doubt><doubt alpha="55.9" length="34" tooSmall="False" monospace="0.0">f1, if(yeCO)or(ye VO)0.5, if(yeVS&gt;</doubt><doubt alpha="55.6" length="27" tooSmall="False" monospace="0.0">0.25, if(yeDC&gt; 0, otherwise</doubt><doubt alpha="37.5" length="8" tooSmall="False" monospace="0.0">00{e-ra&gt;</doubt><p>The high level algorithm to be used by the <i>Stem-mingEngine </i>is provided below:</p><p><b>global </b><i>stems;</i></p><p><b><i>Stem</i></b><i>(token, pos&gt; </i>{ Search( <i>token, pos); </i><b>return </b><i>stems;</i> <b>Search(</b><i>token, pos) </i>{</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">}</doubt><p><b>if </b><i>(pos </i>is verb and <i>token % IncompleteVerbs) token — IncompleteVerbs[token];</i></p><p><b>for </b><i>(i</i><i> </i>= 1; <i>i</i><i> </i>&lt; token.length; i++&gt; { <i>candidate — </i>first <i>i </i>characters of <i>token; inflection — </i>remaining characters of <i>token;</i></p><p><b>if </b><i>(inflection w InflectionSets) </i><b>continue;</b></p><p><b>if </b><i>(pos </i>is verb) { <b>if </b><i>(inflection </i>is representing emphasis or negation) { <i>InflectionTracker.push(inflection); </i>Search( <i>candidate, pos); InflectionTracker.pop(inflection);</i> <i>class — </i>verb stem class of <i>candidate;</i> <b>for each </b>matching rule <i>R </i>in <i>VerbRules </i>for <i>candidate </i>and <i>class </i>{ modify <i>candidate </i>by applying <i>R;</i> <i>a — inflection </i>+ inflections in <i>InflectionTracker;</i> <i>r — </i>rank of the candidate based on <i>\inflection\,</i> strictness of <i>R </i>and match in <i>Lexicon;</i></p><p>Add <i>candidate, a </i>and <i>r </i>to <i>stems;</i></p><p><b>if </b>(R is an overchanging rule) Modify <i>candidate </i>by compensation logic; Add <i>candidate, a </i>and <i>r </i>to <i>stems; </i>} // for each } // if pos is verb <b>else </b>{ <b>if </b><i>(pos </i>is pronoun and <i>candidate % Postinflection Pronouns) </i>{ <i>candidate — PostinflectionPronouns[candidate];</i> <i>r — </i>rank of the candidate based on <i>\inflection\</i> and match in <i>Lexicon;</i></p><p><b>if </b><i>(inflection </i>!= ""&gt; { <i>_<u>InflectionTracker.push(inflection);</u>_</i></p><p>Search( <i>candidate, pos); InflectionTracker.pop(inflection);</i></p><doubt alpha="38.9" length="18" tooSmall="False" monospace="0.0">} // else } // for</doubt></section><section number="6" title="Evaluation"><p>Based on the above mentioned approach and de­sign, we developed a system using C#, XML and .NET Framework 2.0. We conducted the fol­lowing experiment on it.</p><p>The goal of our experiment was to calculate the level of accuracy the proposed stemmer system can achieve. Since the system can suggest more than one stems, we sorted the suggested stems based on ranking in descending order and picked up the first (s'i&gt; and the next (s''i&gt; stems. We compared these stems against truthed data and calculated the accu­racy measures A' and A'' as below:</p><p>Let T = (t1, t2, ... tN&gt; be the set of tokens in a cor­pus of size N, S = (01, 02, ... On) be the set of truthed stems for those tokens. Let s'i and s''i be the best and second-best stems suggested by the pro­posed stemmer system for token ti. Then we define</p><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">A'</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">i=1</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">N</doubt><doubt alpha="50.0" length="14" tooSmall="False" monospace="0.0">, wheref \i&gt;■■</doubt><doubt alpha="41.7" length="12" tooSmall="False" monospace="0.0">\\, ifa= s'i</doubt></section><section number="1" title="0, otherwise"><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">and</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">If"(0</doubt><doubt alpha="53.8" length="13" tooSmall="False" monospace="0.0">, wheref"(i&gt;:</doubt><doubt alpha="56.7" length="30" tooSmall="False" monospace="0.0">[1, ifae(s'i,s"i)10, otherwise</doubt><p>A' and A'' will be closer to 1 as the system accu­racy increases.</p><p>Initially we ran it for three classic short stories by Rabindranath Tagore<footnote anchor="1"/>. Since the proposed sys­tem accuracy will also depend upon the accuracy of the POS tagger and the dictionary coverage, to rule these factors out we manually identified the POS of the test corpus to emulate a 100% accurate POS tagger and used an empty dictionary. Apart from calculating the individual accuracies, we also calculated overall accuracy by considering the three stories as a single corpus:</p><p>?ijWf( tow <i>[i'ndurer bhoj], </i>iwtts^ <i>[denaapaaonaa], </i>and fOWRiipTfT      ©r <i>[raamakaanaaiyer nirbuddhitaa] </i>respectively<page local="8" global="72"/></p><p>As shown above, while A'' is very good, A' is also quite satisfactory. We could not compare this result with other similar Bengali stemmer systems due to unavailability. The closest stemmer system we found is the Hindi stemmer by Ramanathan et. al. (2003). It did not use a POS tagger and was run on a different corpus. The recorded accuracy of that stemmer was 0.815.</p><p>To check whether we can further improve on A', we introduced lexicon of 352 verb stems, ran it on the above three pieces with 9 = 0.6 to tolerate only the changes in <i>maatraa </i>and diacritic mark. We calculated A' for verbs tokens only with and without lexicon scenarios. We received the follow­ing result:</p><figure caption="Figure 3: Comparison of Accuracies with and without Verb Lexicon"></figure><p>Above graph suggests that a lexicon can im­prove the accuracy significantly.</p></section><section number="7" title="Conclusion"><p>This paper proposed a system and algorithm for stripping inflection suffixes from Bengali word tokens based on a rule-based approach. The con­ducted experiments produced encouraging results.</p><p>Currently, our work is limited to the traditional and standard colloquial dialects of Bengali. Future works can be carried out to include other dialects by including more inflections in the respective data structure of this system.</p><p>The system suggests a set of ranked stems for a word token. The client of this system is expected to choose the highest ranked stem. This can be mis­leading for some of the cases where tokens derived from different stems share low or zero edit-distance among each other. As for example, when the verb token prfT can be derived from both and m, the system will suggest *rr over m.</p><p>This problem can be addressed by taking hints from word sense disambiguation (WSD&gt; compo­nent as an input. Further studies can be devoted towards this idea. Moreover, a blend of rule-based and statistical approaches may be explored in fu­ture to improve the resultant accuracy of the stem­mer.</p><p>While input from POS tagger helped to achieve a good performance of this system, it is yet to be studied how the system will perform without a POS tagger.</p><table caption="Table 4: Accuracies for Short Stories by Tagore" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Corpus</b></p></td><td class="cell"><p><b>N</b></p></td><td class="cell"><p><b>A'</b></p></td><td class="cell"><p><b>A''</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RT1</p></td><td class="cell"><p>519</p></td><td class="cell"><p>0.888</p></td><td class="cell"><p>0.988</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RT2</p></td><td class="cell"><p>1865</p></td><td class="cell"><p>0.904</p></td><td class="cell"><p>0.987</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RT3</p></td><td class="cell"><p>1416</p></td><td class="cell"><p>0.903</p></td><td class="cell"><p>0.999</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Overall</p></td><td class="cell"><p>3800</p></td><td class="cell"><p>0.902</p></td><td class="cell"><p>0.992</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table></section><references><p>S. Chatterji. 1939. <i>Bhasha-prakash Bangla Vyakaran. </i>Rupa &amp; Co. New Delhi, India</p><p>M. F. Porter. 1980. <i>An algorithm for suffix stripping. </i>Program 14(3&gt;:130-137.</p><p>U. Garain and A. K. Datta. 2005. <i>An Approach for Stemming in Symbolically Compressed Indian Lan­guage Imaged Documents. </i>Proceedings of the 2005 Eight International Conference on Document Analy­sis and Recognition (ICDAR'05). IEEE Computer Society</p><p>P. Majumder, M. Mitra, S. Parui, G. Kole, P. Mitra, and K. Datta. 2006. <i>YASS: Yet Another Suffix Stripper. </i>ACM Transactions on Information Systems.</p><p>T. Brants . 2000. <i>TnT: a statistical part-of-speech tag­ger. </i>Proceedings of the sixth conference on Applied natural language processing: 224-231. Morgan Kauf­mann Publishers Inc. San Francisco, CA, USA</p><p>V. I. Levenshtein. 1966. <i>Binary codes capable of cor­recting deletion, insertions and reversals. </i>Cybernet­ics and Control Theory, 10:707-710.</p><p>R. Youngs, D. Redmond-Pyle, P. Spaas, and E. Kahan. 1999. <i>A standard for architecture description. </i>IBM System Journal 38(1).</p><p>A. Ramanathan and D. D. Rao. 2003. <i>A lightweight stemmer for hindi. </i>In Proc. Workshop of Computa­tional Linguistics for South Asian Languages -Expanding Synergies with Europe, EACL-2003: 42­48. Budapest, Hungary.</p></references></body></article>