Open Source Corpus Analysis Tools for Malay
Paper · 2006 · Timothy Baldwin and Su'ad Awab
Summary
To study how a Malay expression varies across a collection of texts, a researcher needs to recognize its words even when they appear in different forms. The researcher also needs to know where sentences begin and end. Baldwin and Awab develop an open-source toolkit for those tasks, with partial grammatical tagging as a further aid. Their starting point is a practical imbalance. Dictionaries and linguistic descriptions can exist for a language whose researchers still lack software for preparing a text collection for analysis. The paper asks how much of that software can be built by adapting an existing tool and reusing lexical information.
For tokenization, the process of dividing text into units, the authors adapt a rule-based tool from the RASP system for English. Malay and English share enough punctuation and capitalization conventions for much of the procedure to carry over. The main adaptation is a Malay abbreviation list, which helps the tool decide when a period belongs to an abbreviation and when it marks a sentence ending. For lemmatization, the task of finding a word’s base form, the authors build a new program around entries from the KAMI bilingual lexicon and rules for Malay morphology. A word can admit several analyses, so the program explores alternative sequences of affix removal and ranks them using lexical evidence and grammatical constraints. It can also return candidate tags for part-of-speech tagging, the assignment of categories such as noun or verb.
On a manually annotated, mixed-domain sample of ∼26K words from the authors’ Malay newspaper corpus, sentence boundary detection achieves an F-score of 99.4%. Lemmatization accuracy on the same sample is 94.5% over individual word occurrences and 85.0% over distinct written forms. That distinction matters for corpus research because success on often recurring words can coexist with difficulty across the vocabulary. The authors report separate processing times for tokenizing the full corpus and for lemmatizing it with tags.
The strongest evidence concerns sentence boundaries and base forms in the newspaper sample. The tagging component is partial, can leave multiple parts of speech unresolved, and has no reported accuracy result. The paper’s contribution is a working route from existing resources to usable Malay corpus tools, with an evaluation that shows which parts of that route received direct testing.
Deep dive: Open Source Corpus Analysis Tools for Malay
Baldwin and Awab build open-source tools for splitting Malay text into words and sentences, finding base forms, and assigning partial grammatical tags. · about 31 minutes to read
The problem and its context
What the corpus study required
The project began with an interest in multiword expressions in Malay. The authors wanted to find these expressions in running text and investigate how much their grammatical form could vary. Those are related tasks with different demands. Finding an expression requires recognizing occurrences that might look different on the page. Investigating its flexibility requires keeping enough information about each occurrence to compare the form it takes, the sentence in which it appears, and, where possible, the grammatical categories of its words.
A search for a single spelling gives a narrow view of an expression whose words take different forms. A verb can acquire an affix, and adding that affix can also change the spelling of the stem. A search defined solely by the base form can therefore miss a word that belongs to the expression under study. Using a lemma, the base form under which related occurrences can be grouped, gives the researcher another way to look for them. The written occurrence is still useful when the question concerns which morphological variant was used. The connection between the two is what makes the comparison possible.
Sentence boundaries matter because the authors wanted to confine the search to contexts inside a sentence. A pair of words can be close together in the stream of text while belonging to different sentences. A concordance, which displays occurrences of a word or expression with their surrounding text, can also use the sentence as a boundary for what it shows. The same segmentation decision thus influences what counts as a possible occurrence and what context the researcher sees when inspecting it.
Grammatical categories supply a further condition for analysis. A surface spelling or a base form can be compatible with more than one category, and a researcher studying how an expression varies may care which use is present in a particular sentence. This was the motivation for a tagger. The later decision to emit partial grammatical information follows from the resources available to build the toolkit. It leaves a distinction between what the original research question called for and what the resulting software could establish about an individual occurrence.
These needs place the paper in corpus linguistics, the study of language through collections of texts. The paper evaluates the tools that prepare the collection. A sentence boundary score measures how closely an automatic division follows a human judgment. A lemma score measures how often the base form agrees with an annotation. The intended study of multiword expressions explains why the authors chose those operations and how their outputs would be used together.
A collection of texts and a means to analyze it
The authors describe Malay as having >200m speakers and limited text-processing support at the time of the work. Their survey distinguishes resources that record information about a language from programs that apply such information to running text. A dictionary can tell a reader which base form or grammatical category is associated with an entry. To use that information throughout a corpus, a program still has to divide the text into units, recognize entries where possible, and deal with forms the dictionary cannot supply directly. The paper’s reuse strategy starts with that distinction.
The authors identify existing sources of Malay text with different constraints. The Dewan Bahasa & Pustaka corpus contains 114m word tokens and includes material as varied as modern literature and textbooks, but the authors describe it as unavailable to the public. The Malay Concordance Project offers 3m words of classical text. That material serves a different period from the modern Malay that the authors wanted to examine. Access and the variety of language represented both mattered to the choice of corpus.
The authors therefore assembled their own collection from newspaper text on the web. They had gathered slightly over 1m words from material published from 2000 through 2005. The collection included content they describe as legal, technical, and informal. A newspaper corpus could consequently contain more than one kind of language use while remaining a particular source of written Malay. This distinction matters to the evaluation because the annotated sample came from that collection.
Character encoding and punctuation provide one opportunity for reuse. The paper describes Malay as sufficiently close to English in these respects for concordance software originally intended for English to be applicable. The similarities also motivate adapting an English tool for sentence segmentation. Abbreviations introduce a language-specific requirement within that broadly shared writing convention. The same printed mark can appear in both languages, yet the strings that usually precede it in an abbreviation can differ.
Lexical information offers a different kind of reuse. A bilingual dictionary built for another application can provide written forms, their lemmas, and grammatical labels. Those entries can support decisions about individual words, and the available vocabulary can help the program judge analyses created by its rules. A descriptive account of Malay word formation supplies the complementary information about how an observed spelling might have been produced. The authors combine these sources because a corpus contains forms that a finite list may leave out, particularly in a language where affixes combine productively.
The alternatives available to the authors
The paper describes earlier work on sentence segmentation in terms of how a system decides whether a period marks a boundary. A rule-based approach can use conventions about punctuation and a list of frequent abbreviations. A supervised approach learns from examples whose boundaries have already been marked. An unsupervised approach derives distinctions without those manually supplied boundary labels. These are different ways to obtain the evidence for deciding what the same punctuation mark means in context.
The rule-based example is RASP, cited through Robust Accurate Statistical Annotation of General Text. The supervised example is A Maximum Entropy Approach to Identifying Sentence Boundaries. The authors also cite unsupervised work by Schmid on resolving the role of periods. They select the rule-based option because of its reported success for English, the shortage of annotated Malay material with which to develop a supervised classifier, and their interest in obtaining a working system quickly. The existing similarity in writing conventions gives that choice a concrete basis.
For lemmatization, the paper describes earlier efforts on Malay as limited and concerned with particular features of the language’s morphology. The authors wanted a tool with broad enough coverage for ordinary corpus work. Their example is a family of forms associated with kena, expressing the sense of hitting or being on target. It includes such forms as berkenaan, mengenai, kena-mengena, and pengenaan. The point of giving a family is to show why recognition can require substantially more than looking up an unchanged sequence of letters. The family contains different affixes, altered beginnings, and a hyphenated form.
For grammatical tagging, the authors report that they had neither a tagged Malay corpus nor a publicly accessible tagger to draw on. The resources they could actually use gave them grammatical labels for entries in a lexicon and a basis for constraining particular morphological rules. Those labels help narrow an analysis, but they supply a different kind of evidence from sentences in which the right label for each occurrence has been recorded. A dictionary can license a noun and a verb reading for a spelling even though a particular occurrence requires a choice.
The response to these different starting conditions is to adapt the sentence tool and write a new lemmatizer. The authors describe an open-source release under the GNU Lesser General Public License. The software serves a specific research purpose, but the paper treats that release as making the tools available for broader Malay linguistic and computational work. Its design reflects what was already present in an executable form, what could be taken from lexical resources, and what required new rules.
The method, step by step
From running text to units of analysis
The tokenizer first makes the divisions in running text explicit. It regularizes whitespace and separates punctuation from neighboring words where appropriate. The sentence operation then marks starts using a caret. The paper illustrates the intended output with a passage about television programming. The punctuation is spaced off from the surrounding text, sentence starts receive markers, and forms such as In E-News and Lain-lain retain their internal hyphens in the example. It also illustrates a final sentence that comes without a terminal period in the input and has one in the ideal output.
A word token is an occurrence in the processed text. The same written form can occur more than once, and each occurrence supplies a separate token. A sentence boundary is a division between stretches of those tokens. This distinction explains why separating a comma from a word and recognizing the end of a sentence are separate aspects of the same module. The punctuation itself can become an explicit item in the text while the boundary expresses how the surrounding items are grouped.
Periods create the main ambiguity discussed in the paper. A period in an abbreviation is attached to a shortened form. At the end of a sentence, a period instead provides evidence for a division in the stream of words. The trouble is that these uses have the same appearance at the level of a single character. Deciding between them requires information about the text around the mark, including whether the preceding string resembles an abbreviation the rules already recognize.
The tokenizer carries over the rule-based approach from RASP and changes the inventory of abbreviations for Malay. The list includes entries such as Abd., Mohd., Bhd., and Sdn.. Membership in such a list supplies evidence that a period belongs to the abbreviated form. The paper calls this a stop word list in the specific context of deciding whether to stop a sentence at a period. Its purpose here concerns the interpretation of punctuation. It is part of the decision procedure used while retaining the words for analysis.
The authors implement the tokenizer as a command-line program in flex. They develop it on Linux and describe compilation and use on Mac OS X and in the CygWin environment for Windows. In the architecture of the toolkit, its output makes the units available for later processing. The location of a sentence start can be used to restrict a concordance or expression search, while the individual word forms become inputs to lexical and morphological analysis.
From raw Malay text to lemmas and tags
The steps in order.
Why Malay word formation needs several kinds of evidence
The lemmatizer has to account for the difference between a word form, the spelling encountered in the text, and the base form that the analysis proposes. The paper describes Malay as agglutinative and emphasizes its productive use of affixes. In a form such as diperbanyakannya, material appears on either side of the base banyak. The paper decomposes the word into di-, per-, banyak, -kan, and -nya. An analysis that removed only one element could still be some distance from the intended lemma. The example gives a linguistic reason for a program to consider sequences of operations rather than treating a single rewrite as the whole analysis.
Reversing affixation can also require reconstructing the stem spelling. In the authors’ example, the prefix me- combines with paksa, which concerns forcing, to produce memaksa. The base begins with a letter that is absent at the corresponding place in the derived form. Discarding a leading string is therefore insufficient as a general description of the rules. A rule can remove the affix and make a change to the remaining string to recover a candidate stem.
The paper distinguishes prefixes and suffixes from infixes, which appear within a form. It gives geletar, gemilang, and gerigis as examples involving infixation. The authors describe infixation as unproductive and note that lexicographers generally record the resulting forms separately. This difference between productive variation and established lexical forms is relevant to the design. A reusable rule has value when many entries can be understood through the same operation. A stored entry can represent a form whose treatment depends on lexical knowledge.
Reduplication introduces a separate set of patterns. A whole base can recur, as in kuda-kuda, whose meaning is a trestle, from kuda, a horse. The two parts can also differ, as in lauk-pauk, meaning a variety of dishes. The partially reduplicated kekura has the base kura in the authors’ account, with both meaning tortoise. These examples give an indication of why repetition cannot always be analyzed as the same complete string appearing on either side of a hyphen. They also illustrate why the decision to relate a word to a base can coexist with a need to know the meaning or conventional status of the full word.
Compounding adds another reason to handle written boundaries with care. The authors give adat-istiadat, referring to customs and traditions. It consists of the elements adat and istiadat, but counts as a single word token in their discussion. They also describe compounds that are written without a hyphen. The orthographic appearance of a word thus gives only part of the evidence about its internal structure. The paper discusses compounds because a search for conventional multiword combinations has reason to take such forms seriously, even when the tokenizer treats the result as one item.
These descriptions motivate different parts of the lemmatizer’s design. Productive affixation motivates a search over possible removals and stem restorations. Reduplication has its own place in the ranking of analyses. A conventional full spelling can receive direct support from the lexicon. The paper gives most of the operational detail for the affix rules and their interaction with lexical entries. The broader morphological discussion explains the scope of the problem for which that procedure was built.
Preparing the lexical lists
The authors use a CD edition of the monolingual dictionary Kamus Dewan Edisi Ketiga in preparing the lemmatizer. The implemented lists draw on KAMI, a bilingual lexical resource originally built for machine translation. KAMI contains roughly 68K written forms. Its entries can include a basic grammatical category, translations into English and Chinese, and a lemma. The relevant parts for this toolkit are the associations among written forms, parts of speech, and base forms.
The authors extract entries for simplex words, forms treated as single lexical units for this purpose. They group them by whether KAMI supplies a lemma as well as a part of speech. An entry in the first list contains the observed form, its category, and its base. An entry in the other list contains the form and its category. The distinction determines how much a direct lookup can say. A listed base can be returned from the lexical record. With a category alone, a lookup-based analysis treats the listed word itself as the lemma.
The researchers revise and expand these lists using a development sample from their corpus. After that work, the list with lemmas and categories contains ∼14K words, and the list with categories alone contains ∼31K words. These figures concern the prepared lists used by the lemmatizer. KAMI’s approximately 68K forms describe the larger source resource, whose entries have varying kinds of information. The list sizes record what the authors selected and prepared for these specific operations.
Lexical evidence serves at more than one point in the decision. The original form may have an explicit record furnishing its analysis. A form produced by the rules may also occur in the lexicon, with or without the part of speech predicted for it. Direct lookup answers what the lexical data say about the input as written. Looking up a proposed ending point of an affix-removal path answers whether the base form has support. Both uses help a finite collection of entries contribute to the analysis of forms beyond the entries themselves.
The training and data preparation in this system are primarily resource construction. The authors start with an existing tokenizer and give it a Malay abbreviation list. They import lexical records, correct and supplement them on development data, and use descriptive knowledge of the language in rules that propose stems. The ranking is specified as ordered preferences. The manually annotated sample used for evaluation supplies the reference decisions against which the resulting outputs are assessed.
Generating and checking analyses
Roughly 40 regular expressions that overlap form the heart of the lemmatizer. A regular expression is a pattern that identifies strings with particular arrangements of characters. Here each rule is designed around a type of affix. It matches an input form, removes the relevant material, and makes any stem-spelling adjustment associated with that interpretation. The procedure can continue from the result, so an input with several affixes can generate a path with successive rewrites.
The authors illustrate overlap using menarik. One applicable rule yields tarik as a candidate base, while another yields narik. Both interpret the beginning as involving me-, but the restorations differ. The presence of two outputs is deliberate. A pattern that fits the surface letters can admit more than one explanation, and selecting one immediately would remove the other from consideration in subsequent steps. The system retains both possibilities long enough to inspect the evidence carried by the paths they produce.
A rule can impose grammatical conditions on the form it takes as input and on the form it produces. For the alternatives in the menarik example, the input and output must be verbs. A path carries the category constraints introduced as its rules are applied. If a subsequent step demands a category incompatible with the constraints already present, the program discards that path. In this sense, every step is checked against the accumulated grammatical interpretation. A string change that is possible in isolation may therefore disappear from the search when it cannot follow the earlier changes coherently.
The program manages this process with an agenda, a collection of intermediate outputs and the constraints associated with them. When a rule produces a new form, the form is stored with the information needed to continue analyzing it. A later rule can then operate on a particular candidate with that history still represented. The authors describe the result as a lattice. It represents alternative routes through the possible removals and records the grammatical commitments of each route.
Keeping the route matters because the program eventually chooses an analysis with both a spelling and a category. Two sequences of rewrites can arrive at the same letters and still produce different grammatical information. Similarly, similar paths can lead to different strings after a competing restoration, as in the example. The lattice separates the question of which analyses survive the linguistic checks from the question of which surviving analysis is preferred. The program can therefore apply a rule wherever it is licensed and decide how much to trust its result at a later stage.
Selection takes account of whether the proposed base occurs in KAMI and whether the predicted category is recorded for it. It also considers the final predicted category, the character length of the proposed lemma, and whether the original form has a lexical entry with a matching lemma. These pieces of evidence concern different positions in the analysis. Some describe the form before any rules apply. Others describe the point reached at the end of a path. The ranking combines them using procedural heuristics.
Choosing a base form and returning grammatical information
The strongest preference is for a lexical entry that explicitly provides a part of speech and a lemma for the input. The next preference is for a listed function word. The authors use that category in a practical sense to cover words outside nouns, verbs, and adjectives. A dictionary can directly settle the analysis of such words in many cases, and the ordering gives that evidence priority over reconstructing a stem.
Next comes an analysis in which the word is reduplicated and the proposed lemma occurs in KAMI. This preference asks for both a morphological pattern and lexical support for the resulting base. It is followed by an analysis that yields a verb through affix removal. A direct lexical entry for a content word comes after the derived verb preference. The final preference given in the paper is an analysis that yields a noun or an adjective through affix removal.
That middle part of the ordering is worth reading closely. An explicit dictionary lemma has the highest priority. A direct listing as a content word with less information has a lower priority than a rule-derived verb. The procedure distinguishes a lexical entry that specifies the relationship between the observed form and its lemma from one that chiefly supplies evidence about the existence and category of the written form. It also gives different weight to different grammatical results of affix removal. A rule-derived verb and a rule-derived noun do not enter at the same point in the ordering.
When a lexical preference determines the output, the program takes the lemma and tag from the lexical data. An entry without a recorded lemma is treated as its own base. For a preference based on affix removal, the final rule supplies the resulting base and grammatical category. The output is therefore traceable either to an entry or to the result of a sequence of transformations, depending on the selected analysis.
If the preferences leave multiple paths, the program favors a candidate whose resulting lemma has the smallest character count. If length leaves a tie, a pseudorandom mechanism can choose among the remaining possibilities. The length preference concerns the written base, not a count of rule applications. A shorter output can arise from a particular restoration, so the characters in the proposed lemma are the quantity that matters at this stage. The pseudorandom choice supplies a way to return a result when the earlier evidence fails to decide among tied paths.
Grammatical ambiguity can remain even when the program has settled on a base spelling. The same form or lemma can have several associated parts of speech, and the authors leave that ambiguity unresolved in the version they describe. Consequently, a tag output can express the categories compatible with an analysis without establishing the category of the word in its sentence. This is the sense in which tagging is partial. The paper describes lexical and rule-based category information plus constraints on its propagation through a path, with contextual disambiguation left open.
The lemmatizer is written in Perl and runs from the command line. The separate implementations let the article distinguish the sources of the tokenizer’s behavior from those of the lemmatizer. The tokenizer depends on punctuation conventions and an abbreviation inventory. The later program depends on the prepared lists, the set of morphological rewrites, the checks on grammatical compatibility, and the ranking of surviving outputs. The paper specifies these operations through patterns and ordered rules.
Experiments and results
Evaluation material and reference decisions
The evaluation uses a ∼26K word sample from the authors’ newspaper corpus. The paper describes the sample used for lemmatization as mixed-domain and identifies it as the same sample used for sentence boundary evaluation. Both experiments therefore concern written Malay from the same collection. They require different kinds of linguistic annotation, the practice of adding explicit linguistic judgments to text. The sentence experiment needs human decisions about where sentences divide. The lemma experiment needs a human-assigned base form against which to check an automatically produced one.
The hand decisions form the reference for each score. For sentence boundaries, the authors manually resolve the ambiguity about where the divisions occur, then compare the tokenizer’s decisions with that analysis. For lemmatization, they use hand-annotated gold-standard data, meaning the base forms treated as the correct answers for scoring. The word sample describes the size of the text being examined. The units scored in the boundary experiment are instances of sentence segmentation, while the lemma experiment scores assignments to words.
The paper also describes a development dataset used for correcting and extending the lexical lists. The evaluation account identifies the ∼26K word sample for both reported accuracy experiments but gives no sizes or overlap details for the development and evaluation portions. The evidence supports reading the reported results as agreement with manual decisions on the named sample. The details needed to characterize a fully documented split are left unspecified.
There is no side-by-side evaluation of the adapted tokenizer against the original English configuration, another Malay tokenizer, or a simple rule that treats periods uniformly. The reference boundary decisions serve as the standard of correctness. In the lemmatization study, the authors report KAMI’s direct coverage of their corpus as background for the task. That coverage gives context about which spellings can be found in the source resource, while the lemma evaluation checks whether a specific predicted base is correct.
Sentence boundaries
The sentence tokenizer achieves an F-score of 99.4% on the manually analyzed ∼26K word sample. An F-score combines precision and recall. In this task precision concerns how many of the boundaries proposed by the tokenizer correspond to annotated boundaries. Recall concerns how many annotated boundaries the tokenizer finds. The combined score therefore reflects both introducing a division in the wrong place and missing a division that should have been marked.
The paper gives the combined figure for sentence segmentation. It leaves the separate precision and recall values and the counts behind them unspecified. The combined result indicates close agreement on the sample, but there is insufficient detail to determine which type of error was more common. There is also no breakdown by punctuation environment or by abbreviation. The score evaluates the boundary procedure as a whole, including the adaptations the authors made.
Word tokenization is a separate output of the tokenizer. It involves spacing and punctuation decisions such as keeping a word’s internal hyphen where appropriate. The evaluated result concerns sentence boundaries. A reader looking for accuracy in how every individual word and punctuation token is divided will find an illustrative input and output and a description of the procedure, with no separate word boundary score.
The authors also time tokenization on the full 1M word corpus. It takes around 29 seconds on a 1.7GHz Pentium M processor. This is a measurement of processing the larger collection, whereas the F-score uses the annotated sample. The conditions named with the runtime establish the scale of the job and the hardware on which it was performed. The paper gives a time for the tokenizer as a module, without attributing a share of that time to any individual punctuation or sentence rule.
Lexical coverage and lemmatization accuracy
The authors first report how much of their Malay corpus is covered by the raw KAMI lexicon. At the token level, coverage is 83.7%. This is coverage over running words, so a form contributes each time it appears. At the type level, coverage is 31.4%. A type is a distinct written form, so repeated appearances of the same spelling count as one type. Both figures describe whether forms occur in the unmodified lexical resource. They reflect very different views of what it means for a dictionary to cover a corpus.
The distinction helps explain the task the lemmatizer faces. A dictionary entry for a frequent written form can account for many tokens even though it corresponds to only one type. A large number of types can be missing while the dictionary still recognizes many of the forms that readers encounter most often. The raw coverage figures therefore matter both for processing continuous text and for work that seeks a range of distinct morphological variants.
On the annotated ∼26K word sample, the full lemmatizer reaches 94.5% accuracy at the token level. The unit behind that figure is an individual occurrence, and correctness means agreement with the annotated lemma. The reported accuracy at the type level is 85.0% over distinct written forms. The chart places the same metric together at its two counting levels. Its star identifies the higher reported result for the authors’ lemmatizer.
Lemmatization accuracy by counting unit on the annotated Malay newspaper sample
Accuracy is higher when measured over occurrences than over distinct written forms.
The numbers
| System or setting | accuracy % |
|---|---|
| Distinct written forms | 85.0 |
| Individual word occurrences (this paper) | 94.5 |
These are evaluations of the same system. Changing the unit changes the influence of recurring written forms on the result. Token accuracy describes how frequently a word occurrence gets the reference lemma when the toolkit is run over that text. Type accuracy describes how widely that success extends across different spellings. A reader interested in finding variable forms of an expression has a reason to consult the type result. A reader interested in the overall proportion of correctly analyzed occurrences has a reason to consult the token result.
The raw coverage and lemma accuracy figures provide complementary views. In the coverage measurement, the event of interest is finding the original written form in KAMI. In the accuracy measurement, the event is assigning the reference lemma, whether a lexical entry or a sequence of rules supplies it. The reported corpus scope also differs. The coverage figures describe the authors’ Malay corpus and the accuracy figures describe the manually annotated sample. The paper gives no accuracy for a KAMI-only lemmatizer on those same annotation decisions, so it leaves the improvement over that possible baseline unmeasured.
The authors report a runtime of around 32 seconds to lemmatize and tag the full 1M word corpus on a 1.7GHz Pentium M processor. That figure covers both producing lemmas and emitting the partial tag information. It is a separate measurement from the tokenizer runtime, for a different operation over the collection. The report does not break out the cost of dictionary access, generating alternate paths, or comparing the results of those paths.
The evidence for part-of-speech tagging
The authors provide no accuracy result for the tags. They give two reasons. They lacked gold-standard labels for evaluating the output, and the tool frequently gives several grammatical categories for a form. Those are related evaluation problems. A reference would make it possible to check whether the intended category was among the candidates. A different scoring decision would be needed to assess a system asked to commit to the correct single category in context.
The lemmatization score cannot answer either tagging question because a correct base spelling can accompany unresolved categories. The authors’ example of grammatical ambiguity explains why choosing a morphology path does not necessarily determine a tag. The toolkit offers evidence about possible categories through the lexicon and the affix rules, but the reported empirical agreement for the lemma pertains to the base form. The timing includes tag generation, and the accuracy evaluation has a narrower scope.
What the ablations show
The paper reports no ablations or controlled component comparisons, and its analyses instead offer lexical coverage at different counting levels, lemmatization scores at those levels, and examples of competing morphological paths.
What changes when a form is counted once
The most informative quantitative comparison about the vocabulary is between tokens and types. Raw KAMI coverage is higher when repeated occurrences contribute separately than when each written form contributes once. That pattern shows why a frequent-word lookup can be useful in a running corpus even with substantial gaps across distinct spellings. It also shows why coverage as a single token statistic would give an incomplete account of the challenge the authors set for themselves.
The lemma accuracy figures show the same ordering of counting levels after the full toolkit is applied. These results establish that accuracy on the sample depends on how the written forms are weighted. They give no allocation of correct and incorrect answers by frequency band, individual affix, or part of speech. In particular, the paper does not count how many test forms missing from the lexicon are recovered by morphology. Reading the token and type results together gives a more complete description of the outcome while leaving the source of individual successes open.
Coverage and correctness also describe different stages of the work. A full-form lookup may provide an explicit lemma, a category alone, or no entry. A rule-derived output can receive support from a listed base. In the published figures, these routes are combined within the final system score. The reader can see how the authors intended lexical and morphological evidence to complement each other, but the paper has no separate result for the words that reached a correct answer through one particular route.
What the path examples explain
The menarik example explains why rules are allowed to overlap. If two interpretations fit a spelling, a single fixed rule order at the point of matching could discard an interpretation before the program checks the results. Generating tarik and narik lets the program keep both candidate spellings and carry their verb constraints through the search. The example supplies a concrete account of where ambiguity arises and what information is available to resolve it.
The distinction between rule compatibility and final preference also clarifies the roles of the filters. Compatibility rules decide whether the sequence of grammatical requirements can be satisfied. The final preferences compare the analyses that survive, using the original lexical record, the proposed base, and the category produced. The character length criterion and pseudorandom tie resolution come into play after earlier criteria have left a choice. These descriptions explain the mechanism and the intended order of decisions. They give no test-set counts of paths rejected, path lengths, or cases decided by a late tie-break.
The abbreviation list is another case where the paper explains a mechanism and reports a result for the full configuration. Adapting the list has a clear purpose because an incorrectly interpreted period can split a sentence in the wrong place. The reported boundary score incorporates the Malay list along with the inherited rules. No comparison shows what would happen with the original list or with the abbreviation evidence disabled. The experiment consequently establishes the observed performance of the bundle of decisions used for this sample.
The same standard applies to the ranking’s preference for rule-derived verbs relative to some lexical and rule-derived alternatives. The ordering is specified, so a reader can reason about which candidate would win when categories and sources of evidence disagree. There is no reranking experiment that shows whether moving a preference would improve or reduce accuracy. The paper explains the design well enough to show what its decisions mean and tests the resulting procedure as a whole.
Limitations
Limits the authors state
The clearest limitation the authors identify is the lack of an evaluation for the partial tagger. They explain that gold-standard grammatical tags were unavailable and that the software frequently returns ambiguous categories. The described implementation leaves those cases unresolved. Its grammatical constraints can exclude incompatible sequences of affix rules, but the final output can still leave open the part of speech of a word in its sentence. This narrows the conclusions that can be drawn even though the tool already supplies grammatical information.
The resource survey gives the historical conditions under which the tools were built. A large existing Malay corpus was inaccessible to the authors for their intended public use, and the classical material they discuss was limited for a study of modern usage. They address the immediate problem by collecting modern newspaper text. The paper’s choice of corpus is thus tied to its research question and to the resources that could be obtained. Its evidence comes from that material.
The authors also make the unresolved decisions in the lemmatizer visible. When their heuristic ranking reaches a tie, they prefer the shortest written base and then use a pseudorandom choice if needed. They point out that a decision about the spelling can leave the part of speech ambiguous. The paper establishes that these mechanisms are part of the system and tells the reader where they can operate. It does not report how often the lower-priority decisions were invoked or how often competing candidates would have agreed with the annotation.
Limits of the evaluation setup
The paper supports a conclusion about the annotated sample drawn from the newspaper corpus. The same collection supplies the vocabulary context, the mixed-domain sample, and the full-corpus runtime conditions. The evaluation includes no separately collected corpus. Accordingly, there is no empirical basis here for assigning the same accuracy to other periods of Malay, other sources, or collections with different punctuation and vocabulary distributions. The fact that the sample includes mixed subject matter makes it varied within its source and leaves performance beyond that source to be established separately.
The amount of detail about annotation also sets a limit. The paper says that people disambiguated the sentence boundaries and supplied the reference lemmas. It gives no measures of agreement between annotators or breakdown of how ambiguous cases were adjudicated. Such details would matter especially for forms whose relationship to a base can be treated differently by a lexical description or an individual analysis. The reported scores measure agreement against the reference the authors used, and the paper does not quantify uncertainty in that reference.
For sentence segmentation, the F-score provides a compact measurement of the boundary procedure. Separate measures of precision and recall, numbers of boundary decisions, and examples of observed errors are absent. As a consequence, the paper gives little evidence about whether remaining errors cluster around abbreviations, other uses of periods, or some different punctuation context. It also leaves word segmentation without its own metric. Accuracy in assigning a punctuation token to the correct units and accuracy in locating sentence divisions would answer related but distinct questions.
The lemma evaluation reports aggregate results for token occurrences and distinct forms. Neither result shows how accuracy varies among forms with several affixes, among reduplicated words, or among compounds. The language description demonstrates the existence of those phenomena, and the method describes specific ways of dealing with affixes and of preferring a reduplication analysis. The empirical results give no class-by-class account of how much of each phenomenon the tool handles. A broad score on a mixed sample can include many simple cases alongside the complex examples that motivated the design.
The sample description also leaves details about development and evaluation unspecified. Because the authors corrected and added lexical entries using corpus development data, the relation between that material and the annotated evaluation sample is relevant to interpreting how the system behaves on unfamiliar text. The paper identifies the development data’s function and the evaluation sample’s size. It gives no description of their overlap or a breakdown for forms encountered during development and forms first encountered in evaluation.
Comparative claims have a further limit. The tokenizer was adapted from RASP, but the experiment contains no original-configuration score on the same sample. The lemmatizer uses KAMI and affix rules together, but the paper gives no lemma accuracy for either source of evidence by itself. Direct coverage of KAMI describes the availability of entries and supplies a motivation for morphological analysis. It cannot determine how many correct decisions the rules contributed beyond direct lookup. The full-system scores establish performance under the authors’ chosen configuration.
The runtime measurements indicate how the programs performed on a specified corpus and processor. The paper supplies no timing breakdowns, measurements across different corpus sizes, or comparison with other implementations under shared conditions. Its strongest efficiency claim is therefore local to the two reported jobs. The stated times show that the authors processed their full collection on the named hardware. They leave resource use and scaling under other conditions open.
Finally, the original multiword-expression study supplies a purpose for the toolkit, while the experiments evaluate preparatory operations. The paper offers no end-to-end result for extracting expressions or determining how flexible particular expressions are. A correctly detected sentence boundary and a correct base form are relevant inputs to those tasks. Their measured accuracy does not tell the reader how much an expression inventory changes, which expressions become easier to find, or what effect unresolved tags have on a study of syntactic variation.
What came after
The paper closes by making the software available for public use under the GNU Lesser General Public License and describing its intended value for Malay corpus research. Its concrete output is a tokenizer, a lemmatizer, and partial grammatical tagging that can be applied to a text collection. The release establishes that the tools were offered for use beyond the authors’ own study.
There are no documented later studies to trace how that release was used or how the approach was extended. The paper establishes the authors’ adaptation of English boundary rules, their combination of Malay lexical records with morphology rules, and the results on their own corpus. Subsequent adoption, comparisons on other corpora, and extensions to contextual tagging remain outside the documented record.
Cite
Cite as Timothy Baldwin and Su'ad Awab. 2006. Open Source Corpus Analysis Tools for Malay. Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06).
@inproceedings{baldwin2006open,
title = {{Open Source Corpus Analysis Tools for Malay}},
author = {Timothy Baldwin and Su'ad Awab},
booktitle = {Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06)},
year = {2006},
url = {https://aclanthology.org/L06-1421/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/baldwin-2006-open-source-corpus-analysis-tools/