Elamur Research

Word Segmentation of Vietnamese Texts: a Comparison of Approaches

Paper · 2008 · Quang Thắng Đinh, Hồng Phương Lê, Thị Minh Huyền Nguyễn et al.

Summary

A space in written Vietnamese frequently marks the end of a syllable. The word can continue across that space. A reader recognizes xe đạp as the word for bicycle, although xe and đạp can each carry meaning on their own. A program that splits the text at every space would treat the two parts as separate words. A program that joins every familiar pair would make a different mistake whenever the same components function independently. The paper asks how well automatic systems can recover the words that Vietnamese linguists identify in running text. It also sets out what the linguists were asked to count as a word, a necessary step for evaluating word segmentation.

The authors compare three systems. vnTokenizer uses a lexicon to find possible words and frequencies of neighboring words to choose among competing segmentations. PVnSeg also seeks a segmentation with as few words as possible, but puts more effort into recognizing patterns such as names, abbreviations, dates and numbers around that search. JVnSegmenter learns to label syllables according to whether they begin a word, continue it or fall outside those categories. The comparison uses articles from the Politics–Society section of Tuổi Trẻ that linguists manually checked and segmented. Its scoring procedure gives credit when a system and the reference identify a word at exactly the same place in the text.

PVnSeg has the highest reported precision, recall and F-measure. Its F-measure is 96.55 %, compared with 94.42 % for JVnSegmenter after training on the study corpus and 94.05 % for vnTokenizer. JVnSegmenter scores 83.27 % with its original parameters. The authors could not establish whether those parameters had been trained under the same rules for deciding what constitutes a word. vnTokenizer shows the least variation in performance between articles, a separate advantage from achieving the highest aggregate score.

The authors expected the choice among plausible sequences of familiar words to matter, and several of the systems devote machinery to making that choice. Their inspection of the errors points elsewhere. They report that compounds missing from the dictionary account for most errors across the systems, while ambiguities between available segmentations arise relatively rarely in the material they studied. The paper therefore identifies two different problems hidden inside a single segmentation score. A system can choose the wrong analysis when the right one is available, or it can fail to recognize a word that its resources do not already support. The authors give priority to the latter problem in their proposals for future work.

Deep dive: Word Segmentation of Vietnamese Texts: a Comparison of Approaches

This study compares Vietnamese word segmentation systems and finds that compounds missing from the dictionary are the main source of errors. · about 34 minutes to read

The problem and its context

Where written spaces leave a decision open

A segmentation system converts a stretch of writing into units that can be handled as words. The visible spacing in Vietnamese helps with the first part of that job. It identifies units that the paper calls tiếng, which are already separated in ordinary text. The system has to decide which of those units belong together. Its input therefore supplies candidate boundaries, and its output says which candidates are actual word boundaries under the rules of the task.

The difficulty comes from how Vietnamese forms words. The paper describes a stock of about 7,000 syllables from which much of the vocabulary is built through combination. A syllable can contribute to the meaning of a compound and can frequently occur as an independent meaningful unit. Finding a known syllable on each side of a space therefore gives a system very little reason, by itself, to decide whether the space falls within a word. The bicycle example makes the practical problem visible. Both components are recognizable, and the complete expression still has to be recovered as a unit.

The paper gives a dictionary figure to convey how central compounding is to the task. It reports 28,000 compounds in a dictionary of 35,000 words. These numbers describe a dictionary's entries. They establish that a segmenter designed to handle familiar vocabulary has to take compounds seriously from the outset. They leave open how frequently particular compounds occur in the newspaper material and how much of that material the dictionary covers. A dictionary can contain a large inventory of compounds while still omitting forms that arise in ordinary use.

The authors distinguish their problem from the study of compound expressions in the inflected languages they discuss. In that setting, they describe research that looks for established syntactic expressions with a specific meaning, often of interest within a domain. Such expressions can be absent from dictionaries, and the paper places much of that work in terminology extraction. In its account of Vietnamese, compounds belong to the ordinary vocabulary. The distinction matters for the intended scope of the system. A Vietnamese segmenter needs a policy for compounds throughout the text, including vocabulary that carries no special importance to a domain.

The comparison also depends on the writing system. As the authors explain through work on Thai, locating syllables can itself require analysis when the script does not put a space between them. Word segmentation then follows that earlier operation. In the paper's comparison with Chinese, individual written characters provide readily identifiable starting units. Vietnamese spaces serve a related practical purpose by making the tiếng visible. Each writing system gives the segmenter a different starting representation, even when the higher-level problem of joining units into words looks similar. Thai language resources and behavior analysis and Stochastic finite-state word segmentation for Chinese.

This is why the question matters for natural language processing. Any operation that expects words inherits the decisions made about their boundaries. A lexical lookup, for instance, can only consult the entry for a compound if it receives the compound as a unit or has some independent way to identify it. A system that assigns grammatical labels to words likewise needs to know what span each label will describe. The paper addresses that upstream decision by defining and measuring the words themselves. Natural language processing.

Choosing among known words and finding new ones

The authors use earlier work on Vietnamese to distinguish two jobs. One is to choose among segmentations that a lexicon already supports. Imagine that a span can be read as a familiar compound and that its components are also familiar words. The lexicon has provided evidence for both readings. A further procedure is needed to decide which reading fits that occurrence. Earlier Chinese work, as discussed in the paper, combined information about possible words with statistical evidence for choosing a sequence.

The other job is to find words missing from the lexicon. A system may readily recognize the components of an unfamiliar compound, while the entry that would license the whole span is absent. Under a search that requires dictionary support for candidate words, additional effort in comparing the existing candidates cannot recover that missing entry. The procedure needs some source of evidence that can propose a unit beyond the words it already knows. This is a coverage problem, and it can arise even when the program finds a clear winner among the candidates it was given.

The paper identifies collocation measures as one route explored in previous research on unknown words. These measures use patterns of co-occurrence to assess whether components belong together. The authors mention mutual information and the t-score in describing this line of work in Chinese and Thai. The common idea is that recurring combinations can supply evidence that a sequence should be considered for extraction. The paper also notes an approach in which morphosyntactic analysis supplies evidence about possible boundaries. That brings the grammatical behavior of a sequence into a decision that can otherwise be made using lexical or distributional evidence. Automatic corpus-based Thai word extraction.

The distinction between the two jobs clarifies what the compared Vietnamese tools set out to do. A maximum-matching procedure looks for a grouping of possible words that minimizes the number of output words. Its primary task is to search among segmentations supported by recognized units. Pattern matching can open another route to recognition for familiar forms, such as a date that follows a predictable format. A syllable tagger can assign boundaries using context rather than asking a lexicon to enumerate every complete candidate. These differences in design determine where each system can get evidence for joining a sequence.

Pattern-based recognition also shows why the label unknown needs care. A particular number or a person's name may be absent from a dictionary even though the string displays recognizable structure. Heuristics can exploit that structure. An unfamiliar compound can be harder because its components may look exactly like words that occur independently and because it need not have an overt marker of its type. The paper describes the Vietnamese tools as making some provision for conspicuous classes of unfamiliar sequences, with general discovery of new compounds still unresolved.

Why the reference needs rules

Even if every system returned a complete grouping of the text, the groupings would still need a common standard of comparison. Vietnamese orthography gives the annotators the same syllable boundaries the program sees. Deciding whether adjacent syllables form a word requires a separate judgment about meaning, formation, usage or the kind of expression involved. A reference corpus records that judgment in a form that a program's output can be compared against. Linguistic annotation.

The paper consequently treats the definition of the target as part of the research. A compound, a reduplicated form and an expression such as a date may all span multiple written units, yet the reason for grouping them can differ. For a compound, the relevant evidence can be its established meaning or frequency of use. For a date, the specification can recognize the structure of the expression as a whole. A system that learns from the corpus is learning decisions made under all those conventions. A system that relies on a lexicon and rules has to reproduce those decisions through the resources and procedures built into it.

This brings the linguistic and computational questions together. One question asks which spans qualify as units in the reference. The other asks which signals let a program find those spans in raw text. Agreement with the reference tells the authors how well the signals worked for the defined task. Studying the disagreements can then reveal whether a system ran short of lexical coverage, misread an expression with a recognizable form or made a poor choice among competing analyses.

The method, step by step

Defining the units in the reference

The authors draw on principles discussed by an international standards working group to develop rules for their corpus. The rules give annotators a target and give the experiment a way to resolve cases in which spacing alone is uninformative. Their policy covers ordinary lexical items as well as certain expressions with internal structure. Each category specifies a reason a span can count as a unit.

For compounds, an established meaning can justify joining the components. The paper illustrates this with xe đạp, bicycle. Its components refer to a vehicle and to pedaling, while the complete expression names a particular kind of vehicle. The decision concerns the meaning associated with the full expression in use. The specification also allows frequency of use to justify compound status. A segmentation policy based completely on whether the meaning of a combination is predictable would miss that second criterion.

Word formation provides a different basis for grouping. The authors treat a form created with a bound morpheme as a unit. A bound morpheme is an element that participates in forming a word by attaching to another form. The paper gives tâm lí học, psychology, as an example and identifies học with study in its explanation. The rule lets the full derived expression be identified as a word even when ordinary spacing exposes its internal components.

Reduplication receives its own treatment within word formation. A repeated form can have a conventional function expressed by the whole sequence. In the paper's example, tháng means month and tháng tháng has the sense of month after month. The annotation counts the reduplicated form as a unit. Repetition thus gives the annotator a reason to consider the two occurrences together, even though the same spelling on its own is already recognizable as a word. Morphology.

The specification also recognizes certain multiword expressions. The paper gives a connective with the sense of because of as an example. What matters for segmentation is that the expression is assigned a single lexical span. This is broader than recovering words whose internal structure resembles the derivation example. An evaluation of the task will count the boundaries assigned to these expressions along with those of more straightforward dictionary items. Idioms and multiword expressions.

Names of people and places count as units under the rules. This creates a task for a segmenter even when the entire name is unfamiliar. A name may run across multiple spaces, and a program has to decide how much of the text belongs to it. The task is to return the correct extent of the name for segmentation. The policy groups names by their role as expressions designating people or places, while pattern-based tools have to approach that decision through observable features of the text.

Numbers, times and dates are grouped as structured expressions. The rule covers written forms, numerical forms and mixtures of the two. The paper's example pairs 30 with ba mươi. The expression counts as a unit under the rule even when its written-out form occupies more than one space-separated piece. This category is especially relevant to the pattern-based systems because the possible values of numbers and dates can vary while aspects of their form recur.

The authors exclude foreign-language words from the segmentation operation. That gives the task a stated scope, although the paper gives less detail on how these cases pass through the individual systems than it does on how compounds, names and structured expressions are grouped. The policy as a whole defines the reference at the level of actual text spans. For the experiment, the practical consequence is that a span receives credit when it agrees with the linguists' implementation of these conventions.

Preparing the newspaper corpus

Linguists from the Vietnam Lexicography Center, Vietlex, manually checked spelling and segmented the selected newspaper articles. Spelling and segmentation are related parts of that preparation. A change in the underlying characters can affect lexical lookup or make positions difficult to align. A boundary decision changes which characters are grouped together. The authors' evaluation uses the grouping expressed in the manually prepared reference and compares it with output produced by the tools.

The corpus serves two purposes. It supplies examples from which a trainable system can learn the annotation policy, and it supplies a reference against which the outputs of all the systems can be compared. These purposes remain distinct within a test run. A span used to assess a fitted system belongs to the test material in that run. The paper uses cross-validation so that the opportunity to learn from this corpus is available where a system has a training stage.

The trained method sees annotated decisions as examples of how to assign boundaries. The dictionary methods approach the same reference through lexical entries and the rules and statistics available to them. This puts the systems on a common evaluation target while allowing their information sources to differ. The paper does not give the same level of training detail for each system, so the shared split procedure should be understood as the framework for comparison.

vnTokenizer searches spans and ranks segmentations

vnTokenizer begins by using regular expressions to analyze the text. A regular expression specifies a pattern in the written input. Here such patterns identify material that can be recognized directly and the lexical phrases that are passed on for word segmentation. This first stage gives the system a way to handle regular forms separately from spans that require a search over possible words.

For the phrases that require a lexical search, the system consults a Vietnamese lexicon stored as a minimal finite-state automaton. An automaton has states and transitions. Reading successive parts of an input moves through transitions, and reaching an accepting state signals that a sequence is recognized by the stored lexicon. The compact representation allows the segmenter to check which portions of the phrase match complete entries without having to treat every possible phrase segmentation as a fresh dictionary lookup.

The lexical matches are used to build a graph for the phrase. Its role can be understood by placing the positions of the input in order. A possible word spans a start position and an end position. Following a sequence of such spans through the phrase gives a candidate segmentation. A longer match can cover positions that a different candidate covers with several shorter matches. Constructing the graph makes it possible to represent these alternatives together.

The maximum-matching criterion looks for a complete segmentation containing the fewest words. In this setting, maximum matching applies to the segmentation of the phrase as a whole. Selecting a long word early can influence which matches remain available further along, so the criterion is understood in terms of the completed grouping. The system keeps the candidate segmentations produced by this search for its ambiguity resolver. Candidates can have the same word count while disagreeing on where particular boundaries fall.

The final choice uses a smoothed bigram probability estimate. A bigram is a pair of consecutive units, and here the relevant units are words as grouped by a candidate segmentation. Two candidates can use the same number of words but imply different neighboring word pairs. Word and pair frequency information helps the resolver prefer a sequence whose words are more plausible together under those estimates. Smoothing allows rarely seen or unseen pairs to receive usable estimates, so an absence in the frequency data need not by itself eliminate a candidate. The paper describes how these estimates are used to resolve ambiguity and leaves the smoothing formula unspecified. N-gram.

How vnTokenizer segments a phrase

The steps in order.

How vnTokenizer segments a phraseStep 1: Recognize patterns and identify lexical phrases1. Recognize patterns and identify lexical phrasesStep 2: Find dictionary matches with the automaton2. Find dictionary matches with the automatonStep 3: Build a graph of possible word spans3. Build a graph of possible word spansStep 4: Keep candidates returned by maximum matching4. Keep candidates returned by maximum matchingStep 5: Rank alternatives using smoothed bigram estimates5. Rank alternatives using smoothed bigram estimatesStep 6: Return the preferred segmentation6. Return the preferred segmentation

The graph and the final ranking therefore do work at different points. The graph supplies possible lexical spans and lets the search combine them. The probability estimates compare the candidate sequences that come out of that search. A valid word that has no corresponding way into the graph cannot acquire that span through bigram ranking. Conversely, a word may be represented correctly in the graph while the resolver still chooses a different candidate. These are distinct ways for the output to disagree with the reference.

The paper identifies vnTokenizer as a Java implementation bundled as an Eclipse plugin and distributed under the GPL. Its comparison concerns the segmentation pipeline that combines patterns, lexical search and statistical selection. It provides a functional description of those stages, while the implementation is the resource it names for the system itself.

PVnSeg recognizes structured forms around lexical matching

PVnSeg also seeks a segmentation with the smallest number of words. It uses backtracking for the matching search. Backtracking lets a search reconsider an earlier choice when following it further through the text proves unsuitable. That makes it possible to explore alternative groupings while retaining the same overall criterion. The authors describe this implementation choice as a way to make the matching procedure more efficient.

The main distinguishing feature is the amount of pattern-based processing around the matching step. The authors describe a set of heuristics, or rules that use visible clues to make practical decisions, for dealing with proper names, common abbreviations, dates, numbers, URLs and email addresses. These categories offer clues beyond membership in a dictionary of words. A particular occurrence can be new to the program and still resemble previously characterized expressions closely enough for a rule to handle it.

Dates illustrate how the segmentation specification and a system's recognition strategy can meet. The specification tells the annotators to group a date as a structured unit. A rule can look for a form characteristic of dates and protect the relevant span from a segmentation that would treat its pieces as separate ordinary words. The actual date can vary across articles. The point of the rule is to make use of structure shared by those occurrences. The paper gives the categories of patterns and their general purpose rather than a complete inventory of expressions.

Punctuation creates boundary decisions of its own. A mark can signal an ordinary division in the text or be part of a recognizable construction. PVnSeg uses clues such as capitalization, digits and special characters to decide how to segment around punctuation. Such decisions can change how much text remains in a lexical phrase and which spans are presented to the dictionary search. They can also affect whether the final token exactly matches the corresponding span in the reference.

The system is described as a command-line tool made of Perl programs. The authors also identify work in progress on street-address recognition and on gathering lists of common abbreviations automatically from corpora. Those are proposed extensions of the same approach. They show what kinds of regularity the developers thought could be put to use, without establishing what these additions would contribute to the system measured in the experiment.

PVnSeg's design is useful for understanding the comparison because a segmentation program can make progress before or after its central lexical search. If surrounding processing has already identified an expression as a unit, the search has a different decision to make than it would over the untouched text. The reported outcome for PVnSeg covers the combined procedure. It therefore reflects the matching algorithm, the resources behind it and the way the rules direct its use.

JVnSegmenter predicts labels for syllables

JVnSegmenter expresses segmentation as a labeling problem. Its input is a sentence represented as a sequence of syllables. It assigns each position one of three labels. BW marks the beginning of a word, IW marks a position inside a word, and O is the remaining category. A BW followed by one or more IW labels identifies a word that spans several syllables. A BW with no following continuation can identify a word that occupies a single syllable.

This representation makes a compound boundary recoverable from a sequence of local decisions. For the bicycle example, the first component would receive BW and the second IW if the expression is taken as one word. If the two components start separate words, both would receive BW. The characters within the expression can stay exactly as they are. The difference is entirely in which syllables start a unit and which continue it. The tagger therefore builds a word grouping through labels on the input, without needing the same graph of full-word candidates as vnTokenizer.

The paper discusses two learning techniques for the label assignment. The one evaluated in this comparison is a linear conditional random field, or CRF. It assigns a score to label sequences for the observed sentence using features. A feature is an indicator that can connect something observable at a position, or something about the labels, to a preference for a particular labeling. Learning from annotated text determines how strongly the different indicators should affect the decision. Machine learning.

The CRF has per-state and edge features. The per-state features pair a property of the observed context at a position with the label at that position. The paper calls a property tested in this way a context predicate. It provides evidence for a label when the condition it represents is present. This allows the tagger's decision about a syllable to depend on what is observable in its neighborhood, rather than exclusively on whether the syllable itself frequently begins or continues a word.

Edge features supply evidence about neighboring labels. In the first-order dependency used here, the connection runs between successive label positions. This gives the system a way to account for the fact that a continuation label has a relationship to the preceding label. The order describes the dependency among labels. The observation features can still draw on a local context around the current syllable. That distinction explains how the method uses both the shape of a proposed label sequence and information from the written sentence.

The alternative technique described by the authors uses support vector machines with a polynomial kernel of the second degree. A kernel gives the method a way to compare feature representations, and the polynomial choice lets combinations of features influence the comparison. JVnSegmenter's support vector machine configuration includes static and dynamic features. Static features come from the observed context at the position being tagged. Dynamic features take account of the two previous labels during tagging, so the evidence at a position can depend on earlier labeling decisions.

The authors draw on an earlier investigation of both techniques to choose the feature configuration for the comparison. They report that the previous experiments favored using the full defined set of features and that the two techniques gave comparable results there. They use that feature set and present results for the CRF in this study. That keeps the current experiment focused on comparing the segmentation tools and on testing the effect of using JVnSegmenter's distributed parameters or parameters learned from the study corpus.

From character alignment to a score

The evaluation aligns each automatically segmented file with its hand-segmented counterpart by counting non-blank characters. This makes it possible to compare spans even though the systems and the reference place spaces or token divisions differently. A match needs the automatically identified token and the manually identified token to correspond at the same position. Finding the same spelling elsewhere in the article does not give credit for a disagreement in the current occurrence.

Exact span agreement means that splitting a reference word into pieces loses credit for the full word. The extra pieces also enter the count of automatic tokens unless the reference has corresponding matches at their positions. Joining reference words has a related effect. The automatically proposed larger span enters the output count, while the reference counts the individual spans that were supposed to be recovered. The evaluation thus captures the effect on the inventory of output words, beyond counting a disputed boundary in isolation.

The paper describes the metrics in words. In notation, precision is the share of automatic tokens that agree with the reference.

P = C ÷ A

P is precision. C is the count of tokens that match at corresponding positions in the automatic and manual segmentations. A is the total number of tokens in the automatic output. ÷ denotes division and = states the equality. The denominator makes precision sensitive to the tokens a system proposes, including ones produced by splitting or joining spans inappropriately.

Recall is the share of reference tokens that the system recovers.

R = C ÷ M

R is recall, C is the same matching-token count, and M is the total count of manually segmented reference tokens. The division uses the manual inventory as its denominator. This asks how much of the agreed segmentation the tool was able to reproduce.

The authors use the usual F-measure to combine precision and recall.

F = 2 × P × R ÷ (P + R)

F is the F-measure, P is precision, and R is recall. 2 is the constant in the harmonic mean. × means multiplication, ÷ means division, and + adds the metric values in the denominator. The parentheses group that denominator. The resulting score is high when both measures are high. The paper reports the metrics as percentages, and its reported values are the basis for comparing the systems.

Experiments and results

The test material and the comparison

The corpus description identifies 1,264 articles from the Politics–Society section of Tuổi Trẻ and gives a total of 507,358 manually checked and segmented words. This is the paper's specific account of the evaluated collection, with a source, a section of the newspaper and a count. The introduction separately describes the corpus at about 1,500,000 words. The relationship between those totals is left unexplained. The detailed corpus figure is therefore the appropriate one to associate with the named collection, with the introduction's different figure kept visible as an unresolved discrepancy.

The experiment uses 10-fold cross-validation. In this procedure, the data are partitioned into folds, and a fold serves as test material while the remaining folds are available for training. The held-out role rotates so that each fold can contribute evaluation data. The paper chose this framework because some of the systems need training. It gives those systems access to training material without requiring that every system derive its segmentation decisions from the same kind of learned parameters.

The comparison consists of vnTokenizer, PVnSeg and two settings of JVnSegmenter. vnTokenizer represents maximum matching with statistical resolution of competing segmentations. PVnSeg represents maximum matching with more extensive pattern handling. JVnSegmenter uses the CRF labeling approach and appears with its distributed parameters and with parameters estimated from the study's training material. The original parameter setting provides a direct reference point for the retraining comparison. The two maximum-matching tools are full systems in the comparison, and the paper gives no separate score for a whitespace-only segmenter or for bare maximum matching.

The unit of agreement is a correctly aligned token. Precision reflects how many of the words a system outputs occur as the same spans in the manual reference. Recall reflects how many reference words the system reproduces. F-measure gives the balance of these results. Together the metrics show whether a system returns many unsupported spans, leaves many reference spans unrecovered, or does well on both parts of the task. Evaluation and benchmarks.

PVnSeg leads on token agreement

PVnSeg has the highest F-measure on the newspaper corpus at 96.55 %. JVnSegmenter reaches 94.42 % with training on the corpus, and vnTokenizer reaches 94.05 %. The setting with JVnSegmenter's original parameters has an F-measure of 83.27 %. The best results of the three tools are thus in the neighborhood the authors describe in their conclusion, while the distributed JVnSegmenter setting falls well below that group.

F-measure on the Tuổi Trẻ newspaper corpus

PVnSeg leads, and JVnSegmenter improves when trained on the study corpus.

F-measure on the Tuổi Trẻ newspaper corpusvnTokenizer: 94.05vnTokenizer94.05PVnSeg (this paper): 96.55PVnSeg (this paper)96.55JVnSegmenter (original): 83.27JVnSegmenter (original)83.27JVnSegmenter (re-trained): 94.42JVnSegmenter (re-trained)94.42
The numbers
System or settingF-measure %
vnTokenizer94.05
PVnSeg (this paper)96.55
JVnSegmenter (original)83.27
JVnSegmenter (re-trained)94.42

The precision results put PVnSeg first at 96.89 %. JVnSegmenter trained on the corpus follows at 95.03 %, vnTokenizer reports 93.68 %, and JVnSegmenter with the original parameters reports 85.22 %. When the systems are ranked by this metric, the higher position goes to the one with the greater share of its output tokens confirmed by the manually prepared reference.

Token precision on the Tuổi Trẻ newspaper corpus

PVnSeg has the highest share of output tokens confirmed by the reference.

Token precision on the Tuổi Trẻ newspaper corpusvnTokenizer: 93.68vnTokenizer93.68PVnSeg (this paper): 96.89PVnSeg (this paper)96.89JVnSegmenter (original): 85.22JVnSegmenter (original)85.22JVnSegmenter (re-trained): 95.03JVnSegmenter (re-trained)95.03
The numbers
System or settingPrecision %
vnTokenizer93.68
PVnSeg (this paper)96.89
JVnSegmenter (original)85.22
JVnSegmenter (re-trained)95.03

PVnSeg is also first on recall at 96.21 %. vnTokenizer returns 94.42 % of the reference tokens, and retrained JVnSegmenter returns 93.82 %. With the original parameters, JVnSegmenter returns 81.40 %. The recall ordering puts vnTokenizer ahead of retrained JVnSegmenter, while the precision ordering puts retrained JVnSegmenter ahead of vnTokenizer. That distinction is lost in the single F-measure ranking.

Token recall on the Tuổi Trẻ newspaper corpus

PVnSeg recovers the most reference tokens, and vnTokenizer places next.

Token recall on the Tuổi Trẻ newspaper corpusvnTokenizer: 94.42vnTokenizer94.42PVnSeg (this paper): 96.21PVnSeg (this paper)96.21JVnSegmenter (original): 81.40JVnSegmenter (original)81.40JVnSegmenter (re-trained): 93.82JVnSegmenter (re-trained)93.82
The numbers
System or settingRecall %
vnTokenizer94.42
PVnSeg (this paper)96.21
JVnSegmenter (original)81.40
JVnSegmenter (re-trained)93.82

PVnSeg's lead covers both sides of exact token agreement. Its own output has the greatest proportion of confirmed spans, and it recovers the greatest proportion of spans in the manual reference. That gives the authors a clearer basis for identifying the best aggregate performer than the F-measure alone would provide. The ranking below it depends on the metric. The trained labeler has a higher share of confirmed output tokens than vnTokenizer, and vnTokenizer recovers a higher share of the reference inventory.

A metric profile by itself gives limited evidence about the shape of the mistakes that produced it. Precision and recall draw on the same matching-token count and divide it by different inventories. A difference between their values can reflect a difference between the number of output tokens and the number of reference tokens. It cannot locate the disputed spans or tell whether those totals arose from a large number of local splits, a smaller number of wide joins, or a mixture of boundary decisions. For an account of the source of errors, the paper turns to inspection of the text.

Retraining changes the result for the labeler

The original and retrained JVnSegmenter settings answer a practical question about using a distributed tool on a new reference corpus. The software already came with parameters. The authors could run it with those parameters and could also estimate parameters from the annotated training material in the experiment. This creates a comparison within one segmentation approach. It is more direct than attributing differences between the dictionary systems and the labeler to any single design choice.

Both of the component metrics improve with retraining. Precision rises from 85.22 % with the original parameters to 95.03 % with training on the study corpus. Recall rises from 81.40 % to 93.82 %. The F-measure accordingly puts the retrained setting much closer to the other systems. The authors view training on the task as important for JVnSegmenter. Their explanation includes the possibility that the original parameters reflect a different policy for boundaries, since they could not verify that the earlier training used the same rules.

The uncertainty about the original training matters because there are several ways for previously estimated parameters to fit a test corpus poorly. The earlier material could present different usage patterns, different expressions or different judgments about word units. Training on examples from the study collection can improve more than one of those aspects of fit at once. The reported comparison establishes that study-corpus training works better for this evaluation. It leaves the relative contributions of those possible explanations open.

Consistency between articles

The authors also consider the spread of performance across articles. They identify vnTokenizer as the most consistent of the three tools because it has the lowest standard deviation between articles. A standard deviation describes how widely the underlying scores vary. A smaller spread means that the observed article scores cluster more closely. The paper gives the ordering on this property and reports no numerical standard deviation.

This finding adds something distinct to the aggregate comparison. An overall score describes agreement across the evaluated material. The spread across articles describes how much the tool's performance varies over the individual texts that make up that material. A system can lead in overall performance while having a wider spread than another system. The paper accordingly credits vnTokenizer with stability across the newspaper articles and PVnSeg with the strongest aggregate agreement.

The breakdown stops at that level. The authors give no article-level scores or grouping of articles by subject, length or type of difficult expression. The result therefore supports the narrower observation about variation across the sampled articles. It leaves open which texts drive that variation and whether the same ordering would hold for a different publication or genre.

What the ablations show

The paper reports no component-removal ablations. Its evidence about why performance changes comes from retraining the labeler, comparing the complete systems, inspecting segmentation errors and comparing variation across articles. Each analysis uses a different unit of comparison, so each can support a different kind of conclusion.

What changes when the labeler is retrained

The original and retrained JVnSegmenter runs are the closest thing in the experiment to a controlled comparison. Both use the same labeling approach, and the reported change is which parameter set is used. Scores improve on both precision and recall when the parameters come from the study's training material. That shows the practical effect of fitting this labeler for the evaluated task. Accordingly, the distributed-parameter score is best read as the performance of that configuration on this reference.

The authors' concern about segmentation rules gives this comparison a linguistic interpretation. A supervised procedure associates certain contexts with the boundaries observed in its training data. If the training annotation splits an expression that the study annotation joins, a prediction can be consistent with what the procedure learned and still be scored as wrong. The new training material supplies examples that express the same policy as the reference against which the procedure is tested.

That interpretation remains a possibility rather than a verified account of the original errors. Pinning the gain specifically on annotation would require information about the earlier rules and a way to hold constant the other differences between the training corpora. The paper gives neither a matched-corpus comparison with different rules nor a matched-rule comparison across different corpora. The change in parameters measures an effect of training for this dataset as a whole.

What the comparison of rule and probability pipelines supports

PVnSeg's performance is consistent with the authors' view that investing in lexical and linguistic rules can be particularly productive for this corpus. Structured expressions create opportunities for patterns to identify spans that a dictionary search alone may not handle cleanly. vnTokenizer's bigram resolver is designed for a different problem, choosing a plausible sequence when the lexical search has supplied alternative candidates. The value of that resolver depends partly on how often the relevant ambiguity arises.

The system scores put these design priorities in context, but a whole-system comparison cannot allocate credit to individual mechanisms. Both tools use maximum matching, yet their input handling, search implementations and the resources they bring to segmentation differ. PVnSeg's lead does not provide a measured score for turning its rules on or off. In the same way, vnTokenizer's aggregate result does not establish the gain attributable to its bigram resolver. Those effects would require runs in which the rest of the pipeline remained fixed.

The comparison supports a more grounded reading of the authors' interpretation. A system with substantial pattern handling gives the strongest results on this newspaper collection. The error inspection indicates that competing plausible segmentations are relatively uncommon there. Together those observations explain why the authors see greater promise in improving recognition and coverage than in devoting more of the design to ranking familiar alternatives. They leave room for ambiguity resolution to matter in the individual places where the reference word sequence really does compete with another plausible sequence.

What the error inspection adds

The authors identify compounds absent from the dictionary as the main source of mistakes across the systems. That judgment is important because the aggregate scores cannot tell whether a missed span was ever considered by the program. In a system that builds its candidate spans from a lexicon, a missing compound can leave its components as available words while leaving the correct full span unavailable. A strong ranking rule may then select a reasonable candidate within an incomplete set.

The labeler's mechanism is different. It can express a combined span through a beginning label and the appropriate continuation labels. Its ability to represent that answer still depends on whether the observed evidence and learned weights support it on the occurrence in question. Thus the authors' common error category describes the kind of word at issue. It need not imply that each system missed the word through the same internal mechanism.

Compounds and structured expressions also offer different opportunities for repair. A written date or a common abbreviation can expose a form that a rule can test directly. The components of a novel compound can look like the same syllables that occur independently elsewhere. The paper's suggestion of statistical, rule-based and hybrid research on new compounds addresses this difference. Evidence about recurring combinations or linguistic principles of word formation could help discover candidate compounds before the system has to rank alternative readings of them.

The diagnosis is qualitative. The paper gives no count of errors by compound status, no denominator for the frequency of competing analyses and no separate scores for known and unknown words. It identifies what the authors saw most often when examining errors. The size of the opportunity for each proposed improvement remains unmeasured. Similarly, the observation about vnTokenizer's article-level consistency describes an outcome across texts without identifying the stage of the pipeline responsible for it.

Limitations

Limits the authors identify

The authors treat the recognition of unfamiliar compounds as the main unresolved technical problem. The compared tools can recover many words under the reference policy and can use recognizable patterns to cover some kinds of unfamiliar expressions. The paper still finds that compounds missing from the dictionary account for most mistakes. Its conclusion proposes automatic discovery of new compounds as a direction for further work. For statistical approaches, the authors emphasize the need for a sufficiently large corpus. Rule-based approaches would draw on linguistic knowledge of composition, and a hybrid could use both kinds of evidence.

The authors also identify uncertainty in the comparison with JVnSegmenter's original parameters. They could not establish whether those parameters had been learned on data segmented according to the same rules. The original setting consequently measures how well the distributed configuration transfers to this experiment. It cannot resolve how much of the gap reflects mismatched annotation and how much reflects other properties of the original training material. The observed benefit of training within the study corpus holds even though that explanation remains open.

The paper describes some of PVnSeg's recognition work as ongoing. Street addresses and the automatic acquisition of abbreviation lists are examples of unfinished extensions. The reported scores characterize the compared implementation and provide no measurement for those extensions. Similarly, the description of earlier feature experiments for JVnSegmenter explains why the authors selected the full feature set. The current newspaper comparison provides its own results for the CRF configuration, with the support vector machine comparison left to the work described earlier in the paper.

Limits of the corpus and its definition of a word

The named collection comes from one section of one newspaper. It supports comparisons on Politics–Society reporting under the study's annotation policy. Variation across articles indicates something about performance within that collection. Broader claims about Vietnamese writing would require evidence from sources whose vocabulary, punctuation and structured expressions differ. The experiment supplies no results for those sources or for performance when training and testing cross publication or genre boundaries.

The word totals also require care. The introduction describes about 1,500,000 manually segmented words, while the detailed corpus section identifies 507,358 words in the 1,264 selected articles. The paper leaves both figures standing without explaining whether they refer to different scopes of material. The detailed count is tied directly to the Politics–Society collection. The larger introductory count cannot be used to infer an additional training set, a separate evaluation pool or a different number of reference tokens.

The scoring target is a particular definition of a word. The definition is purposeful and documented through categories and examples. Some of its decisions still require judgment, such as when usage frequency is sufficient to treat a compound as an established word. The paper reports no agreement measurement between annotators and gives no account of how disagreement over such decisions was resolved. The experiment therefore measures agreement with the finished reference. It cannot measure how often another group applying the same guidelines would choose the same spans.

Foreign-language material is excluded by the specification, and the paper leaves the implementation and evaluation of that exclusion mostly undescribed. A reader can understand the intended policy, but cannot tell from the reported metrics how frequently these cases occur or how individual tools handle them when they appear near Vietnamese words. The scores likewise do not separate ordinary words from names, dates, numbers or reduplicated forms. A strong aggregate result can coexist with weakness in a particular category, and the paper's numbers cannot show where that happens.

Limits of the evaluation and causal claims

The evaluation rewards exact span agreement. This is appropriate for a task that asks the system to return words, but it scores a span as a whole. A near miss that finds one end of a word and misses the other does not recover that token. The metric also gives each matched occurrence credit regardless of whether it is a frequent ordinary word or a rare, difficult compound. Accordingly, high performance describes the proportion of tokens handled successfully in this corpus. A separate breakdown would be needed to establish performance on uncommon constructions or difficult boundary decisions.

The alignment procedure assumes that corresponding output and reference text can be tracked through their non-blank characters. The authors describe how those characters are counted and how parallel tokens receive credit. They do not give detailed alignment rules for cases where spelling or punctuation characters themselves differ, or clarify every interaction between preprocessing and the final comparison. The description is sufficient to understand the intended unit of credit. It leaves some details open for someone trying to reproduce the evaluation exactly.

Cross-validation describes how the experiment makes training and test material available. The paper gives no fold-by-fold scores or detailed account of how each tool's auxiliary resources relate to those splits. It reports a qualitative ordering of article-level standard deviations and gives no test of statistical uncertainty for the differences in the aggregate scores. PVnSeg leads on all the reported aggregate metrics. How precisely the margins would carry over to another draw of articles is a separate question from the ranking in the reported experiment.

Finally, the comparison evaluates tools that package several decisions together. It cannot isolate the benefit of the pattern inventory, the statistical resolver or any single family of labeling features. The qualitative error analysis provides a reason to investigate coverage of compounds. It does not establish how much of the remaining error a particular discovery technique could recover, or what other errors such a technique might introduce. The article-level results, the retraining comparison and the error observations are evidence about the systems as evaluated. Component-level conclusions would require a different experimental design.

What came after

The later citations place the segmentation comparison in two areas of Vietnamese language processing. One concerns assigning grammatical categories to words. The other concerns developing a pretrained system for Vietnamese. The citations establish that both later studies refer to the comparison. The evidence for the connection is strongest at that level, since the later works' titles identify their tasks but do not specify which resource, result or design choice they took from the study.

The 2010 study investigates a maximum-entropy approach to Vietnamese part-of-speech tagging. Tagging assigns grammatical categories to units treated as words. Segmentation determines what those units are, so the length and location of a span affect what there is to tag in the first place. An expression that is joined under the reference policy presents one span for analysis. The same expression split into components presents a different set of spans. This explains the connection between the research questions without attributing a particular segmentation pipeline to the later study. Part-of-speech tagging. Maximum entropy for Vietnamese part-of-speech tagging.

The distinction between the two tagging tasks is worth making explicit. JVnSegmenter's BW, IW and O labels describe the position of a syllable in a proposed word grouping. The later study's task concerns grammatical membership at the word level. Both tasks use labels, but their targets and units of analysis differ. The citation connects a study of grammatical tagging to earlier research on how to determine the spans available for tagging. It leaves the later study's use of any specific segmenter, corpus or boundary policy undetermined.

The 2020 work introduces PhoBERT as a pretrained system for Vietnamese. Its citation places the segmentation comparison in the context of work that learns from Vietnamese text at an earlier training stage and uses the results thereafter. A segmentation study is relevant because it concerns the units a text-processing pipeline can make available in the first place. The citation gives no basis for assigning PhoBERT a particular error profile from the newspaper comparison, or for claiming that it adopts one of the three systems or the reference corpus. PhoBERT.

The two citations show the reach of the underlying question. In grammatical tagging, a boundary determines which span receives a category. In work on pretraining, a decision about text units concerns the representation available for learning. The segmentation comparison supplies a concrete definition of word spans and evidence of how automatic tools agreed with that definition on newspaper text. Its measured results belong to that benchmark, and the later citations connect the earlier boundary problem to tasks that process Vietnamese beyond the segmentation step.

Cite

Cite as Quang Thắng Đinh, Hồng Phương Lê, Thị Minh Huyền Nguyễn, Cẩm Tú Nguyễn, Mathias Rossignol and Xuân Lương Vũ. 2008. Word Segmentation of Vietnamese Texts: a Comparison of Approaches. Proceedings of the Sixth International Conference on Language Resources and Evaluation (LREC'08).

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

@inproceedings{djinh2008word,
  title = {{Word Segmentation of Vietnamese Texts: a Comparison of Approaches}},
  author = {Quang Thắng DJinh, Hồng Phương Lê, Thị Minh Huyền Nguyễn, Cẩm Tú Nguyễn, Mathias Rossignol and Xuân Lương Vũ},
  booktitle = {Proceedings of the Sixth International Conference on Language Resources and Evaluation (LREC'08)},
  year = {2008},
  url = {https://aclanthology.org/L08-1355/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/djinh-2008-word-segmentation-vietnamese-texts-comparison/