
146 The International Arab Journal of Information Technology, Vol. 12, No. 2, March 2015 Template Based Affix Stemmer for a Morphologically Rich Language Sajjad Khan 1, Waqas Anwar 1,2 , Usama Bajwa 1 and Xuan Wang 2 1Department of Computer Science, COMSATS Institute of Information Technology, Pakistan 2Harbin Institute of Technology Shenzhen Graduate School, China Abstract: Word stemming is one of the most significant factors that affect the performance of a Natural Language Processing (NLP) application such as Information Retrieval (IR) system, part of speech tagging, machine translation system and syntactic parsing. Urdu language raises several challenges to NLP largely due to its rich morphology. In Urdu language, stemming process is different as compared to that for other languages, as it not only depends on removing prefixes and suffixes but also on removing infixes. In this paper, we introduce a template based stemmer that eliminates all kinds of affixes i.e., prefixes, infixes and suffixes, depending on the morphological pattern of the word. The presented results are excellent and this stemmer can prove to be very affective for a morphologically rich language. Keywords: IR, stemming, prefix, infix, suffix, exception lists. Received October 19, 2012; accepted January 20, 2013; published online April 23, 2014 1. Introduction both the query and the database are returned to the clients. This occurs when a match is present between For many researchers Human Computer Interaction the information items and the queries. (HCI) is a significant field of interest. Natural To get a match between these two elements, the Language Processing (NLP) is one of the core research items should be represented in some form, both in the areas that support HCI. documents as well as in the query. Variations of a Urdu NLP is one of the new research areas being word present in a document prevent an exact match explored since recent past. Urdu is an Indo-Aryan between a query word and the relevant document language. The word “Urdu” itself comes from a words. To overcome this issue, the replacement of the Turkish word “ordu”, meaning “tent” or “army”. words with their relevant stems should be performed. Therefore, Urdu is some times called “Lashkari Zaban” The stem is that portion of a word, which is left or “The Language of the Army”. It is the national after affixes truncation (prefixes, suffixes and infixes). language of Pakistan and is one of the twenty-three A usual example of a stem can be the word “mix” official languages of India. It is written in Perso-Arabic which is the stem for the variants “mixture”, “mixed” script. The Urdu’s vocabulary consists of several and “mixable”. Stemmer is an algorithm that reduces languages including Arabic, Turkish, Sanskrit and Farsi the word to their stem/ root form. Similarly, the Urdu (Persian). stemmer should stem the words (Presence), Urdu’s script is right-to-left and form of a word’s (The audience), (Absent) to Urdu character is context sensitive, means the form of a stem word (Present). character is dissimilar in a word because of the location Stemming is part of a complex process which of that character in the word (beginning, centre and on consists of taking out the words from text and turning the ending). them into index terms in an IR system. Indexing is the Information Retrieval (IR) system is used to make process of selecting keywords for representing a easy access to stored information. It also, deals with the document. The essential part of any IR system for text saving, representation and organization of information searching is the capability to correctly recognize the objects. Modules of an IR system consist of a group of variant word forms that take place ranging from information objects, a group of requests and a method grammatical variations to alternative spellings of the to decide which information items are most possibly to words in the query of user. Normally such variants are meet the requirements of the requests. Principally, covered by means of right-hand truncation or through customers of information shape their information needs stemming. The truncation is performed by the user, in the form of queries and forward them to the IR who eliminates letters from the right hand side of the system. Depending upon a query, the system yields word to make it look like a possible root; the search information items that are supposed to be related to the then retrieves all words that begin with this root, query. In other words, the objects that are common in despite their endings. On the other hand, Stemming is Template Based Affix Stemmer for a Morphologically Rich Language 147 carried out automatically by decreasing every word compile and compute are both stemmed to comp. having identical root to common form, usually by The under-stemming arises when words that are eliminating derivational and inflectional suffixes. definitely morphological variants are not conflated Urdu is a morphologically complex language. It uses e.g., compile being stemmed to comp and both types of morphologies, i.e., derivational and compiling to compil. inflectional. Therefore, depending on the • Suffix Substitution : Is the improved version of morphological complexity of a language, both suffix stripping. A number of rules are developed derivational and inflectional morphologies can result in for specific suffixes in which a suffix will replaces a vast numbers of variants for a single word. with some other suffix e.g., the suffix “ies” is Accordingly, word form variations can have a strong replaced with “y”. Suppose a word “families”, with impact on the efficiency of an IR system and on the help of suffix substitution we can change this morphological analysis tools. word to “family”. The stemmer is also applicable to other NLP • Lemmatization Algorithm : Is a different method of applications needing morphological analysis, for finding the stem of a word. This method first finds example, document compression, spell checkers, text out the part of speech of a word and then on each analysis, word frequency count studies, word parsing part of speech, normalization rules are applied. etc., after analyzing different stemmers, we have According to these rules stemming is performed. noticed that most of the stemmers are based on the • Stochastic Algorithm : Uses probability to discover truncation of prefixes and suffixes to get stem without the root form of a word. The algorithm is trained to dealing with the infixes. In Urdu language, applying a develop a probabilistic model. The model consists light weight stemmer on a word having infix produces of complex linguistic rules. The word is inputted to wrong stem by applying prefix and suffix stripping. the trained model and then by using its internal Therefore, this study handles those words that contain linguistic rules, the root form of a word is infixes by using different templates. generated. The rest of the paper organization is as follows: In • Hybrid Approaches : Use a number of approaches section 2 different stemming approaches are discussed, for stemming e.g., using suffix-stripping technique in section 3 characteristics of Urdu language are along with suffix substitution technique. discussed, section 4 discusses the proposed urdu • Affix Approaches : Remove prefix and suffix from a stemmer and finally the results of the stemmer are word to get a stem word e.g., “unnoted” is a word discussed in section 5. in which “un” is a prefix and “d” is a suffix. • N-gram Analysis : Is another technique, which is 2. Related Work used for stemming. The word “gram” is a unit of measurement of text that may refer to a single There are different approaches used for stemming. character or a single word. The series of two grams Some of the approaches are explained below: is called bigram and series of three grams is called • Table Lookup Method [16]: Is also, known as brute trigram. This technique uses a table of bigram and force method, where every word and its respective trigram words to find the stem of a word. stem are stored in table. The stemmer finds the stem • Iteration and Longest Match Algorithms : Are used of the input word in the respective stem table. This for stemming purpose. In the iteration method there process is very fast, but it has severe disadvantage is an order for classes for suffixes. The last order i.e., large memory space required for words and their class, which happens at the end of the word, stems and the difficulties in creating such tables. contains suffixes. Iteration algorithms use recursive This kind of stemming algorithm might not be procedure. This approach removes the string in practical. order class, starts from the endings and then shifts • Suffix Stripping Algorithms : Do not just depend on a towards the beginning. In the longest match lookup table that contains inflected forms and their principle here ending of the word is matched with stem form. As an alternative, a list can also be the list of suffixes. If more than one ending offers a maintained that contains “rules” which provide a match then the longest match should be removed path of execution for the algorithm, given an input e.g., if there are two suffixes “ies” and “es” will be word, to get its stem form. For example, if the word there then “ies” will be removed [16]. ends in “ing”, then eliminate the “ing”. If the word Lovins [8] published the first English stemmer and ends in “es”, remove the “es”. Suffix stripping used about 260 rules for stemming the English approach only removes the suffixes from a word and language. The author suggested a stemmer consisting it is much simpler to maintain.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages9 Page
-
File Size-