---
title: "A Fast and Accurate Vietnamese Word Segmenter — Nguyen 2018"
description: "Learn how RDRsegmenter finds Vietnamese word boundaries by correcting dictionary matches with a tree of rules learned from annotated text."
canonical: "https://research.elamur.ai/free/en/papers/nguyen-2018-fast-accurate-vietnamese-word-segmenter/"
---
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/nguyen-2018-fast-accurate-vietnamese-word-segmenter/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / A Fast and Accurate Vietnamese Word Segmenter

# A Fast and Accurate Vietnamese Word Segmenter

Paper · 2018 · Dat Quoc Nguyen, Dai Quoc Nguyen, Thanh Vu et al.

**Authors:** [Dat Quoc Nguyen](https://md.research.elamur.ai/free/en/authors/dat-quoc-nguyen/), [Dai Quoc Nguyen](https://md.research.elamur.ai/free/en/authors/dai-quoc-nguyen/), [Thanh Vu](https://md.research.elamur.ai/free/en/authors/thanh-vu/), [Mark Dras](https://md.research.elamur.ai/free/en/authors/mark-dras/) and [Mark Johnson](https://md.research.elamur.ai/free/en/authors/mark-johnson/) · **Year:** 2018 · **Venue:** Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018) · **Licence:** [CC BY-NC 4.0 (ELRA, LREC proceedings)](https://creativecommons.org/licenses/by-nc/4.0/)

Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018) · [licence](https://creativecommons.org/licenses/by-nc/4.0/)

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

## Summary

A space in written Vietnamese can separate syllables that belong to the same word. To prepare text for further language analysis, a word segmenter has to decide which spaces mark word boundaries and which fall inside words. Looking up sequences in a dictionary helps, but a dictionary can offer an entry that fits the letters while placing a boundary in the wrong spot. RDRsegmenter addresses that problem in stages. It first uses a Vietnamese lexicon to propose a segmentation, then checks each syllable in context for evidence that its proposed label should change. This is a word-level [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) problem.

The authors learn the corrections from sentences whose word boundaries have been marked by hand. They run the dictionary-based segmenter on versions of those sentences with the boundaries removed, then compare its decisions with the annotations. Each decision is represented by the current syllable, its proposed label, and the syllables and proposed labels nearby. The comparisons furnish examples for a Single Classification Ripple Down Rules tree. In that tree, a rule gives an answer for the cases that satisfy its condition, and an exception can supply a different answer for more specific cases. The tree returns the answer of the last rule that matched along the path it followed. The resulting program can keep a good initial decision or revise it without searching through complete alternative segmentations.

On the benchmark Vietnamese treebank, RDRsegmenter obtains a test F1 of 97.90, ahead of UETsegmenter at 97.87 and vnTokenizer at 97.33. UETsegmenter has the highest precision in the comparison, while RDRsegmenter has the highest recall. The authors also train on smaller samples and report a clearer F1 advantage over UETsegmenter in that setting. Their direct speed comparison, using a single-threaded implementation on an Intel Core i7 2.2 GHz computer, puts RDRsegmenter at 62k words per second, or 1.3 times the speed of UETsegmenter. That timing covers repeated segmentation of the treebank test set after loading.

The paper demonstrates that a lexicon and a learned collection of local exceptions can work together effectively on this benchmark. The larger context available to the correction stage can resolve a boundary that the lexicon-based pass gets wrong, even when the initial pass has recognized other words in the same phrase. The authors release RDRsegmenter as open-source code. They also identify Chinese and Japanese as candidates for adapting the correction procedure, using characters in a role analogous to that of Vietnamese syllables.

## Deep dive: A Fast and Accurate Vietnamese Word Segmenter

Learn how RDRsegmenter finds Vietnamese word boundaries by correcting dictionary matches with a tree of rules learned from annotated text. · about 32 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

#### The difference between a space and a word boundary

Dividing a line of text wherever a space occurs yields useful units in Vietnamese, but those units may still need to be joined. The paper illustrates the distinction with *thuế thu nhập cá nhân*, a phrase for personal income tax. Its annotation groups the syllables as `thuế_thu_nhập cá_nhân`. The space between `nhập` and `cá` marks a boundary between words. The spaces that originally separated `thuế` from `thu` and `thu` from `nhập` serve a different purpose in the annotation. They separate parts of a word whose beginning is at `thuế`. The underscore convention makes that distinction visible by reserving spaces in the segmented output for boundaries between words.

A reason this problem matters for [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) is that segmentation determines the units available to subsequent word-level analysis. In the example, treating `thuế` as a complete word and starting a separate word at `thu` would produce a different sequence of units for the next stage. A program taking the annotated grouping as input would instead see `thuế_thu_nhập` as a unit. The paper treats segmentation as a preparatory task in its own right and measures the quality of that preparation against manually marked boundaries.

The lexical statistics quoted in the paper help explain why a simple rule based on spacing would be inadequate. The authors cite estimates that about 85% of Vietnamese word types contain at least two syllables and that 80%+ of syllable types can function as words on their own. The units counted here are distinct types. These figures describe the inventory of forms discussed in the earlier studies, rather than the frequency with which an arbitrary position in the treebank is ambiguous. Together, they describe an inventory where multisyllable words are common and many syllables remain plausible standalone words.

That combination creates competition among segmentations. A syllable can look entirely plausible at the beginning of a word when examined alone and still belong with its neighbor in a particular phrase. Conversely, a sequence found in a lexicon can occur in a sentence where its syllables belong to separate words. An automatic segmenter therefore needs both a source of plausible groupings and a way to decide which grouping the current context supports. Earlier approaches, as the paper describes them, distribute those jobs differently.

#### How earlier systems chose a segmentation

Some of the earlier work started from possible dictionary matches over the input sentence. The researchers used maximum matching to produce candidate segmentations, then selected among the candidates using information beyond the individual dictionary entry. In some studies, that information came from [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) scores, which assess sequences using patterns of neighboring items. Another used grammatical category information supplied by an external [part-of-speech tagger](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/). In both designs, the dictionary helps establish which segmentations to consider, while the additional information helps settle competition among them.

This division of work explains a distinction in the terminology. The earlier maximum-matching systems discussed in the introduction consider alternative segmentations and rank them. RDRsegmenter's longest-matching pass supplies a particular starting segmentation for correction. For the earlier systems, a competing complete segmentation may be available to the selector from the outset. For RDRsegmenter, a different word grouping can arise when the second stage changes a proposed label at a particular syllable. The starting analysis has already served its purpose once it has supplied those labels.

Another line of research expressed segmentation as sequence labeling. Each syllable gets a tag showing whether it starts a word or joins the word to its left. The paper describes earlier systems using linear-chain conditional random fields, support vector machines, or maximum entropy to choose these tags. Sequence labeling gives the task an output representation that is independent of the learning technique. A system and the human annotation can assign labels to the same syllable positions, even if the system's final word groupings differ considerably from the human ones. That makes the representation convenient for locating an initial mistake.

The paper also describes approaches that assign segmentation and grammatical categories jointly. In that formulation, the label on a syllable carries both pieces of information. For a researcher interested in both outputs, the combined label gives the learning procedure a way to treat them as related decisions. RDRsegmenter learns segmentation labels alone. Its corrections can make use of spellings and proposed boundaries in the surrounding text, with no grammatical category field in the rule templates.

Pointwise prediction offers still another formulation. In the systems described by the authors, a classifier learns to decide whether the gap between adjacent syllables is a word boundary. A yes-or-no judgment about a gap and a beginning-or-inside tag on the following syllable express closely related information. The learning problem can nevertheless be organized differently. A pointwise system learns to answer the boundary question, while the correction procedure in RDRsegmenter starts with a boundary proposal and learns cases where the proposal needs revision. The initial tag is consequently part of the information available to its rules.

#### Why organize the corrections as exceptions?

The approach draws on Single Classification Ripple Down Rules, abbreviated SCRDR. The paper describes earlier applications to tasks including temporal relation extraction, [lemmatization](https://md.research.elamur.ai/free/en/concepts/lemmatization/), [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/), and [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/). Some applications relied on people to build the rule tree, while others learned one automatically. The closest methodological precedent discussed by the authors is automatic rule learning for grammatical tagging. There, the tree can replace an initial tag with a better one when a particular configuration of words and tags supplies evidence for the change.

An exception tree gives a conditional decision a place in the system relative to earlier decisions. Suppose a rule works for a broad class of inputs and fails in a more specific context. In a flat collection of rules, a new rule for that context would still need some means of taking precedence when both conditions apply. A tree can put the new rule on a path where it is reached after the earlier answer has become available. If the extra condition applies, the more specific conclusion can take over. If it fails and the path finds no later match, the earlier conclusion is still available.

For segmentation, this structure makes errors from the initial pass the starting point for learning. The learner can ask which cases currently receive an incorrect label, what their neighboring syllables and proposed labels have in common, and whether one condition captures enough of those cases to justify a rule. The problem thus concerns the relationship between an initial segmenter and a correction procedure. A different first pass could produce different errors on the same sentences, which in turn would give the learner different cases to work with.

### The method, step by step

#### Put the human and automatic decisions on the same syllables

Training begins with hand-segmented sentences. In the input annotation, underscores join the syllables within a word and spaces divide words. The authors translate that representation into a tag for every syllable. `B` means that the syllable begins a word, and `I` means that it continues the current word. A word consisting of a single syllable takes `B`. A word containing several syllables takes `B` on the first syllable and `I` on the rest. This gives the learner the word boundaries as a sequence of decisions aligned to the original text.

The authors then prepare another version of the same sentences by retaining the syllables and removing the boundary information. The initial segmenter sees this unsegmented version. It uses longest matching with the Vietnamese lexicon from Le and colleagues, and its output is expressed with the same `B` and `I` labels as the human segmentation. The authors call the hand-annotated version the gold standard. It supplies the target for each position, while the version produced by longest matching supplies the information that will actually be available when the correction procedure is run on new text. The annotated decisions are a form of [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

The personal income tax example shows what this alignment buys. The hand annotation starts a word at `thuế`, continues it through `thu` and `nhập`, then starts another at `cá` and continues it through `nhân`. The initial pass starts an extra word at `thu`. Its label there is `B`, whereas the gold label is `I`. At `nhập`, both versions already have `I`. Correcting the tag at `thu` therefore joins material that the first pass had split, while the label at `nhập` continues to attach that syllable to the word in progress. No syllables have to be inserted, removed, or realigned to make the comparison.

This same example clarifies the difference between a tag error and its effect on the word output. A `B` on `thu` yields different word spans on either side of the proposed boundary. Replacing it with `I` affects how the full stretch from `thuế` through `nhập` is grouped. The final task is to recover words, even though the training procedure can identify the problem at a particular syllable. The representation gives the learner a small, concrete decision to correct.

How RDRsegmenter learns and applies boundary corrections The steps in order.

#### Record the initial decision in its local context

For each training position, the authors make a context window containing the current syllable, the preceding two syllables, and the following two syllables. Every syllable in the window has an accompanying tag from the initial segmenter. The window therefore records both the text and the first pass's interpretation of nearby boundaries. Including the central initial tag lets the learner distinguish, for instance, contexts where the first pass has proposed a word beginning from contexts where it has proposed a continuation.

The window positions are identified relative to the syllable being classified. Position `0` is the center. Positions `-2` and `-1` are the farther and nearer syllables on the left, and `+1` and `+2` are the nearer and farther syllables on the right. The paper uses `s` for the syllable at a position and `t` for its initial tag. Near the beginning or end of a sentence, entries that would fall outside the sentence are empty. The same window structure can then represent a sentence-edge case and a case in the middle of a sentence. Syllable strings are converted to lower-case in these records.

The authors gather the windows in a context dictionary called `D`. Its key is the ordered record of syllables and initialized tags, and its value is the gold tag for the central syllable. The order matters because the same string on the left and on the right of the center can furnish different evidence. The gold tag is stored separately from the window fields. A rule can look at what the initial segmenter decided at `thu` or at `nhập`, for instance, but it cannot use the human answer as part of its condition when confronted with new text.

For the window centered on `thu`, the farther left entry is empty because `thuế` is the only syllable preceding `thu` in the phrase. Immediately to the left, the window contains `thuế` with initial tag `B`. At the center it contains `thu` with initial tag `B`, and on the right it contains `nhập` with `I` followed by `cá` with `B`. The value associated with the window is `I`, from the hand annotation. In the same dictionary, a window centered on `nhập` would have a central initial label that already agrees with the gold label. The collection therefore provides information about correct decisions and mistakes.

All neighboring tags in these windows come from the same initial pass. This gives a rule access to useful structural clues without requiring any earlier tree decisions as input. A following `B`, for example, describes a beginning proposed by longest matching. It has that meaning even if the tree later changes the final tag at that following position. The interpretation of a learned condition is consequently tied to the way the initial segmenter reads the local text.

#### Turn a case into possible conditions

A window gives more information than a rule has to use. If a rule tested every field from an error case, a slight change in the surroundings could prevent it from applying again. The authors instead define reusable templates that select particular fields from a window. A template determines which fields are tested. When it is applied to a training case, the values in those fields become the tests, and the gold label at the center becomes the proposed conclusion.

Some templates inspect syllables alone. A condition may test the center syllable, the center and an immediate neighbor, or the syllables immediately before and after the center. There are also templates extending farther left or right. Spelling-based conditions can identify recurring lexical surroundings while omitting fields that would make the match too narrow. A condition on the syllables to either side, for instance, can be shared by cases with different initial tag sequences if the other requirements imposed by the tree still allow those cases to reach it.

Other templates use initial tags. These can test a tag at an individual position or a pair of tags around the center. Their evidence comes from the shape of the dictionary-based segmentation. A condition that depends on tags can apply across different spellings. Its usefulness then depends on whether cases with that proposed pattern tend to need the same correction within the part of the tree where the rule is evaluated.

Mixed templates combine a test on the center syllable with tests on tags nearby. One template uses the center syllable and the preceding tag. Another uses the center syllable with both immediate neighboring tags. Others pair the center syllable with a longer run of tags on one side. These allow the rule to ask whether the first pass has placed a particular syllable in a recurring configuration. The template inventory determines which such questions can be asked directly from a window.

The paper gives a concrete candidate based on the erroneous tag at `thu`. Take the template that checks the syllable immediately before the center and the syllable immediately after it. In that training window, those fields contain `thuế` and `nhập`. The resulting candidate proposes `I` when those two checks succeed. The central spelling does not appear in this particular condition. Its behavior depends on how frequently the same surroundings arise, how the candidate scores on the relevant training cases, and where the condition sits in the tree. The example shows how to instantiate a template, while the selection procedure determines which candidates become part of the learned tree.

A condition that uses several fields requires their tests to hold together. For the candidate involving `thuế` and `nhập`, finding one of the syllables on its specified side is insufficient. This differs from how the tree combines rules. A rule condition may be a conjunction of tests on the current window, whereas the tree chooses a route among separately stored rules. A candidate can thus have a fairly simple condition and still apply only after a particular path of earlier successes and failures.

#### Follow a path and keep the last matching answer

In an SCRDR tree, a node contains a condition and a conclusion. The condition asks whether the current case has a specified property. The conclusion is the tag to use if that condition is the last one that succeeds on the path. A node can have an `except` child, visited when the condition succeeds, and an `if-not` child, visited when it fails. Evaluation stops when there is no child of the required kind. Because the root condition always succeeds, a walk through the tree always has a conclusion available.

A useful way to read a traversal is to distinguish the current node from the node that currently supplies the answer. When a condition succeeds, its conclusion becomes the current answer and the traversal can continue down an exception edge. When a condition fails, the answer stays as it was and the traversal can continue down an `if-not` edge. The final node inspected can therefore differ from the node that supplies the final tag. If several conditions fail near the end, the conclusion from an earlier successful rule still stands.

This behavior also explains what precedence means in the paper. A rule takes precedence when it succeeds later on the path followed for that case. A neighboring branch that the traversal never visits has no effect. In particular, when the traversal proceeds through an exception because a condition has succeeded, it does not return to the same node's `if-not` child if the exception fails. The next test, if there is one, comes from the failed exception's own `if-not` edge.

The segmentation tree is initialized with the default root and two initial exception rules. This starting structure handles the first pass's beginning and inside labels before learned exceptions are added. The paper's worked example identifies the initial node that returns `B` for the window centered on `thu`. A correction becomes necessary because the recorded target for that window is `I`. The early nodes provide the starting behavior against which the authors identify these training errors.

#### Select a rule for the errors that reach a node

To grow the tree, the learner evaluates training windows under the rules already present. For a given node, it collects cases for which that node is the last successful rule and its answer is wrong. The paper calls this subset `Tₙ`, where `N` is the node under consideration. A case can belong to this subset even if the traversal went on to examine further nodes. What matters for membership is which rule supplied the answer and whether that answer agrees with the target in the dictionary.

The learner instantiates its templates on the error cases in that subset. The window at `thu` can generate the condition on its immediate neighbors, one on its center syllable, and other candidates from the available templates. Each candidate carries a conclusion derived from the gold tag of the case that generated it. The selection procedure then tests the candidate against the node's error cases as a group. A candidate built from a single window can earn support by applying to other windows as well.

The score used to choose a candidate is the following difference.

```
a − b
```

Here `a` counts cases in `Tₙ` that satisfy the candidate condition and receive the correct tag from its conclusion. The symbol `b` counts cases in that same subset that satisfy the condition but would receive the wrong tag from the candidate. The minus sign subtracts the latter count from the former. A case outside that subset does not contribute to this score, and a case inside the subset whose fields fail the candidate condition contributes to neither count.

Among eligible candidates, the learner seeks the highest score. The score must also meet a minimum threshold. This prevents a rule from being selected merely because it is the best of a set of weak candidates. A candidate could capture a real training error and still fall short of the required support. The authors choose the threshold using a development split before constructing the tree used for the reported test result.

For nodes beyond the initial three, the authors also impose a condition concerning cases the node already labels correctly. The check uses those correct cases as a separate set from the errors used in the score. The paper states that a candidate for such a node must avoid satisfying the condition for all of the cases the node labels correctly. The wording leaves open whether any individual overlap was excluded in the implementation. The intended role of the check is clear from its placement in the procedure. Selection takes account of decisions that already work as well as of the errors that motivated a candidate. The initial nodes are exempt from that additional check.

#### Attach the rule where a case can reach it

The general SCRDR insertion rule places a correction after the last node reached by a case. If that last node succeeded, the correction can be attached as its `except` child. The new test can then succeed after the answer that needs to be revised. If the last node failed, the correction goes on its `if-not` edge. The latter case matters because a traversal can end on a failure and still return a tag from an earlier rule. Attaching the new test after the failure lets the same case reach it on a subsequent traversal.

The node whose conclusion was wrong describes which collection of errors is under consideration. The point where an individual case stopped determines how the new rule can be reached on that case's path. These are separate pieces of information. For instance, a case might last match a node returning `B`, then reach a more specific rule whose condition fails. The unsuccessful rule supplied no new answer, so the case belongs with errors from the node that returned `B`. The insertion convention makes the failed test part of the route to a further candidate correction.

The learner repeats the process as the tree grows. Adding an exception can change which rule is last to match particular windows, so subsequent opportunities for correction depend on the current tree. The procedure ends when there is no node for which another candidate satisfies the selection criteria. That stopping rule permits unresolved training cases. A pattern can remain uncorrected if no condition in the template inventory describes it with sufficient support under the scoring and eligibility requirements.

This is the sense in which the method is error-driven. It does not start by trying to describe every circumstance in which a syllable begins or continues a word. It starts with the decisions provided by longest matching and searches for corrections where the current tree falls short. Consequently, many contexts can retain the proposals from the first pass without requiring a separate learned condition for each correct decision.

#### Produce a segmented sentence

At application time, the program runs longest matching on the incoming text and makes the same local record for each syllable. A window slides from left to right over the initialized text. The tree evaluates the resulting windows and returns a final `B` or `I` for each center. Because the windows are taken from the initialized sequence, a correction at the preceding syllable is not written back into the inputs of the next tree decision. The left-to-right scan organizes processing, while the conditions themselves can also use syllables to the right.

Once the tags have been assigned, the program turns the label sequence back into the underscore representation. A beginning opens a word, while a continuation gets joined to the preceding syllable grouping. In the paper's phrase, changing `thu` to `I` eliminates the word boundary initially put between `thuế` and `thu`. The continuation at `nhập` and the beginning at `cá` then yield `thuế_thu_nhập cá_nhân`. The output is a word segmentation in the same notation as the original annotation, so the reference and prediction can be compared as word sequences.

### Experiments and results

#### Training, development, and test material

The authors use the benchmark Vietnamese [treebank](https://md.research.elamur.ai/free/en/topics/treebanks/) and follow the experimental setup used by Nguyen and Le. The full training set contains 75k sentences with manually marked word boundaries. Those sentences average about 23 words each. The test set comprises 2120 sentences from 10 files, `800001.seg` through `800010.seg`, and averages about 31 words per sentence. The paper identifies the data as a release by the national VLSP project for research or educational use. The test files had originally been released for evaluation in the project's part-of-speech tagging shared task.

For threshold selection, the authors sample 5k sentences from the full training set as development material and use the remaining 70k sentences for learning. They compare candidate threshold settings by F1 on the development set and select 2. That value is a minimum score for a candidate rule under the stated selection procedure. It is a setting of the correction learner, separate from a decision about how long a dictionary match should be.

After choosing the threshold, the authors train again with all 75k training sentences. The resulting tree contains 1447 rules in total. The 5k sentences used during threshold development are thus included in the final training set. The headline segmentation scores come from the separate test files. The development score selects the setting, whereas the test score measures the segmenter with that setting and the full training material.

This protocol matters when interpreting the scale of the experiment. The 1447 rules are the outcome of fitting the selected procedure to the full training set, not the number of templates or a predetermined limit on the tree. The templates describe the permissible forms of conditions. The training material supplies concrete syllables and initial labels, while the threshold and the growing tree determine which of those conditions are retained. Another amount of training material could generate a different set of learned rules even if the templates and the threshold were held fixed.

#### Metrics and competing systems

The main measure is F1 for Vietnamese word segmentation on the test set. Precision asks how many of the predicted words agree with the reference segmentation. Recall asks how many reference words the system recovers. F1 summarizes the two through their harmonic mean. This is a different level of evaluation from the agreement checks used by the learner on individual `B` and `I` labels. In the personal income tax example, the initial error is local to `thu`, but scoring the word output concerns the resulting spans.

The test comparison includes vnTokenizer, which uses the same lexicon for its initial segmentation, and two reported versions of JVnSegmenter. The latter are labeled Maxent and CRFs in the results. They give separate points of comparison within the earlier sequence-labeling approach. DongDu and UETsegmenter supply the pointwise-prediction comparisons. The authors draw on published results obtained under the same experimental setup. The table in the paper attributes the reported results for vnTokenizer, JVnSegmenter, and DongDu to Nguyen and Le.

Sharing the lexicon with vnTokenizer makes that comparison informative about the role of later processing. Both systems can draw on the same word inventory initially, yet the rest of their pipelines can resolve ambiguities differently. The two JVnSegmenter variants help readers see the range of scores for the reported sequence-labeling alternatives. UETsegmenter is especially relevant when interpreting the results because its full-data score is close to RDRsegmenter's and the paper also compares the two as the training sample shrinks.

#### Segmentation quality on the full test set

RDRsegmenter's test F1 is 97.90, the highest in the comparison. UETsegmenter follows at 97.87, and vnTokenizer scores 97.33. The JVnSegmenter variants are at 97.06 for CRFs and 97.00 for Maxent, while DongDu scores 96.90. The paper describes the F1 advantage over vnTokenizer as 0.5+% and the improvement over JVnSegmenter as 0.8+%. The ordering on the full test set places the strongest pointwise baseline very close to the rule-based system.

Vietnamese treebank test F1 by segmenter RDRsegmenter leads on F1, with UETsegmenter close behind.

**The numbers**

| System or setting | F1 % |
| --- | --- |
| vnTokenizer | 97.33 |
| JVnSegmenter-Maxent | 97.00 |
| JVnSegmenter-CRFs | 97.06 |
| DongDu | 96.90 |
| UETsegmenter | 97.87 |
| RDRsegmenter (this paper) | 97.90 |

The precision and recall results show how the leading F1 scores arise. RDRsegmenter's test precision is 97.46 and its test recall is 98.35. UETsegmenter yields 97.51 precision and 98.23 recall on the same test set. UETsegmenter therefore has the highest precision in the comparison, while RDRsegmenter has the highest recall. The win in F1 belongs to the system whose word output recovers more of the reference words at this reported operating point. Its predicted words have a slightly lower rate of agreement with the reference than UETsegmenter's.

Vietnamese treebank test recall by segmenter RDRsegmenter recovers the greatest share of reference words.

**The numbers**

| System or setting | Recall % |
| --- | --- |
| vnTokenizer | 97.69 |
| JVnSegmenter-Maxent | 97.40 |
| JVnSegmenter-CRFs | 97.49 |
| DongDu | 97.46 |
| UETsegmenter | 98.23 |
| RDRsegmenter (this paper) | 98.35 |

The other systems' precision values put the leading pair in context. On the Vietnamese treebank test set, vnTokenizer reports 96.98 precision, JVnSegmenter-Maxent 96.60, JVnSegmenter-CRFs 96.63, and DongDu 96.35. The difference between precision and recall rankings is visible among these systems too. DongDu's recall stands above the Maxent variant's in the reported comparison, while the Maxent variant's precision is higher. Reporting both measures helps explain how systems with different profiles end up close in F1.

A benchmark score attaches to the complete system that produced the word sequence. For RDRsegmenter that includes the lexical first pass, the context representation, and the learned tree. For vnTokenizer, the shared lexicon reduces one obvious source of variation, while the two complete processing procedures still differ. The result supports the authors' claim that their system improves on the earlier benchmark figures. The comparison itself cannot allocate the improvement among the individual design decisions that went into the correction stage.

#### Throughput during segmentation

The authors time RDRsegmenter on a personal computer with an Intel Core i7 2.2 GHz processor. To calculate the average speed, they measure how fast segmentation runs on the test set in each of 100 trials. The single-threaded implementation reaches 62k words per second. In the direct comparison reported for this setup, that throughput is 1.3 times UETsegmenter's. RDRsegmenter and UETsegmenter are implemented in Java.

The timed operation begins after loading. For a process that has already loaded the resources it needs, words per second describes how quickly it can segment a stream like the test material. Startup is a different part of the execution. The paper treats loading separately and gives UETsegmenter's loading time as 10 seconds. The unit printed for RDRsegmenter's corresponding loading figure is unclear, so the throughput comparison is the precise speed result to carry forward.

The paper also cites the speed results previously reported by Nguyen and Le for a different computer, an Intel Core i5-3337U 1.80GHz. In that earlier evaluation, JVnSegmenter reaches 1k words per second, vnTokenizer 5k, DongDu 17k, and UETsegmenter 33k. DongDu is implemented in C++, while the other programs in that comparison are implemented in Java. These measurements establish UETsegmenter's position among those implementations on the earlier machine. The authors connect that ordering to the direct comparison between RDRsegmenter and UETsegmenter. As a consequence, the speed claim about the older systems rests on the combination of comparisons, while the factor of 1.3 comes from the direct comparison.

The benchmark therefore reports both the quality of the resulting words and the rate at which the running program produces them. The speed result is consistent with the structure of the method. After initial segmentation, the program constructs a local window and follows a single path through the tree for each position. The paper does not break down the measured time among dictionary matching, window construction, traversal, and output conversion, so the reported rate belongs to the implementation as a whole.

### What the ablations show

The paper contains no component-removal ablation and instead examines changes in training-set size, tunes the rule threshold on development data, and compares the complete segmenter with systems using related resources or task formulations.

#### Learning from fewer annotated sentences

The training-size comparison is the clearest controlled variation reported. The authors compare RDRsegmenter with UETsegmenter at 9.5k, 19k, 37.5k, and the full 75k training sentences. The plotted measure is Vietnamese treebank test F1. The paper describes a clearer advantage for RDRsegmenter in the smaller-data regime. This adds a qualification to the almost tied full-data result. The relation between the systems looks different when they receive less labeled training material.

The distinction matters because a full-data comparison answers a specific question about the available benchmark split. A smaller-data comparison asks whether the relative performance survives a restriction on annotated examples. Here the pattern favors the rule-based segmenter under that restriction. The program retains its way of starting from a dictionary proposal while learning corrections from the available sentences. One plausible reading is that the lexical first pass gives the learner useful decisions before it has seen many annotated cases, leaving the learned rules to address recurring failures. The experiment compares the behavior of complete systems, so it does not identify how much of the smaller-data advantage comes from that starting point.

The training-size plot is evidence about sample size across the reported settings. It gives no account of which errors remain at each setting, how the rule count changes with the amount of training data, or whether some template families become more valuable as more sentences are added. Those questions would require information about the resulting trees or their predictions in addition to overall F1. The authors' result concerns comparative segmentation performance as the supply of annotated sentences changes.

#### Choosing the minimum support for a correction

The threshold search examines a different factor. At a node with errors, the learner can produce concrete rules from those cases. Requiring a minimum score governs when a candidate has enough support to become part of the tree. With a stricter threshold, a candidate that corrects only an uncommon training pattern may be left out. With a looser threshold, the learner has more opportunities to add rules for narrowly recurring contexts. Either effect follows from how the score is used, while the effect on held-out words has to be measured.

The reported selection of 2 gives the best development F1 in the authors' threshold search. It establishes which setting the authors carried into final training on the full data. The experiment is described as a way to choose that operating point. The paper gives no series of development scores showing how quickly performance changes around it. The selected setting therefore provides evidence of a measured choice on the development split, with the shape of the sensitivity curve left open.

Thresholding and the correct-case eligibility check also serve different roles. The score asks about coverage and consequences among the errors associated with a node. The additional check for later nodes concerns windows the node already handles correctly. Tuning the score threshold leaves that check in place, along with the templates and tree traversal. The development result cannot tell how performance would change if any of those other parts were removed.

#### What can be learned from the comparisons and example

The shared lexicon gives the vnTokenizer comparison a partial control. Since both systems use the same lexicon initially, their different F1 scores show that access to that inventory alone does not fix benchmark performance. There remains room for different strategies to select or revise boundaries. The comparison does not report what the longest-matching component alone would score on the test set. It therefore cannot be used to read off the gain contributed by the entire learned tree over its own starting predictions.

The paper's example gives a more local view of what the correction stage can do. The error at `thu` creates a candidate whose neighboring syllables furnish a recognizable context for changing `B` to `I`. That walkthrough connects the form of a rule to an observable difference in word output. A hand-worked example can show the mechanism with greater precision than an aggregate score, while leaving open how frequently the same kind of lexical context is responsible for improvements on held-out sentences.

The comparison with UETsegmenter contributes a complementary observation. On the full test set, the precision and recall values indicate that their final word outputs favor somewhat different tradeoffs even when their F1 scores are close. This does not identify the particular words on which they disagree. A breakdown by word length, dictionary status, boundary pattern, or type of rule would be needed to connect the aggregate results to error categories. The evidence supports a relative performance claim, and the worked example explains a possible path from context to correction.

### Limitations

#### Scope the authors identify

The authors distinguish the language-specific first pass from the correction procedure. Their Vietnamese system uses a Vietnamese lexicon and treats the syllable as the unit to be labeled. They argue that the rest of the approach can be viewed more generally, and suggest adapting it to Chinese and Japanese by treating characters as analogous input units. That proposal describes a possible transfer of the learning design. The reported experiments remain on Vietnamese, and the paper leaves adaptation to those other languages for future work.

The timing scope is also explicit in the paper. The authors average repeated segmentation of the test material and exclude resource loading from the timed runs. Their result is therefore most directly applicable to a segmenter that has already started, using the implementation and machine tested. The paper provides older speed figures to situate other tools, with a different processor involved in those measurements. A single-machine rerun of every system would answer a narrower comparative question about their speeds under identical hardware conditions.

#### What follows from the evaluation design

The quality findings are tied to one benchmark and its manual word groupings. The results establish how well the systems reproduce those groupings on the held-out files. The paper describes segmentation as a preparation for other Vietnamese language tasks, but the evaluation stops at segmentation quality. An improvement in word F1 does not provide a measurement of the size or direction of any effect on subsequent tagging, retrieval, or interpretation. Such a result would need an evaluation in the downstream task itself.

The test set also represents a particular choice of texts and annotation. Different collections could contain expressions, spellings, or word groupings underrepresented in the benchmark. The learner sees the boundaries that its training annotation treats as correct, and its hypotheses are built from recurring contexts in that material. The paper does not evaluate a transfer to a different text collection or show how the system behaves when the intended segmentation follows a different convention. The reported scores thus concern recovery of the benchmark's written decisions.

The margins call for care as well. The table shows RDRsegmenter leading UETsegmenter on F1, while the ordering is reversed for precision. No uncertainty interval or significance test accompanies that comparison. The observed values establish the order of the systems on the reported evaluation. They give no estimate of how much that order might vary under another sample of sentences. For the smaller-data comparison, the paper describes the plotted advantage without establishing its variation across repeated training samples.

Throughput has similarly specific conditions. The implementation is single-threaded and the timed input is the benchmark test set. The paper does not report memory use, training time, performance on much longer documents, or how speed changes with parallel execution. Those measures would matter for different deployment questions, while the question answered by the paper is how fast its running segmenter processes the benchmark data. The published rule count gives the size of the fitted tree in rules, but it does not give the typical number of conditions evaluated per syllable.

#### What the representation can express

A rule sees the text and initial tags inside a 5-syllable window and can test only the combinations made available by the templates. If distinguishing evidence appears farther away, that evidence has no direct field in the window. The initial tags can still carry an effect of the first pass, so the window should be understood as a restriction on what, specifically, the correction tree can inspect. A rule can distinguish cases with different local tags even when their syllable strings match.

A related consequence concerns genuinely identical inputs to the tree. If two syllable positions present the same window fields but the benchmark assigns different central labels, their traversal will be the same. Their distinction must come from information absent from the representation. The context dictionary is described as associating a window key with a gold tag, and the paper does not detail how conflicting targets for an identical key are represented during learning. This is a reproducibility detail about the training records as well as an intrinsic limit on the distinctions the final tree can make.

The rule learner also depends on the particular error patterns produced by longest matching with the chosen lexicon. Switching the lexicon or the initial segmenter could change the tags on the center and neighbors, even where the gold boundary is unchanged. A condition learned to detect one recurring initial pattern might then be reached less frequently or in a different set of contexts. Since the paper evaluates the two stages together and gives no comparison holding the tree fixed across different initial segmenters, it leaves their portability as a pair of empirical questions.

Finally, individual traces and aggregate measurements support different levels of explanation. The path for a given window can identify the rule that supplied its final label. To explain the overall advantage, a reader would also need counts of how frequently rules fire, what they repair, where they introduce errors, and how those rates change across training sizes. The paper gives the tree-building procedure, a worked example, and the benchmark outcomes. It establishes the performance of the fitted system while leaving room for a more detailed account of which decisions produced that performance.

### What came after

Later citations connect RDRsegmenter to work on Vietnamese text for several different purposes. A citation establishes a link between the papers. It can accompany use of the released segmenter, discussion of segmentation as prior work, or a methodological comparison. The titles identify the problems those studies take up, while the specific role of RDRsegmenter in their procedures remains unspecified.

PhoBERT concerns pretraining for Vietnamese. The connection to the segmentation paper is the choice of text units before further processing. RDRsegmenter's contribution at that stage is a way to group spaced syllables into annotated-style words. For a project centered on Vietnamese pretraining, the corresponding methodological question is whether the input preserves syllable spacing or first applies word grouping. The citation links the work to that preprocessing problem without establishing which corpora were segmented with RDRsegmenter or what effect a segmentation choice had on PhoBERT's results. [PhoBERT](https://md.research.elamur.ai/free/en/papers/nguyen-2020-phobert-pre-trained-language-models/)

The Text-to-SQL pilot study concerns [semantic parsing](https://md.research.elamur.ai/free/en/concepts/semantic-parsing/), specifically the mapping from Vietnamese text to SQL. Its task gives word boundaries a different potential role. Here the issue is how to represent the expressions in a question before interpreting them as parts of a database query. Combining syllables changes the input units available to the parser, while the target remains a query. The citation puts Vietnamese segmentation in the context of that task. It does not establish that the pilot study trained an exception tree, ran the released program, or evaluated an effect attributable to word grouping. [A Pilot Study of Text-to-SQL for Vietnamese](https://md.research.elamur.ai/free/en/papers/nguyen-2020-pilot-study-text-sql-semantic/)

The parallel corpus for Central and Northern Vietnamese places the connection in data preparation across linguistic varieties. Its stated subject is a parallel collection, so the relevant relation to RDRsegmenter is the choice of units in corresponding texts. Word grouping is one way to prepare those texts for comparison, and a segmentation convention would affect which sequences appear as individual units. The citation alone leaves open how the texts were segmented, whether both varieties were processed alike, and whether any match between corresponding texts depended on the segmenter. [Parallel corpus for Central and Northern Vietnamese](https://md.research.elamur.ai/free/en/papers/le-2023-parallel-corpus-vietnamese-central-northern/)

## Cite

Cite as Dat Quoc Nguyen, Dai Quoc Nguyen, Thanh Vu, Mark Dras and Mark Johnson. 2018. A Fast and Accurate Vietnamese Word Segmenter. Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018).

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

```bibtex
@inproceedings{nguyen2018fast,
  title = {{A Fast and Accurate Vietnamese Word Segmenter}},
  author = {Dat Quoc Nguyen, Dai Quoc Nguyen, Thanh Vu, Mark Dras and Mark Johnson},
  booktitle = {Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018)},
  year = {2018},
  url = {https://aclanthology.org/L18-1410/}
}
```

> 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)
