Lemmatization Technique in Bahasa: Indonesian Language

Lemmatization Technique in Bahasa: Indonesian Language

1202 JOURNAL OF SOFTWARE, VOL. 9, NO. 5, MAY 2014 Lemmatization Technique in Bahasa: Indonesian Language Derwin Suhartono Computer Science Department, Bina Nusantara University, Jakarta, Indonesia Email: [email protected] David Christiandy and Rolando Computer Science Department, Bina Nusantara University, Jakarta, Indonesia Email: [email protected], [email protected] Abstract—many researches and inventions have been made language to a standard, canonical representation (known in the field of linguistics and technology. Even so, the as stem) [5]. Indonesian stemming methods use root word integration between linguistics and technology is not always as its stem; which means that mostly they are dictionary reliable to all language. Every language is unique in its dependant. This characteristic is also that of linguistic nature and rules. In this paper, a lemmatization technique in Bahasa (Indonesian language) is presented. It lemmatization; because every headword in the dictionary has achieved good precision by using The Indonesian is a lemma. Dictionary and a set of rules to remove affixes. The The lemmatization process may be different, according lemmatization technique is developed based on the previous to the nature of the language. Indonesian is a algorithm, Indonesian stemmer. Both Indonesian stemming morphologically complex language [9] where almost and lemmatization method have the same characteristics every word can be inflected with affixes. but a little bit different in its implementation. The way to Instead of finding the root word, we believe that reach its own goal/purpose is defined as a core difference finding the lemma from a given word form will give and therefore possible to modify. The result shows that the better precision in semantic, i.e. the meaning of the algorithm achieved roughly 98% precision on a collection consisting 57,261 valid words with 7,839 unique valid words sentence [8], and more fitting for NLP applications such gathered from Kompas.com, an Indonesian online news as morphological analysis and language translation. There article. are lemmas that consist of more than one word; i.e. a phrase. This plays an important part when analyzing Index Terms—stemmer, algorithm, lemmatization, language, sentences; for example given an Indonesian sentence Bahasa, Indonesian “saya harus mempertanggungjawabkannya” (literally means: I have to be responsible for it), the result is expected to be three lemmas {saya, harus, tanggung I. INTRODUCTION jawab}. The lemma tanggung jawab is considered as one; Issues about information retrieval occur in many they share the same part of speech. different fields. Its implementation can be found in term Based on that background, the objective of this paper is of image, text, video, etc. Majority of a document to present a lemmatization method for Bahasa, based on consists of text rather than image, video and so on. That Bahasa stemmer which uses Indonesian dictionary and a is why the way how to manage text or document is set of rules to remove inflections. becoming more important. A document consists of words in which most of them II. RELATED WORKS do not use the base word/dictionary entry. It is caused by The latest development of Bahasa stemmer was the adaptation according to the sentence intention. Enhanced Confix-Stripping Stemmer [3]. This stemmer Lemmatization is the process of finding the base was an improvement of the work initiated by Nazief and word/dictionary entry (lemma) from a word form [6]. In Adriani and improved further by Asian and Nazief. [4], the same definition is also stated. The process is Below is the algorithm of Confix-Stripping Stemmer [2] aimed at normalizing the input according to the partner in a detailed explanation : associations of the form based on its own lemma [7]. So 1. The input is first checked against the dictionary. far, no attempt has been made to develop a lemmatization If the input exists in dictionary, then the input method for Bahasa. Instead, stemming, which is will be returned as result lemma. considered similar to lemmatization has gained more 2. Inflectional particle suffixes (-kah, -lah, -tah, - attention in its development for Indonesian. pun) will be removed from the current input, and From all the published journals related to this topic, the remains will be kept inside a string variable, only stemming methods have been developed for Bahasa. checked against the dictionary. If exists, then Stemming aims to reduce the numbers of variation from a process terminates. © 2014 ACADEMY PUBLISHER doi:10.4304/jsw.9.5.1202-1209 JOURNAL OF SOFTWARE, VOL. 9, NO. 5, MAY 2014 1203 3. Inflectional possessive pronoun (-ku, -mu, -nya) TABLE 3. will be removed from the string variable, and PREFIX STRIPPING RULE FOR PE- checked against the dictionary. If exists, process Rule Construct Return terminates. 20 pe{w|y}V... pe-{w|y}V... 4. Derivational suffixes (-i, -kan, -an) will be 21 perV... per-V... | pe-rV... removed from the string variable, and checked 22 perCAP... per-CAP... where C!=’r’ and P!=’er’ against the dictionary. If exists, process 23 perCAerV... per-CaerV... where C!=’r’ terminates. 5. This step focuses on removing the derivational 24 pem{b|f|v}... pem-{b|f|v}... prefixes (beN-, di-, ke-, meN-, peN-, se-, teN-) 25 pem{rV|V}... pe-m{rV|V}... | pe-p{rV|V}... from the string variable. Notice the uppercase N 26 pen{c|d|j|z}... pen-{c|d|jz}... is a wildcard; it can be any alphabets (a-z). Step 27 penV... pe-nV... | pe-tV... 5 is recursive, because in Indonesian 28 peng{g|h|q}... peng-{g|h|q}... morphology derivational prefix can be stacked. Some prefixes (di-, ke-, se-) are considered 29 pengV... peng-V... | peng-kV... simple, because in practice they do not change 30 penyV... peny-sV... the lemma. On the other hand, the other prefixes 31 pelV... pe-lV... Except: “pelajar” return (beN-, meN-, peN-, teN-) do change the lemma, “ajar” and differs according to the first letter of the 32 peCP pe-CP... where C!={r|w|y|l|m|n} and lemma. These transformations and variants are P!=’er’ listed on the rule tables below. 33 peCerV per-CerV. .where C!={r|w|y|l|m|n} TABLE 1. TABLE 4. PREFIX STRIPPING RULE SET FOR BE- PREFIX STRIPPING RULE FOR ME- Rule Construct Return Rule Construct Return 1 berV... ber-V... | be-rV... 10 me{l|r|w|y}V... me-{l|r|w|y}V... 2 berCAP... ber-CAP... Where C!='r' and P!='er' 11 mem{b|f|v}... mem-{b|f|v}... 3 berCAerV... ber-CAerV... Where C!='r' 12 mempe{r|l} mem-pe... 4 belajar... bel-ajar... 13 mem{rV|V}... me-m{rV|V}... | me-p{rV|V}... 5 beC1erC2... be-C1erC2... Where C1!={'r' | 'l'} 14 men{c|d|j|z}... men-{c|d|j|z}... 15 menV... me-nV... | me-tV... TABLE 2. PREFIX STRIPPING RULE FOR TE- 16 meng{g|h|q|k}... meng-{g|h|q|k}... 17 mengV... meng-V... | meng-kV... Rule Construct Return 18 menyV... meny-sV... 6 terV... ter-V... | te-rV... 19 mempV... mem-pV... where V!=’e’ 7 terCerV... ter-cerV... Where C!='r' 8 terCP... ter-CP... Where C!='r' and P!='er' V stands for a vowel (a, i, u, e, o), C stands for consonant, A represents any alphabet character 9 teC1erC2... te-C1erC2... Where C1!='r' (a-z), and P represents a short fragment of words, such as ‘er’. There are several termination conditions for this step: a. The prefix and the removed suffix are listed in the invalid affix pair table below (Table 5). b. The removed prefix is literally equivalent to previously removed prefix. c. The recursive limit for this step is three. © 2014 ACADEMY PUBLISHER 1204 JOURNAL OF SOFTWARE, VOL. 9, NO. 5, MAY 2014 TABLE 5. • be- and -an DISALLOWED PREFIX AND SUFFIX PAIRS; • EXCEPT THE KE- AND -I AFFIX PAIR FOR THE ROOT WORD TAHU me- and -i • di- and -i • pe- and -i Prefix Disallowed Suffixes • ter- and -i ber- -i Compared against Nazief with the same dataset, the di- -an modified Nazief achieves around 2-3% higher accuracy which approximately is 95% [3] extended the Confix- ke- -i and –kan Stripping Stemmer by solving unhandled cases with me- -an specific prefix type (p. 151), listed below: mempromosikan ter- -an 1. “mem-p” as in , 2. “men-s” as in mensyukuri, per- -an 3. “menge-“ as in mengerem, 4. “penge-“ as in pengeboman, The removed prefix will be recorded, and the 5. “peng-k” as in pengkajian, string variable will be checked against the 6. Incorrect affix removal order, resulting in dictionary. If the string variable does not exist in unstemmed input. For example the word pelaku the dictionary and no termination condition is is overstemmed because of the “-ku” on the last satisfied, then step 5 will be repeated, with the part of the word is considered as an inflectional string variable as input. possessive pronoun suffix. Other example is the 6. If the string variable is still not found after Step word pelanggan, which is overstemmed because 5, then the rule tables will be examined whether the “-an” part on the last is considered as a recoding (p. 63) is possible. In the rule set, there derivational suffix. are several rules that hold more than one output. In order to solve the cases above, suggested two Take rule 17 for example; mengV has two improvements [3] : outputs: meng-V or meng-kV. In step 5, the first 1. Rules modification and addition to the rules output (i.e. left one) will always be picked first, table, in order to fit the specific unhandled cases and this can cause error.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    8 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us