---
title: "Automatic Corpus-Based Thai Word Extraction with the C4.5"
description: "How C4.5 learns to extract Thai words from unsegmented text, and how its precision and recall compare with a Thai dictionary."
canonical: "https://research.elamur.ai/free/en/papers/sornlertlamvanich-2000-automatic-corpus-based-thai-word/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/sornlertlamvanich-2000-automatic-corpus-based-thai-word/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2000](https://md.research.elamur.ai/free/en/papers/2000/) / Automatic Corpus-Based Thai Word Extraction with the C4.5 Learning Algorithm

# Automatic Corpus-Based Thai Word Extraction with the C4.5 Learning Algorithm

Paper · 2000 · Virach Sornlertlamvanich, Tanapong Potipiti and Thatsanee Charoenporn

**Authors:** Virach Sornlertlamvanich, Tanapong Potipiti and Thatsanee Charoenporn · **Year:** 2000 · **Venue:** COLING 2000 Volume 2: The 18th International Conference on Computational Linguistics · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

COLING 2000 Volume 2: The 18th International Conference on Computational Linguistics · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/C00-2116/)
- [PDF](https://aclanthology.org/C00-2116.pdf)

## Summary

Thai writing leaves readers to infer where words begin and end. That makes it difficult to build a dictionary directly from running text. A sequence of characters may be a word, a piece of a longer word, or a familiar combination whose status as a dictionary entry is open to judgment. The authors ask whether a computer can learn to identify acceptable entries from examples. Their procedure starts with unsegmented Thai articles and produces a list of candidate words. It addresses a related problem to word segmentation, which assigns boundaries throughout a passage, but its output is a vocabulary list. [Tokenization and segmentation](https://md.research.elamur.ai/free/en/topics/tokenization/)

The procedure collects recurring character strings and filters them by length, frequency, variation in neighboring characters, and simple spelling rules. People label the surviving strings as words or nonwords. The authors then use C4.5 to learn a decision tree from those labels. The tree can draw on evidence about how strongly a string’s outer characters associate with the rest of the string, how varied its surroundings are, how frequent and long it is, whether it contains a function word, and how often its opening and closing character pairs occur at the edges of dictionary entries.

In the training collection, 87.3% of the strings selected by the tree were judged to be words. In a separate test collection, precision was 84.1%. The tree retrieved 56.0% of the manually identified words among the training candidates and 56.1% among the test candidates. The Thai Royal Institute dictionary covered 62.5% and 58.1% of those same candidate words, respectively. Among the words correctly selected by the tree, 561 in training and 480 in testing were absent from the dictionary. The tree could therefore suggest entries that a lookup in that dictionary would miss, even though the dictionary covered a larger share of the manually labeled words in both collections.

The authors also report that extraction tended to be more accurate for often occurring strings and for longer ones. They propose applying the procedure to larger corpora to develop a Thai dictionary built from observed usage. Their experiments establish how well the tree classified candidates within the filters and labeling procedure they used. The expected gains from larger collections and the applicability to other languages remained open.

## Deep dive: Automatic Corpus-Based Thai Word Extraction with the C4.5 Learning Algorithm

How C4.5 learns to extract Thai words from unsegmented text, and how its precision and recall compare with a Thai dictionary. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Finding entries in a continuous stretch of writing

A word extractor needs to make a choice that is easy to overlook when the input already has spaces between its words. It must decide which continuous stretches of characters deserve to appear in its output. In the Thai text studied here, explicit word boundaries are unavailable. A reader can often make sense of a passage anyway, but preparing entries for a dictionary requires decisions about units that can be applied again when the same string appears elsewhere. The authors see the lack of consistent criteria for those decisions as a problem for downstream language processing. They name word segmentation, information retrieval, and machine translation among the activities affected. [Information retrieval and search](https://md.research.elamur.ai/free/en/topics/information-retrieval/) · [Machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/)

Even a reader who understands a phrase can be unsure how a dictionary ought to treat it. The paper illustrates this with a Thai expression meaning “exercise.” One speaker may accept the whole expression as a word. Another may analyze it through components the authors gloss as “take,” “power,” and “body.” The reader’s understanding of the activity leaves room for either judgment about the expression’s internal structure. A system trained against a list of accepted words needs the outcome of such judgments, since the frequency or spelling of the expression alone leaves its status unresolved.

The authors connect this difficulty to a familiar property of words. A word can be viewed as a stable expression whose parts remain together and offer little scope for rearrangement. Some sequences of words also occur together in a stable order and function as a single constituent. Their regularity makes them easy to find through repeated occurrences and hard to classify on that evidence alone. In an unsegmented text, a frequent sequence may correspond to an entry people want in their lexicon, or it may reflect a combination of independently useful units. This overlap gives the extractor a reason to consider how a sequence behaves at its edges as well as how frequently the sequence appears. [Idioms and multiword expressions](https://md.research.elamur.ai/free/en/topics/multiword-expressions/)

The practical difficulty is easiest to see by distinguishing the character string from its occurrences. A character string is the sequence under consideration. Its occurrences are the places in the corpus where that sequence appears. The authors want a decision about the string, and they use its occurrences to make that decision. A string can occur inside a longer expression, at what a human reader would regard as a word boundary, or in varied settings. The system collects evidence across these appearances without first requiring a boundary decision at each location. This is a corpus-based approach in the sense that repeated observations provide evidence about proposed entries. [Corpus linguistics](https://md.research.elamur.ai/free/en/concepts/corpus-linguistics/)

Word extraction and word segmentation consequently make different commitments. Consider the question posed by the exercise example. An extractor can place the whole expression on a list of accepted strings without specifying how a particular passage should be divided when it contains the expression. A segmentation procedure has to assign a division to that passage. Competing candidates can remain on an extraction list because classification is performed for each candidate string. The tree in this paper therefore learns whether an item on a candidate list looks like a word under the labeling procedure. A passage-wide choice among overlapping items falls outside that decision.

#### Why the authors wanted an alternative to dictionary lookup

The paper describes manually compiled dictionaries as a common source of word information in Thai language processing. For strings already listed, a dictionary makes their lexical status available to a program. Its limitation appears when the corpus contains a spelling or expression without an entry. A program that relies exclusively on membership has no means of accepting the missing string as a word. The authors regard incomplete coverage as a persistent difficulty when the source of entries is manual compilation and the texts to be processed can contain additional vocabulary.

This concern is compatible with using a dictionary as evidence. The paper takes the Thai Royal Institute dictionary seriously enough to use it in the method and in the evaluation. In the method, its entries supply examples of which character pairs can occur at the beginning and end of Thai words. In the evaluation, its contents define a lookup comparison for the same candidate vocabulary. These uses answer different questions. Edge spellings provide indirect evidence about a candidate, while the comparison asks whether the whole candidate is listed. A string can use familiar edge spellings and still be absent as a complete entry.

The authors also acknowledge reports of high accuracy for Thai segmentation based on dictionaries and heuristics. That earlier result addresses successful division of text, as opposed to the coverage of a list of entries. A procedure can take advantage of a useful dictionary when deciding boundaries and still face limitations when a word falls outside its vocabulary. In this paper, finding plausible additions to the vocabulary is itself a goal. The learning task therefore begins with a broader selection of strings taken from the text, then asks which of those merit acceptance.

This changes the role of human judgment. The annotators still decide which candidate strings count as words. Those judgments give C4.5 examples from which to generalize. For a future candidate, the tree can apply the same learned decision procedure even if a human has never directly considered that string. The desired regularity lies in using a consistent procedure over candidates. The exercise example remains a reminder that the class the tree learns ultimately depends on how people assigned the training labels. [Linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/)

#### What earlier extraction methods contributed

The earlier Thai extraction study the authors identify is the work of Sornlertlamvanich and Tanaka (1996). It used frequencies of sorted character sequences to find open compounds. An n-gram in this setting is a continuous sequence of characters of a specified length. By examining what happens to frequency as a sequence is extended, the earlier procedure could look for a substantial change in occurrence counts. A count that changes sharply on extension supplies evidence that the shorter sequence has a degree of independence from the characters around it. [N-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/)

The reported accuracy for Thai open-compound extraction was about 90%. That figure belongs to the earlier compound task. Its scope matters because the present paper sets up a broader classification of word candidates. The earlier procedure also restricted its search to 4-20 grams for computational reasons. The authors regard this restriction and the method’s computational demands as constraints on the size of corpora that could be used and the efficiency of extraction. What carries into their own approach is the idea that a sequence’s frequency and its relationships to neighboring characters can help identify lexical units.

The paper gives Japanese work a role in this history as well. Nagao and colleagues developed a sorted representation that made it easier to calculate n-gram statistics. The present authors describe its extraction output as containing many invalid substrings. The distinction between counting and judging a string is important here. An efficient way to retrieve frequencies helps make a broad search possible, while the resulting frequencies still need an interpretation that can separate plausible units from fragments.

Ikehara and colleagues improved the counting procedure by avoiding repeated counts. The paper describes the resulting extraction as better, while drawing attention to the procedure’s left-to-right selection of longest strings. A mistaken extraction could then influence decisions across the portion of the input that followed it. The C4.5 setup gives each candidate its own classification based on evidence gathered from the corpus. Its unit of decision is the proposed entry, so the classification of a later candidate does not require the system to commit to an earlier segmentation of a passage.

The authors also cite decision-tree induction as a method that had already been used for distinguishing sentence boundaries, for parsing, and for Thai word segmentation. A decision tree converts a sequence of tests on attributes into a classification. In the cited parsing and boundary work, the tasks and predicted units differed from those of the Thai extractor. The methodological precedent was that a tree could learn which combinations of observable cues helped predict a linguistic decision. The authors take that approach into the classification of corpus substrings as possible entries. [Adaptive Multilingual Sentence Boundary Disambiguation](https://md.research.elamur.ai/free/en/papers/palmer-1997-adaptive-multilingual-sentence-boundary-disambiguation/) · [Magerman’s decision-tree study of parsing](https://md.research.elamur.ai/free/en/papers/magerman-1995-statistical-decision-tree-models-parsing/)

### The method, step by step

#### From raw text to labeled candidates

The authors begin with Thai articles in plain, unannotated form. They use the substring extraction procedure of Yamamoto and Church to obtain strings that occur in the corpus. The paper credits the program with extracting substrings in linear time. This is the collection stage. It makes strings available for assessment, including fragments and strings that may stretch across lexical boundaries. The collection stage needs to know that a sequence occurred and can be counted. It can perform that job without a preliminary segmentation of the articles.

The training corpus is a 1-MB collection of 75 articles from various fields. To qualify as a candidate, a string must, under the authors’ rules, be 2 to 30 characters long and appear at least three times. They also require positive entropy on both sides and compliance with simple Thai spelling rules. Positive entropy here means that the observed neighbors on that side show some variation. The paper describes these conditions as practical restrictions on what to consider. A string that fails any of them is excluded before its word status can be predicted by the tree.

After filtering, the authors have about 30,000 training strings. People classify these as words or nonwords. They label the string as a proposed entry, so the label applies to the unit for which corpus statistics will be calculated. For instance, the separate occurrences of a frequent candidate contribute to the same frequency calculation and the same distributions of surrounding characters. The collection of labeled strings gives the learning procedure examples of what should be accepted and rejected within the range admitted by the filters.

A similar collection supplies the test candidates. It comprises 72 articles from various fields and is also 1-MB. The same extraction and filtering process produces about 30,000 strings, which are manually labeled for evaluation. The tree comes from the training examples. On the test side, the corpus supplies the observations used to characterize the candidates, and the manual labels provide the standard against which predictions can be judged. This separates learning the tree’s decisions from measuring how those decisions fare on candidates gathered from another set of articles.

From unsegmented Thai articles to predicted word entries The steps in order.

The filters and the classifier both matter to this design. Filtering specifies the population of strings that the learner can see. Classification then distinguishes among members of that population. Entropy, for instance, first acts as an admission requirement. A candidate needs positive entropy on each side. Later, the measured amounts of left and right entropy can help the tree decide whether a surviving string is a word. A condition used at the first stage can leave substantial variation for the later stage to exploit.

The spelling information also has roles at different stages. The authors say surviving candidates conform to simple Thai spelling rules. They separately define numerical spelling attributes from the Thai Royal Institute dictionary. These attributes quantify how common particular opening and closing pairs are in listed words. The paper describes the candidate filter and the dictionary-derived attributes as parts of the process, but its account does not specify how closely the spelling rules in the filter correspond to the evidence given to the tree. Keeping the stages distinct prevents the exact lookup comparison from being confused with either of these uses of spelling.

#### The evidence just inside a candidate’s edges

One pair of attributes describes internal cohesion. A candidate has a leftmost character, a middle portion, and a rightmost character. The authors compare the full string with the parts obtained by separating its first character from its remainder. They also make a corresponding comparison after separating the last character. Each comparison asks whether the complete sequence is common relative to what the separate probabilities of the parts would suggest if those parts were independent.

The left attribute is defined as follows.

```
Lm(xyz) = p(xyz) / (p(x) · p(yz))
```

`Lm` denotes left mutual information in the paper’s terminology. `xyz` is the full string, with `x` its initial character, `y` its interior substring, and `z` its final character. Juxtaposition joins pieces in their written order, so `yz` is everything after `x`. `p` is the probability function. The numerator is the probability of the full string, and the denominator multiplies the probabilities of the initial character and the remaining substring. The multiplication sign `·` combines those probabilities into the comparison under independence, and `/` divides the observed probability by that product. The equality sign `=` assigns the resulting ratio to the attribute. The formula gives a ratio directly.

The right attribute follows the same idea at the other edge.

```
Rm(xyz) = p(xyz) / (p(xy) · p(z))
```

`Rm` is right mutual information. `xyz` again identifies the candidate, `x` is its first character, `y` its middle substring, and `z` its last character. `xy` now denotes the full candidate up to the final character. `p` gives the probability of its argument. The product after `/` is the independence comparison for the prefix and the final character, and `=` sets `Rm` to the ratio of the full-string probability to that product. In both attributes the full string contributes the same numerator. The denominators refer to different ways of dividing it.

The authors expect a word’s two edges to hold together well under these comparisons. If one edge consists of an extra character attached to a word, the attachment may occur too weakly relative to the independent frequencies of the pieces. The paper illustrates this with a Thai letter placed before the word glossed as “appear.” The full string contains a real word within it, but its first character has been attached from outside that word. The authors expect the left mutual-information attribute to reflect that loose attachment. The construction of the right attribute allows the tree to use analogous evidence at the final edge.

A separate measure on each side preserves the location of a possible problem. The evidence for the left attachment can be weak even if the evidence for the right attachment is strong. The tree can make a test on one attribute, then take the other into account where it helps. The formulas themselves assign values to the candidate. The paper uses the expectation of strong internal attachment as a reason to give those values to a learner, whose training labels determine when a particular value is predictive.

The comparison is also sensitive to how frequently the parts appear independently. An observed count for a complete string indicates that the string recurs. The ratio asks a further question about that recurrence. If a piece is already common on its own, finding it in a particular whole needs to be assessed against its prevalence. In these formulas a complete string with a familiar ending and a complete string with an unusual ending can therefore carry different association evidence, even when raw occurrence counts alone would leave them looking alike.

#### The evidence just outside a candidate’s edges

The entropy attributes examine what sits immediately outside a candidate in the corpus. Suppose the same string appears on several occasions. Each occurrence can provide an observation of the preceding character, and each can provide one of the following character. The corresponding distributions record which characters were seen and how concentrated their appearances were. Entropy measures the spread of each distribution. Contexts in which many alternatives occur with some regularity can give higher entropy than contexts dominated by a particular neighbor.

For left entropy the paper writes the calculation in terms of the probability of a candidate with a character before it, given the candidate.

```
Le(y) = −∑ₓ∈A p(xy | y) · log p(xy | y)
```

`Le` means left entropy, and `y` here denotes the entire candidate. `A` is the set of characters over which the paper sums, and `x ∈ A` means that `x` runs through that set. `xy` attaches `x` immediately before `y`. The vertical bar in `p(xy | y)` makes the probability conditional on `y`: the term concerns observing `x` before an occurrence of the candidate. The product `·` weights the logarithm `log` of that conditional probability by the probability itself. The summation sign `∑` collects these terms across characters, the minus sign `−` negates the sum, and `=` gives the resulting value as `Le(y)`. The paper leaves the logarithm’s base unspecified.

The corresponding calculation on the right uses following characters.

```
Re(y) = −∑𝓏∈A p(yz | y) · log p(yz | y)
```

`Re` means right entropy, `y` again denotes the complete candidate, and `z` runs over the characters belonging to `A`. `yz` places `z` immediately after `y`, so `p(yz | y)` is the conditional probability associated with finding `z` after the candidate. In each term, `·` multiplies this probability by its `log`. The sign `∑` adds the terms over the following characters and `−` negates the result. The equality sign gives that value to `Re(y)`. Here `y` has the same meaning as in the left entropy formula. In the mutual-information formulas, by comparison, `y` names the interior of a string written as `xyz`.

The paper’s example of right entropy returns to the Thai word glossed as “appear.” It now considers a fragment that lacks the word’s final character. The character needed to complete the word is then a likely right neighbor of the fragment. This gives the fragment a restricted set of right contexts and is expected to yield low right entropy. The information is about what comes after the fragment across its occurrences. If the right edge marks the end of a complete word, the following character can instead vary with the expression that comes next. The same reasoning applies to the left edge when a fragment regularly has the same beginning attached to it.

The two pairs of attributes use opposite sides of the candidate boundary in a literal sense. Association concerns the attachment of the first and last characters already included in a proposed entry. Entropy concerns characters excluded from it. The prefixed form of “appear” motivates a check on whether the first included character belongs with the rest. The truncated form motivates a check on whether an excluded following character is predictably needed to complete the word. Both cases involve a candidate near a genuine lexical unit, and they illustrate why a recurrence count by itself leaves important information unresolved.

Entropy also retains information beyond whether variation is possible. The initial filter excludes candidates with no observed variation on an edge. Among those that pass, variation may be substantial or concentrated around a dominant continuation. The classifier receives a numerical attribute capable of distinguishing such patterns. This division of labor matters when reading the results. The experiment evaluates a tree that can use degrees of variation within a pool whose candidates already exhibit some variation on both sides.

#### Frequency, length, function words, and spellings

Frequency measures how much evidence the corpus gives that the string recurs. The authors consider recurrence useful because an acceptable word is expected to be observed more regularly than an arbitrary sequence. They divide the occurrence count by corpus size and scale it by the average Thai word length.

```
F(s) = (N(s) / Sc) · Avl
```

`F(s)` is the normalized frequency for candidate string `s`. `N(s)` counts occurrences of that string in the corpus. `Sc` is the size of the corpus, and `/` divides the count by that size. `Avl` is average Thai word length. The multiplication sign `·` applies that average as a scaling factor, and `=` assigns the result to `F(s)`. The paper defines the normalization but gives no numerical value for `Avl` in its method description.

This attribute and the minimum occurrence requirement both rely on counting. For admission, the count only has to meet the selection condition. During classification, the normalized value lets the learner distinguish more frequent candidates from less frequent ones within that eligible range. Corpus size appears in the normalization because a raw count depends in part on how much text was searched. Average word length supplies the paper’s chosen scale. This calculation characterizes an individual string and leaves its eventual classification to the tree.

Length supplies another view of the same evidence. A short string has more opportunity to arise by chance, so recurrence can carry a different implication for a short candidate and a long one. The authors include the number of characters as an attribute so the tree can use length where it helps distinguish words from nonwords. This carries two separate implications. A candidate must first be short enough and long enough to pass the filter. Once it is eligible, its exact length can help the learner interpret the rest of its evidence.

Function words present a different source of misleading recurrence. The authors give Thai examples glossed as “will” and “then.” Such forms appear frequently in text. Strings containing them can also appear frequently, including combinations that the authors want the extractor to treat with care. The method marks the presence of a function word using a discrete attribute, whose allowed values represent presence and absence.

```
Func(s) = 1 if s contains a function word, 0 otherwise
```

`Func` is the function-word indicator and `s` is the candidate string. The equality sign `=` assigns `1` for presence and `0` for absence. The condition is containment of a function word in the candidate. The attribute records a property of the string, and the training examples determine how it contributes to classification.

A flag can handle an observable source of ambiguity without forcing the same outcome for every marked candidate. A frequent surrounding pattern can give an otherwise questionable string many appearances. If the tree finds the presence of a function word useful, it can make different decisions for strings with the flag depending on other attributes. The paper’s rationale is to let the learner recognize recurring material that might inflate the apparent evidence for a candidate. It does not specify the full list of forms used to compute the flag.

The spelling attributes give the tree evidence about the forms of existing entries. The authors take the first pair and the last pair of characters in a candidate, then examine how frequently each pair occupies its corresponding position in the Thai Royal Institute dictionary. The beginning statistic uses dictionary words with the specified opening pair.

```
Fc(s) = N(s₁s₂*) / ND
```

`Fc` is the attribute for the beginning of candidate `s`. `s₁` and `s₂` are its first and second characters, and juxtaposition joins them into an opening pair. The wildcard `*` after the pair allows any continuation in the dictionary entry. Here `N` counts matching dictionary words, and `ND` counts all words in that dictionary. The slash `/` expresses the matching count as a share of all entries, and `=` defines `Fc(s)` as that share.

The ending statistic looks at the opposite edge.

```
Lc(s) = N(*sₙ₋₁sₙ) / ND
```

`Lc` is the attribute for the ending of candidate `s`. `n` is the length of the string in characters, `sₙ` is the final character, and `sₙ₋₁` is the character immediately before it. The wildcard `*` precedes the pair, allowing any beginning in a matching dictionary entry. `N` counts entries that end with the pair, `ND` is the total number of entries, `/` divides those counts, and `=` assigns the result to `Lc(s)`.

A character pair can be familiar as an opening without being equally characteristic as an ending. Separate attributes preserve that distinction. The criterion is also broad enough to provide evidence about a candidate missing from the dictionary. A previously unlisted string can start and end in ways that are common in listed words. Conversely, a rare character pair at an edge can supply a cue about spelling even when the corpus offers few examples of the whole string. These values encode the behavior of character pairs in a particular dictionary, so they give indirect evidence about conformity to its lexical spellings.

#### Learning a decision tree

Each training entry consists of the attributes calculated for a candidate and its manually assigned word or nonword label. C4.5 uses these examples to construct a tree. A branch applies an attribute test and directs a candidate towards a subsequent test or a leaf. A leaf supplies the predicted class. The tree thus represents conditional decisions. Which attribute is useful at a given point can depend on which candidates have already reached that part of the tree.

The paper describes tree construction in terms of information gain. An attribute test is informative if the groups it creates make the two labels easier to distinguish than they were in the group before the split. A test that sends many words in one direction and many nonwords in another would make useful progress. As the tree grows, each part is dealing with a narrower set of training examples. A cue that made little difference among all candidates could be useful once an earlier test has identified a group for which it matters. The paper explains the selection rule in words and supplies no separate equation for it.

Growing a tree to account for the training examples can make it sensitive to details specific to those examples. The authors describe C4.5 as addressing overfitting through pruning. It examines subtrees recursively and considers whether a leaf or a branch would give a better estimate of error than the subtree it would replace. Pruning can remove decisions that appear valuable on the original examples but offer weak grounds for predicting candidates elsewhere. The final tree is the one used to judge the separately gathered test strings.

The feature design gives the learner several ways to assess a candidate. Frequency describes recurrence, internal mutual information describes attachment, and entropy describes the diversity of neighbors. Length gives context for how much evidential weight recurrence may carry. Function-word presence identifies a known source of repeated strings, and dictionary spellings characterize the shapes of the two edges. The paper’s expectations about these attributes motivate giving them to the learner. C4.5 determines how to use them through the labels and attribute values of candidates in the training corpus.

### Experiments and results

#### What the counts represent

The experiment measures decisions on distinct candidate strings after collection and filtering. The manually labeled training pool contains 2933 words, and the separately labeled test pool contains 2720. These are the positive cases the table uses to calculate recall. The articles contain the occurrences from which candidates and attributes were derived. The unit counted in the evaluation is the candidate on the resulting list, so repeated appearances contribute evidence about a candidate without creating a fresh evaluation item for each appearance.

The paper evaluates precision and recall. Precision answers a question about the proposed entries. Among the strings the tree accepts, how many receive a word label from the annotators? Recall answers a question about the eligible words. Among the manually labeled words in the candidate pool, how many does the tree accept? These measures support different readings of the same output. Precision concerns the burden of reviewing unwanted suggestions. Recall concerns how much of the known positive candidate vocabulary the output recovers.

For comparison, the authors check whether each manually identified candidate word appears in the Thai Royal Institute dictionary, which they abbreviate RID. This yields a second recall figure over the same positive pool in each collection. It answers how much of that pool is already covered by an existing dictionary. The paper reports the comparison for recall. The dictionary is also the source of the spelling-pair attributes, so the comparison concerns a learned procedure that has some indirect dictionary information and exact membership as a way to retrieve the known positives.

#### How often a selected string was a word

The tree selects 1882 strings in the training corpus. Human labels identify 1643 of these as words and 239 as nonwords, yielding training precision of 87.3%. In the test corpus the tree selects 1815 strings. The manual labels identify 1526 of those as words and 289 as nonwords. Test precision is 84.1%, and the paper reports that the rejected-by-annotators portion of the selected list is 15.9%. For comparison, that portion is 12.7% in the training output.

C4.5 word extraction precision on the training and test candidate pools Precision on the separate test collection is lower than on the training collection.

**The numbers**

| System or setting | precision % |
| --- | --- |
| C4.5 on training candidates (this paper) | 87.3 |
| C4.5 on test candidates | 84.1 |

The training result reports how well the final tree classifies a collection whose labels informed its construction. The test result addresses the more important question of performance on a separate collection of articles. It shows that most of the strings proposed there also received a word label under the authors’ procedure. The continued presence of nonwords among the proposed entries gives a reason to regard the output as suggestions for dictionary building. The classification reduces the pool to a more promising list, and the measured precision describes how reliable that reduction was in this experiment.

The separation between the corpora matters when considering these numbers together. The test candidates go through the same practical restrictions and are described by the same attributes, but the article collection supplying their occurrences is different. The result therefore gives evidence for transfer of the induced decision procedure under a shared candidate protocol. Unseen articles and unseen lexical forms are different levels of novelty. The split makes the former possible, and the paper reports no candidate-overlap count from which to establish the latter for individual strings.

#### How much of the candidate vocabulary was recovered

The recall table lists 1643 correctly extracted training words out of the pool of 2933 manually identified words, with recall of 56.0%. On the test side it lists 1526 correctly extracted words from a pool of 2720, with recall of 56.1%. The authors describe recall as 56% in both collections in their discussion. The table’s split-specific values make the close correspondence visible while retaining the precision with which the paper reports each result.

The dictionary contains 1833 of the positive training candidates, for 62.5% recall in the training pool. It contains 1580 of the positive test candidates, for 58.1% in the test pool. Exact membership in RID therefore retrieves more of the manually labeled positives in both comparisons. The authors describe its recall as comparable to that of their learned extractor and expect the corpus method to improve with more text. The observed comparison concerns the collections used in the experiment.

C4.5 and dictionary recall on manually labeled training and test candidate words Dictionary lookup covers more labeled words in each pool, while tree recall is close across the pools.

**The numbers**

| System or setting | recall % |
| --- | --- |
| C4.5 on training candidates (this paper) | 56.0 |
| Thai Royal Institute dictionary on training candidates | 62.5 |
| C4.5 on test candidates | 56.1 |
| Thai Royal Institute dictionary on test candidates | 58.1 |

The denominator is central to the meaning of these results. The labels describe strings that survived selection. Thus the test recall measures recovery of the 2720 known positives in the test candidate list. A word that occurs too infrequently to enter that list lies outside the experiment’s recall denominator. The same applies to strings outside the allowed lengths and strings excluded by the entropy or spelling conditions. The results establish how the classifier and lookup compare over an observed and labeled subset of the corpus vocabulary.

There is also a distinction between the relative sizes of the accepted sets and their contents. A dictionary can retrieve a greater share of the positive candidates while missing strings that the tree accepts correctly. The aggregate recall figures alone leave that question open. The authors examine the overlap directly, which is especially relevant when the goal is to propose entries for a dictionary with existing coverage.

#### Where the extractor found additional entries

Among the 1643 accepted training strings labeled as words, 1082 were listed in RID and 561 were absent. The paper gives their respective shares as 65.9% and 34.1%. Among the 1526 correctly accepted test strings, 1046 were listed and 480 were absent, corresponding to 68.5% and 31.5%. The percentages describe correct tree extractions in each corpus. The overlap calculation thus looks at which words the tree successfully retrieved and checks the dictionary status of those successes.

The absence of 480 correctly extracted test strings from RID supports the paper’s dictionary-building purpose. Their word status comes from the manual labels. Their absence is relative to the specific dictionary used in the paper. By combining those observations, the authors can identify a portion of the test output as plausible additions. A coverage measure alone gives the size of the recovered vocabulary, whereas this check shows whether some of the recovered items add to what a specific lexical resource already supplies.

The result is consistent with how the spelling attributes were constructed. A dictionary-derived probability for a character pair expresses a pattern shared among many entries. A complete form can follow those edge patterns without occurring in the dictionary. Its observed frequency, internal cohesion, and neighboring characters can then contribute evidence of its status. Exact lookup would miss the entry by design, and the supervised tree can still accept it if the attributes place it in a class of strings that the training examples support.

The two findings about RID bear on different practical questions. Exact lookup covers more of the labeled candidate vocabulary, which matters if the task is to recover known positives within the experiment. A substantial portion of the tree’s correct output consists of forms outside the dictionary, which matters if the task is to discover possible additions. The overlap figures give evidence that corpus extraction can serve the latter purpose even when its total recall falls below the lookup comparison. The paper’s experiments support that more specific claim directly.

### What the ablations show

The paper reports no formal feature ablation. Its analyses instead compare the tree with dictionary lookup, examine their overlap, and relate performance to how frequently strings occur and how long they are. These comparisons show where the completed procedure was more effective and what kind of output it supplied. The contribution of an individual attribute would require a separate comparison in which the learner was run under otherwise comparable conditions with that evidence removed.

#### Occurrence frequency and the quality of the evidence

The authors describe a tendency for both precision and recall to rise with string occurrence counts. This is a comparison among candidates grouped by their observed frequency. For precision, the tendency means that the tree’s accepted strings were more reliable toward the more frequent end of the candidates examined. For recall, it means that eligible words towards that end were more likely to be recovered. Both observations concern strings that already met the minimum count and the other admission conditions.

Repeated appearances can help the procedure in several related ways. Frequency is itself an attribute, so a recurring sequence presents the tree with a direct count-based cue. With more occurrences, the corpus also has more chances to show which characters neighbor the candidate, giving evidence about whether its edges tolerate different surroundings. Occurrence counts likewise contribute to estimates of association between the complete string and its pieces. The observed relationship is therefore consistent with several of the method’s mechanisms operating together.

Because those mechanisms share occurrence information, a performance trend across frequency groups does not isolate the frequency attribute. The more frequent candidates may have differed in the character contexts they provided, in their lengths, or in how readily they were recognized as words by the people assigning labels. The authors use the trend to motivate the expectation that a larger corpus could improve accuracy. That expectation concerns a change to the volume of text. The comparison presented concerns differences among strings in the corpora already studied.

This is also why the starting cutoff matters for the interpretation. The experiment observes a range of counts after rejecting strings with too few occurrences. It can describe a pattern inside that range. The performance of the tree on the excluded forms remains outside that analysis, including cases where a single occurrence would give almost no direct evidence of context variation. A larger corpus might move some such words into the eligible pool, changing the population of candidates as well as the evidence for strings already present.

#### Length and the kinds of strings recovered

The paper reports a tendency toward better extraction accuracy for longer strings within the range considered. The authors connect this pattern to their interest in recently created words and borrowings, which they say tend to be long. The connection provides a reason to examine length when judging the procedure’s potential for dictionary expansion. If the extractor works effectively on longer forms, it may be useful for finding some candidates of these kinds.

The length analysis groups candidates by a property that also appears as an input to C4.5. The observed relationship gives information about performance across groups. It leaves the effect of using length as a feature undetermined, because the tree could also draw on what the strings’ frequencies, edges, and spellings reveal. Differences in the makeup of the candidate groups could contribute to the pattern. The authors’ observation about newer words and loans is a motivation for applying the method. The analysis gives no separate precision or recall for a manually established subset of either kind.

Length has a further interaction with how the paper defines the candidate set. The trend pertains to strings permitted by the length filter and the other screening rules. Among long character sequences, the experiment considers those that already recur and have enough context variation to be eligible. The finding gives evidence about those admitted strings. An extension of the range would introduce candidates with properties the study did not evaluate, and the reported trend gives no measurement for that change.

#### What the comparison can attribute to the tree

The comparison with RID shows that the system retrieves some acceptable entries outside the dictionary while recovering fewer of the total labeled positives. This is an analysis of the decisions made by the whole pipeline. It would give the same kind of information regardless of which test in the final tree accounted for a particular acceptance. The output overlap, therefore, establishes a form of practical complementarity. It does not show how much of that complementarity comes from corpus co-occurrence, context entropy, or the other inputs individually.

The paper also presents an example of a decision tree. Such an example gives a way to see how classifications can arise from sequences of attribute tests. A branch in a tree shows how the constructed rule uses an attribute under a particular condition. Measuring the attribute’s contribution to performance would additionally require seeing how the learner behaves when that attribute is unavailable and the tree can adapt. The published precision, recall, and group trends apply to the feature set and training procedure as used.

The closeness of training and test recall provides a further check at the level of the completed system. It indicates that the fraction of eligible candidate words recovered remained similar when the tree was applied to the separate corpus. Precision declined, so the composition of the output changed in a way that the recall figures alone would not show. Taken together, these metrics describe the transfer of the extraction procedure under the paper’s shared setup. They supply no ranking of the individual cues proposed to explain its success.

### Limitations

#### Limits identified by the authors

The authors begin from the difficulty of defining a word for unsegmented Thai. The exercise example makes this an issue of linguistic judgment as well as character boundaries. An expression can be familiar and stable while allowing different analyses of its components. The training labels make it possible to learn a consistent classification procedure under human decisions. The ambiguity that motivated the study remains relevant to how readers interpret its output, especially for recurring compounds that could reasonably be treated at different levels of granularity.

The paper expressly chooses a restricted candidate range for practical reasons. Candidates must have an allowed length, recur frequently enough, have varied neighbors on both sides, and conform to simple spelling rules. These choices make the extraction and annotation task manageable. They also define the reach of the system as evaluated. A lexical item that falls outside the chosen range never becomes a case on which the classifier can show success or failure. The authors’ emphasis on obtaining an acceptable list fits this filtered task.

The authors also treat evaluation on larger corpora as future work. They expect greater volume to improve extraction in light of the frequency trends, and they propose using larger collections to build a corpus-based Thai dictionary. The experiment uses two collections with the same reported size. It supplies evidence about a relationship to observed frequency in those collections rather than measurements from a series of increasing corpus sizes. The gains the authors expect from a larger corpus are a prediction derived from the analysis.

The conclusion proposes that the general approach could work for other languages whose writing leaves word boundaries implicit. The data and the lexical reference used in the study are Thai. Function-word choices and examples of well-formed openings and endings are tied to Thai in the described system. Applying the approach to another language would involve sourcing comparable evidence and obtaining labels for that language’s candidates. The paper presents cross-language applicability as a prospect.

#### Limits visible in the experimental setup

The evaluation’s operational meaning of a word comes from the manual candidate labels. The method description supplies no measure of agreement between annotators or detailed account of how disputed labels were resolved. Those details would matter for distinguishing a faulty extraction from a disagreement about the appropriate lexical unit. They would also help another evaluator reproduce the task with the same conventions. The measured precision and recall give agreement with the labels used in the study, which is the standard the authors can test.

There is a related limitation in the use of pooled occurrences. Some character strings can be lexical units in one context while appearing within a larger unit in another. The experiment classifies a candidate as an item on a list using evidence gathered across its observed contexts. It does not evaluate which occurrences deserve a boundary on either side. Accordingly, a successful type-level classification supplies a plausible entry for a vocabulary. It leaves decisions about the segmentation of individual passages open.

The filters create a selection effect in the performance measurements. The procedure can recover a word only after the string becomes eligible for classification. To measure coverage of all words in the articles, the evaluation would need a reference that also records items excluded before labeling. The numbers in the paper use the positive labels among the surviving strings. They give an informative comparison between the classifier and the dictionary in that pool, and the pool’s restrictions are part of the meaning of the comparison.

The separate test collection gives a useful check on transfer to another group of articles. The paper describes both collections as drawn from various fields, without reporting performance for specific fields or an explicit split that holds out a field. It also gives no account of which candidate strings occur in both pools. The evaluation therefore supports use of the tree on candidates from another collection organized under the same protocol. Generalization to substantially different subject matter and to exclusively unseen word forms remains unmeasured.

Several implementation details are left open by the method description. The attributes depend on estimated string probabilities, a corpus-size normalization, a list of functional words, and spelling criteria. The paper defines the quantities to be used, but it gives no numerical average Thai word length for the frequency scale, no complete inventory of flagged function words, and no full specification of the preliminary spelling rules. These details affect which candidates are admitted and the values presented to the tree. The core procedure can be understood from the formulas and workflow, while exact reproduction would require those choices.

The comparison with RID uses one established dictionary as the reference for membership and a source of spelling evidence. The study therefore cannot isolate performance in the absence of dictionary-derived cues. It also gives no measure of how many of the absent strings would be accepted as headwords by a dictionary editor applying a separate editorial standard. A string’s absence from RID and its presence among the manual positives establish that it is a possible addition under the study’s criteria. Its status as a new coinage, a borrowing, or a suitable headword for another lexical resource requires additional evidence.

Finally, the paper’s group analyses are descriptive. A trend over counts can motivate gathering more text, and a trend over lengths can motivate examining longer candidate forms. The paper gives no controlled size comparison or separate validation on loan words or recent coinages. Neither trend identifies the cause of the observed changes in performance by itself. The strongest conclusions remain the measured precision and recall for the filtered pools, together with the direct count of correctly accepted forms absent from RID.

### What came after

The authors’ proposed continuation was to apply the extraction procedure to larger corpora and use the resulting candidates to build a corpus-based Thai dictionary. That proposal follows from the two kinds of evidence the paper supplies. More often occurring candidates tended to be handled more successfully, and a share of the successful extractions lay outside RID. A larger collection could offer more observations for some strings and introduce additional candidates, so evaluating the proposal would involve measuring both the quality of the resulting suggestions and the coverage achieved under the selection rules.

The paper also points toward extraction for other languages with implicit word boundaries. Its central mechanism would carry over as a question about evidence: whether recurring character sequences, their internal attachments, and their external contexts help distinguish acceptable lexical entries under human judgments for that language. The Thai spelling and function-word cues would need corresponding evidence appropriate to the new setting. The authors leave both larger-corpus construction and cross-language application as future work. There is no documented follow-on study to trace those proposals to here.

## Cite

Cite as Virach Sornlertlamvanich, Tanapong Potipiti and Thatsanee Charoenporn. 2000. Automatic Corpus-Based Thai Word Extraction with the C4.5 Learning Algorithm. COLING 2000 Volume 2: The 18th International Conference on Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{sornlertlamvanich2000automatic,
  title = {{Automatic Corpus-Based Thai Word Extraction with the C4.5 Learning Algorithm}},
  author = {Virach Sornlertlamvanich, Tanapong Potipiti and Thatsanee Charoenporn},
  booktitle = {COLING 2000 Volume 2: The 18th International Conference on Computational Linguistics},
  year = {2000},
  url = {https://aclanthology.org/C00-2116/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
