The Korean Morphologically Tight-Fitting Tokenizer for Noisy User-Generated Texts
Paper · 2021 · Sangah Lee and Hyopil Shin
Summary
A Korean personal name in an online comment can have a grammatical ending attached directly to it. To recognize the name, a text-processing system has to recover the boundary between the name and the ending. A system that splits rare strings into smaller pieces can cut through the name itself. Lee and Shin propose a different approach to tokenization, the process of dividing text into units that a system can work with. Their Korean Morphologically Tight-Fitting Tokenizer, K-MT, looks for familiar grammatical material at the end of a space-delimited segment and keeps the remaining text together. The same procedure can handle a familiar word, an unfamiliar name, or a newly coined expression.
K-MT draws on Korean morphology, the structure of words and their meaningful parts. It uses a list of particles and endings, including informal variants found online, and rules for combinations of endings. The authors compare it with Mecab-ko, a Korean morpheme analyzer, and character-based WordPiece, which divides text into reusable units that can be smaller than words. Their experiments cover movie review sentiment, hate speech and bias in news comments, and named entity recognition. The authors also compare the actual splits, since a downstream score alone cannot reveal whether a name survived intact.
The results depend on the task and the vocabulary available to the classifier. Mecab-ko leads on all the review and news-comment evaluations. K-MT trails WordPiece on sentiment and bias but scores 51.38 in hate speech detection on the Hate Speech Dataset validation set, ahead of WordPiece at 44.37. With the vocabulary capped at 25,000 entries, K-MT comes behind both alternatives on named entity recognition. In a separate comparison using unrestricted vocabularies, K-MT reaches 73.05 in test accuracy, above Mecab-ko at 70.64. The authors report the unrestricted result for these two tokenizers.
The segmentation examples explain both the promise of the method and its limits. K-MT keeps some unusual personal names and names built from several ordinary nouns in single pieces, and it can strip a familiar particle from an unfamiliar spelling. It depends on spaces to locate the edges it should examine, so adjoining words without a space can hide the very boundaries it is designed to find. Its gains are clearest where keeping a complete expression is useful and the downstream vocabulary can accommodate the resulting token.
Deep dive: The Korean Morphologically Tight-Fitting Tokenizer for Noisy User-Generated Texts
Lee and Shin’s Korean tokenizer uses grammatical endings to preserve names and slang, with results from reviews, comments, and entity recognition. · about 31 minutes to read
The problem and its context
An unfamiliar word can have familiar grammar
The paper begins from a practical problem with online Korean. Reviews, comments, forum posts and other contributions contain forms that a system built around formal writing may handle poorly. A spelling can be playful, a proper name can be newly encountered, and a sequence of characters can carry an emotional cue. These features matter when the purpose is to understand a review or a comment. Removing them indiscriminately can remove part of what the writer conveyed. The authors treat noise as a property of text in relation to a processing task, with particular attention to the divisions a tokenizer makes before any interpretation takes place.
Some of the variation involves the shape of the message as a whole. Writers can omit spaces or add repeated punctuation. Other variation occurs inside a written segment. The paper mentions standalone Korean letters such as ㅋㅋ and ㅠㅠ, which can serve a role like emojis. A message can also include foreign-language characters, spelling changes, or unconventional grammatical forms. These present different problems. Missing whitespace hides where one stretch of text ends and another begins. A newly coined word can have clear edges and still be difficult to handle because its exact form is unfamiliar. The distinction matters for a tokenizer designed to process the part of a segment next to a space.
The authors concentrate on proper nouns, coinages and internet slang. These categories can share a practical difficulty even though they serve different purposes. A personal name refers to an individual, while a coinage or slang term can express a meaning shared by people in a community. In each case, a particular sequence of characters may carry its value as a whole. If familiar fragments are available inside it, a sub-word tokenizer can produce a usable sequence of symbols while losing that direct representation of the expression. A morpheme analyzer can also subdivide it, for example by treating parts of a compound name as ordinary nouns.
Korean makes it possible to approach unfamiliar expressions through the grammar around them. The paper illustrates this with 소녀, meaning “girl.” It can take 가, which marks the subject in the example, or 를, which marks the object. The result is written together with the noun. The noun supplies the recurring lexical content, and the particle supplies information about its grammatical role. A space-based split alone leaves these together. A split guided by the particle can uncover the same noun in both positions without requiring a separate vocabulary entry for each whole form.
An unfamiliar name can occupy the same position as 소녀. That observation gives the proposed method its direction. Looking up the entire segment would require a known form for every name and for the combinations in which it appears. Looking for a grammatical ending gives the tokenizer a smaller recognition problem. If it finds an acceptable match, it can separate that part and retain the preceding sequence. The success of the operation still depends on whether the characters really are a particle or ending in that instance. The characters themselves can also be the end of a word or name.
What earlier work treated as noise
In the earlier work discussed by Lee and Shin, the meaning of noise changes with the material and the intended use. MTNT used social media to study machine translation under conditions that included spelling and grammar errors, emoji use, and profanity. Research on subtitles considered problems such as misaligned text and incorrect sentence boundaries alongside misspellings. Work on free-text answers from Hindi-speaking children dealt with phenomena including missing word spaces, emoji use, and text written in translation or transliteration. The paper also points to orthographic-noise research, including Training on Synthetic Noise Improves Robustness to Natural Noise in Machine Translation.
These examples help explain why the authors give their Korean study a narrower scope than its opening inventory of informal features. A subtitle alignment error and a novel proper noun both give a processing system difficulties, yet identifying a grammatical ending inside an already delimited Korean string only addresses the second sort of problem. The authors also give an example of repeated exclamation marks carrying emphasis in Korean. The marks change how the utterance reads, while the boundary between the lexical expression and an attached particle is a separate question. Keeping the task narrow makes it possible to judge whether this particular source of linguistic information helps.
For Korean specifically, the authors describe research on bias in comments that used user-generated material without making the comments’ informal linguistic features a focus. They also point to the availability of collections such as the Naver Sentiment Movie Corpus and the Hate Speech Dataset. Other Korean systems built on user-generated corpora already had vocabulary entries for stylistic features, including internet slang and emojis. The question was therefore more specific than whether such forms could appear in a vocabulary. It was how the procedure that builds tokens should treat the unfamiliar part of a segment when familiar grammar surrounds it.
What the existing token units offer
A morpheme is a small unit that contributes meaning or grammatical function. In the girl example, the noun and the attached particle each make such a contribution. Earlier Korean text processing commonly used morphemes as tokens, according to the paper. This suits a language in which a written segment may combine a root with several grammatical pieces. A full analyzer can provide a more detailed segmentation than a procedure that simply checks the end of a segment. Using such an analyzer as a preliminary stage, however, adds a separate component to the processing pipeline.
Subword tokenization approaches the unit of representation from another direction. WordPiece can encode a written form as pieces that occur across other forms. Its units can differ in length, and a common combination can appear as a single vocabulary entry. The paper associates the popularity of character-based WordPiece for Korean with BERT. Here, “character-based” describes the basis from which pieces are built. Some pieces can span several written characters. Their boundaries depend on which strings the vocabulary can use, and can fall in places that have little grammatical significance.
The choice of what counts as a starting character is also consequential for Korean. Written syllables contain smaller letters, and a morpheme boundary can occur within a syllable. The authors describe earlier work that considered units below the syllable for that reason. The resulting pieces give a system access to distinctions that a syllable-level split can miss. They can also produce a more finely segmented representation than is desirable when an entire name is the relevant unit. The paper’s motivation depends on both facts. Some grammatical information is finer than an ordinary syllable boundary, while some lexical information is expressed by strings that are worth keeping whole.
The paper also describes earlier approaches that combine morphological analysis and WordPiece. They obtain a first segmentation from a morpheme analyzer and then apply sub-word processing. The authors cite evidence favoring morpheme-aware sub-words in comparisons of Korean token units. Those methods suggested that grammatical structure could improve the initial segmentation, while leaving open how much of a full analysis a tokenizer needed for the informal forms of interest here. K-MT takes on the narrower job of recognizing grammatical material along the right edge. Its treatment of everything that remains accounts for much of the difference between its output and that of a full analyzer.
The method, step by step
Start with the written segment
K-MT begins by using whitespace to delimit the stretches of text it will examine. A segment in this sense is the string as written between spaces. It can contain both a lexical expression and material attached to it. The segmentation procedure works backward from the right edge of that string, because the grammatical material it seeks is suffixal. Starting there also gives the tokenizer a natural stopping point. Once it can no longer detach a suffix under its rules, it can emit the residue as a token.
Consider 소녀가. The useful observation is that 가 is a known particle at the right edge. Separating it leaves 소녀. The same analysis with 를 leaves the same noun in 소녀를. The resulting representation gives the noun a stable form across the two grammatical uses and keeps a token for the distinction between those uses. The paper contrasts this with a possible WordPiece result in which the whole subject-marked form is an entry. In that case the combined form can be represented efficiently on its own, while the noun may be represented through a different entry in some of its other uses.
The authors use 나, 는, 학교, 에, 간다 and punctuation to illustrate how this looks in a sentence about going to school. The written 나는 yields 나 and 는, and 학교에 yields 학교 and 에. The example displays 간다 as one token and the period separately. It shows that the output can coincide with morpheme-based tokenization on ordinary material while retaining relatively coarse pieces. The period is part of the illustrated output. The paper gives its main algorithmic account in terms of whitespace-delimited segments, suffix matching, and the remaining text.
How K-MT segments a Korean word
The steps in order.
Build an inventory of grammatical material
The inventory gives the procedure evidence about which parts of a segment can stand apart. The authors draw frequent connective and sentence-final endings from Kkma, using a cutoff of more than 100 occurrences. They draw postpositional particles and pre-final endings from Mecab-ko. These are roles within the suffix inventory. The operating procedure uses the entries to check strings, so compiling the inventory and using the tokenizer are different steps. Mecab-ko also serves as an experimental comparator in its own right, where it supplies the full analysis rather than merely contributing entries to K-MT’s inventory.
A connective is an ending that can link the expression it belongs to with following material. A sentence-final ending can close an utterance. A pre-final ending occurs before a final one and can contribute grammatical information inside a sequence of endings. A postposition occurs after the expression it applies to, as the particles on 소녀 illustrate. These distinctions are relevant to the method because a long string at the end of a segment may contain several pieces of grammatical material. Matching that string as a whole and recovering its constituent endings are different possible analyses.
The article’s appendix gives examples rather than a complete enumeration of the suffix inventory. The examples include ordinary endings and forms altered in informal writing. The polite ending 요, for example, has variants 여 and 용 in the authors’ account. The role of those variants in K-MT is concrete. A variant recognized at the edge can be separated while leaving the preceding lexical string intact. The inventory also includes longer informal endings. This means the method can admit some common forms of online variation directly through its matching procedure.
The treatment of these endings is a form of segmentation. If the input contains 용 and the tokenizer recognizes it, the token boundary identifies its contribution while retaining the written variant. The paper uses 이뻐 and 용 as a favorable example, with the former carrying the sense of “pretty” in a variant form. A useful division there is between the expressive word and the informal ending. Recognition of the ending does the work. The preceding form can survive even if the tokenizer has no lexical entry describing it.
This organization makes an important distinction between novelty in the root and novelty in the suffix. A new root can survive simply by being the string left over. A new suffix needs an inventory entry or some other way of licensing a match. A tokenizer can therefore preserve a new coinage with known grammar and struggle on an ordinary word with a newly encountered ending. The paper’s claim about accommodating new words concerns what the procedure keeps after identifying grammatical material at the edge.
Resolve competing matches
Several endings can be plausible suffix matches for the same string. A shorter one may occur at the end of a longer one. As a default, K-MT gives priority to the longer grammatical morpheme. This has an immediate purpose. If a complete listed ending is present, taking a small fragment from its edge first could leave another fragment stranded in the putative root. A longest-match preference supplies a simple way to make a choice without inspecting a dictionary of possible roots.
The authors also incorporate patterns of combined endings drawn from Choi’s study of which grammatical morphemes commonly occur together. The logic is that a recognized combination deserves priority even when the default preference for a longer individual match would favor another division. This is a second source of evidence. The inventory identifies individual forms, and the rules identify acceptable sequences of forms. The rules are presented as patterns, with a variable for the connective or final ending. There is no fitted scoring equation for the segmentation decision.
The following expressions write the paper’s suffix patterns in Korean script. In each expression, the order shown is the order in the written segment. The search begins at the right edge.
었/았 + E
었 and 았 are alternative pre-final endings. The slash means that either form can occupy that position. The plus sign means that the next element follows it in the sequence. E stands for any connective or final ending in K-MT’s inventory. In this pattern, recognizing E at the edge gives the tokenizer a reason to look immediately to its left for either of the pre-final forms.
(으)시 + 었 + E
(으)시 represents the pre-final ending shown with optional 으 before 시, with the parentheses indicating that optional portion. 었 is the next pre-final ending. E again denotes a listed connective or final ending. Each plus sign indicates succession in the written sequence. The pattern puts the form involving 시 earlier than 었, so the candidate is the ordered sequence as a whole.
었/았 + 겠 + E
었 and 았 are the alternatives indicated by the slash. 겠 is the pre-final ending that follows the selected alternative. E is the connective or final ending drawn from the inventory. The plus signs join adjacent positions in the pattern. This sequence extends the possible material to the left of E by allowing the tokenizer to recognize 겠 and the preceding pre-final form in combination.
(으)시 + 었 + 겠 + E
(으)시 is the pre-final form with optional 으, as marked by parentheses. 었 and 겠 are successive pre-final endings, and E is a listed connective or final ending. The plus signs indicate their order in the suffix string. Here the candidate reaches farther towards the root than the preceding patterns. The tokenizer gives priority to a sequence that fits such a pattern over its default preference for a single longer morpheme.
These patterns matter because merely finding a known ending does not establish that the entire grammatical string has been analyzed. Suppose a candidate edge matches E and there is also a compatible pre-final combination immediately before it. The combination gives a linguistically motivated account of more of the edge, and the tokenizer can separate the grammatical pieces accordingly. If the combination is unavailable, the default gives it a simpler basis for choosing a match. The paper describes this ordering of preferences through the inventory and the example patterns. It leaves detailed behavior for every possible collision among patterns unspecified.
Keep the remainder intact
After separating the eligible suffix material, K-MT makes a single token of the remainder. Calling it the root describes its role in the algorithm. It can be an ordinary lexical root, a name made of several recognizable parts, or an unknown spelling. What qualifies it for retention is its position after the suffix decisions. It can enter the output even if the internal structure of the string is unavailable to the tokenizer. This gives K-MT its relatively coarse granularity.
The distinction is visible in a name such as 김유미의. The final 의 is a genitive particle in the example. With that part detached, 김유미 can appear as a token. The procedure achieves a grammatical split by recognizing the particle and a lexical grouping by keeping what is left. Neither operation requires prior identification of the string as a person’s name. As a consequence, the same grouping applies to an unfamiliar string that happens to have the right edge for a licensed split. Later stages are responsible for assigning any named entity label.
Keeping the remainder also changes how a vocabulary is used. If several forms of a root differ only in their attached particles, a segmentation that separates particles can represent those forms with the same root entry and reusable grammatical entries. This is the reason the authors give for expecting a vocabulary of a fixed size to accommodate a more diverse set of independent lexical strings. There is a countervailing effect when the remaining strings themselves are rare. Each whole name or coinage can require its own entry, whereas smaller pieces can be reused across different names.
The paper tests that practical consequence by placing the segmented text into downstream classifiers. The suffix list and matching rules determine the segmentation. Vocabulary limits determine which resulting units can be represented in a particular experiment. Training then uses the segmented input for a labeled prediction task. These stages concern different decisions. An exact name can be present in the tokenizer’s output while being unavailable as a distinct entry under a restricted vocabulary. The experiments on named entities change that downstream restriction to assess the consequences of retaining complete forms.
Experiments and results
Sentiment and news comments
The first evaluations use noisy user-generated text from the Naver Sentiment Movie Corpus, or NSMC, and the Hate Speech Dataset, or HSD. NSMC assigns a positive or negative label to each review. The paper reports 13K reviews for training, 2K for validation, and 5K for testing. The task is sentiment analysis at the review level. A tokenizer is useful here insofar as the resulting representation helps the classifier recover evidence about the review’s polarity.
HSD contains comments on news articles. Its training split consists of 7,896 comments, its validation split contains 471, and its test split contains 974. The authors run separate tasks on the same corpus. The bias task distinguishes gender bias, other bias, and the absence of bias. The hate speech task distinguishes hateful comments, offensive comments, and comments in neither category. The paper reports HSD accuracy on validation because the test labels were unavailable to the authors. The hate speech and bias scores consequently refer to different targets on the same evaluation split.
Both collections include several of the informal phenomena described in the paper. The evaluations measure how each tokenizer helps a classifier with whole texts containing a mixture of those phenomena. This gives the results a practical interpretation. A tokenizer that retains a useful expression can improve the evidence available to a classifier, while a tokenizer that mishandles a different part of the same text can lose evidence. The overall label accuracy reflects the combination of those effects.
The authors compare K-MT with character-based WordPiece and Mecab-ko. WordPiece lets them assess the proposed suffix-based segmentation alongside a representation built from reusable sub-words. Mecab-ko provides the more elaborate morphological analysis the new procedure is intended to approximate. The authors describe it as their upper-bound comparator. That description expresses its role as a strong reference in the design. Its ranking in any particular setting remains an empirical matter, as the named entity experiments later illustrate.
The sentiment, hate speech and bias experiments use the same kind of classifier, a CNN with 3 layers. A convolutional neural network uses filters to combine signals from neighboring positions in the token sequence. The authors set the vocabulary limit at 25,000 for each tokenizer. The classifier has an embedding dimension of 128, so its learned numerical representation for a token has that many components. It uses 128 convolutional filters, a batch size of 64 and dropout of 0.2. Batches group training examples for updating the classifier, and dropout is a training procedure that temporarily suppresses parts of its internal representation. Training uses the Adam optimizer and cross-entropy loss for 10 epochs. The loss guides learning from the correct labels, and the optimizer updates the classifier’s parameters.
The reported metric is accuracy, the share of evaluated predictions assigned the correct label. On NSMC validation, Mecab-ko scores 84.83, WordPiece scores 83.62, and K-MT scores 82.41. On the NSMC test split, the order holds, with scores of 84.74 for Mecab-ko, 83.42 for WordPiece, and 81.89 for K-MT. The similarity of the rankings across splits makes the direction of this comparison clear. Preserving whole residual strings through suffix matching does not yield the top review polarity score under the common vocabulary limit.
On the HSD validation split, the bias classification accuracies are 76.86 for Mecab-ko, 74.10 for WordPiece, and 68.58 for K-MT. For hate speech detection on that split, Mecab-ko again has the highest score. The relative order of the alternatives changes, with K-MT ahead of WordPiece. That reversal is meaningful within the experiment because it occurs between tasks on the same comment corpus. The tokenizer associated with better predictions for one set of labels can rank lower for another set.
Tokenizer comparison on HSD hate speech validation accuracy
Mecab-ko leads, and K-MT scores ahead of WordPiece.
The numbers
| System or setting | accuracy % |
|---|---|
| Mecab-ko | 56.69 |
| WordPiece | 44.37 |
| K-MT (this paper) | 51.38 |
The hate speech result supplies evidence that the simpler tokenizer can be competitive with character-based sub-words on a noisy comment task. The bias result supplies a qualification even within that domain. Both tasks draw on comments with informal language, yet the overall ranking between the two tokenizers depends on the label being predicted. The study measures those rankings directly. Its examples of segmentation suggest possible sources of difference, while the experiments leave open which comment features account for the change in order.
Named entities under different vocabulary conditions
The entity recognition experiment focuses more directly on an aspect of the segmentation that motivates K-MT. The task is to assign labels to mentions such as people, organizations, locations, works or objects in the appropriate categories. The paper uses the released training material from the Naver NLP Challenge 2018 and divides it into 76,949 training sentences, 4,050 validation sentences, and 8,999 test sentences. There are 14 entity types as well as a label for material outside those types. The categories cover examples such as organization names, places, dates, events, animals, and terms from particular fields.
The authors characterize this dataset as rich in named expressions and comparatively free of disturbances such as spacing errors. It therefore examines a different combination of conditions from the comment and review evaluations. The tokenizer often encounters strings for which preservation may matter, and the whitespace it uses to locate the ends of segments is less often disrupted. The dataset can show the value of the coarse representation where names are central to the task, without establishing that the same representation will work equally well on messier occurrences.
For this experiment the authors use an RNN with 2 layers. A recurrent neural network builds up information along a sequence, which suits a task that predicts labels from text in context. The model trains in batches of 64 with 100 embedding dimensions, 128 hidden dimensions, and no dropout.25. The hidden dimension is the size of an internal representation in the recurrent classifier. The optimizer is Adam, the loss is cross-entropy, and training lasts 10 epochs. The comparison uses the same recurrent setup for the tokenizers. The paper again reports accuracy.
With each vocabulary limited to 25,000, WordPiece achieves the highest validation accuracy, 67.57, with Mecab-ko at 67.41 and K-MT at 63.02. The test results have the same order. K-MT’s tendency to keep full names and other expressions together is present in this configuration, yet it does not give the best aggregate predictions when the number of entries is capped.
Naver named entity recognition test accuracy with a 25,000-entry vocabulary
WordPiece leads narrowly over Mecab-ko, with K-MT behind both.
The numbers
| System or setting | accuracy % |
|---|---|
| Mecab-ko | 67.61 |
| WordPiece | 68.02 |
| K-MT (this paper) | 63.37 |
The authors then use unrestricted vocabularies for Mecab-ko and K-MT. They describe this change as a way to reduce the influence of out-of-vocabulary cases, which arise when the tokenizer produces a unit that has no available vocabulary entry. Both tokenizers record higher accuracies in this setting. K-MT leads the comparison on validation, where it scores 72.78 and Mecab-ko scores 70.36. The lead persists on the test split.
Naver named entity recognition test accuracy with unrestricted vocabularies
K-MT leads Mecab-ko when both can use unrestricted vocabularies.
The numbers
| System or setting | accuracy % |
|---|---|
| Mecab-ko | 70.64 |
| K-MT (this paper) | 73.05 |
The two vocabulary conditions answer different questions about K-MT. The capped condition compares it against both alternatives under the same maximum vocabulary size and favors WordPiece. The unrestricted comparison shows that the granularity of K-MT can be beneficial relative to Mecab-ko when entries are available for the forms it preserves. The paper gives unrestricted scores for those two tokenizers, so the latter result is a comparison between the suffix-based method and the morpheme analyzer. It leaves WordPiece’s standing in that condition undetermined.
Viewed together, these evaluations make the case for K-MT conditional. The method gives the classifier a representation in which a name or a slang form can occur as a unit. That benefit has to pass through the vocabulary and the prediction task before it appears in accuracy. For sentiment and bias, the best scores come from the detailed morphological analysis. For hate speech, the suffix-based method improves on the character-based sub-word comparator while still trailing Mecab-ko. For entity recognition, a change in the vocabulary condition changes the ordering between K-MT and Mecab-ko.
What the ablations show
Changing the vocabulary while retaining the tokenizer
The study leaves the individual suffix rules in place and instead examines vocabulary size, agreement between segmentations, token sequence length, and examples of the boundaries each tokenizer produces. The vocabulary comparison supplies the closest evidence to a controlled intervention on the hypothesized source of K-MT’s difficulty. Under the cap, some of the forms a tokenizer emits must compete for a place in the set of available entries. Relaxing that cap for the two morphology-oriented systems makes it possible to see how their rankings change when that restriction is removed.
The entity recognition results support the authors’ interpretation that whole-form preservation depends on vocabulary availability. With a cap, K-MT falls behind Mecab-ko on validation and test. With unrestricted entries, it moves ahead on both. The segmentation procedure stays focused on the same boundaries. What changes is the availability of the resulting tokens to the classifier. The change in ranking provides stronger evidence for this interaction than either set of scores would supply alone.
A retained name can make the entity prediction simpler if it has a usable representation. A long name that falls outside the vocabulary presents a different situation. Its internal pieces might have appeared in other contexts and could have been represented by a more granular tokenizer. This gives a concrete interpretation of why chopping a name into pieces can be helpful for vocabulary coverage even when the split obscures a linguistically meaningful unit. The experiment supports an interaction between token size and vocabulary availability. The paper provides no counts by name frequency or by entity type that would identify which groups contribute most to the observed change.
How often the segmentations agree
The authors take 500 random samples from each of NSMC, HSD and the named entity collection for a separate tokenization comparison. They examine whether tokenizing the same example produces identical outputs. This is a stricter criterion than looking for a shared cut in a sentence. Tokenizers can agree on several important boundaries while differing on the division of a single expression, in which case the full example does not count as a match. The comparison establishes how frequently the tokenizers make the same set of choices at the example level.
The reported agreement between Mecab-ko and K-MT is 3.2%. Mecab-ko and WordPiece agree on 1.0%, and WordPiece and K-MT also agree on 1.0%. All tokenizers agree on 0.73% of examples. The pair consisting of the two morphology-oriented tokenizers therefore has the highest exact agreement. That is consistent with the shared attention to grammatical boundaries. The low agreement even in that pair indicates how much room remains for the simple edge procedure and the more detailed analyzer to differ.
The results are easier to interpret alongside the mechanics of K-MT. When a segment ends in a familiar particle, K-MT and Mecab-ko can make the same cut. If Mecab-ko also splits the root internally, one possible shared boundary survives, but full agreement is lost. An analogous issue arises for WordPiece. Its output can preserve the internal shape of one expression while making different cuts elsewhere in the sentence. The statistics are therefore a measure of similarity of complete output, not of the correctness of particular boundaries.
Agreement also puts the evaluation scores into perspective. Close accuracies can arise from token sequences that rarely match exactly. Some distinctions in granularity may have little bearing on the task label, while an important split in a particular example may matter much more than several ordinary differences. The paper’s combination of downstream scores and agreement data gives evidence about both the practical result and the magnitude of the change in representation. It leaves the contribution of any individual boundary to a particular prediction unmeasured.
How much text each tokenizer keeps together
The sampled tokenizations also show a difference in the average length of a token sequence. K-MT produces an average of 53.094 tokens, compared with 56.997 for Mecab-ko and 65.447 for WordPiece. These values count tokens in the sampled sentences after segmentation. They measure the size of the resulting sequence for the same material, so the shorter K-MT sequences are consistent with a tokenizer that leaves more characters together.
The relationship follows from its decision about the residue. Once recognized suffixes have been detached, there are no further divisions inside the remainder. A full analyzer can continue to divide a compound, and WordPiece can encode a long unfamiliar string in several smaller entries. The averages reflect those differences across the sample. They do not indicate by themselves whether any particular retained span corresponds to a good linguistic unit. A whole name can account for a short result, and so can a run of adjoining words that the tokenizer struggles to separate.
The paper’s use of both sequence length and accuracy avoids treating compression of the sequence as the main outcome. The shorter K-MT sequences coexist with lower capped-vocabulary accuracy on some tasks. The length data support the claim that K-MT is coarser. The name examples connect that coarseness to particular desirable splits, while the spacing examples illustrate cases where the same bias toward longer strings can be unhelpful.
Which boundaries change in actual names
The authors illustrate the difference with 차광남, a personal name. Mecab-ko splits it into 차광 and 남. WordPiece gives the characters 차, 광 and 남 separate places in its output. K-MT retains 차광남 intact. This is a favorable case for treating the name as a complete expression. The example shows exactly where the alternatives divide the text, and the reason the coarse representation appeals for entity recognition becomes visible without appealing to an aggregate score.
An attached particle creates a more demanding test. With 김유미의, Mecab-ko and K-MT both recover 김유미 followed by the genitive 의. The WordPiece example instead has 김유 followed by 미의. That second piece combines the last character of the name with the attached particle. The important feature of the K-MT split is its selectivity. The name remains intact, and the recognizable particle gets its own boundary. Simply keeping every space-delimited segment intact would retain the particle with the name in this example.
In 갑산공원, the name of a location, K-MT keeps the full string. Mecab-ko separates 갑산 from 공원, the word for “park.” WordPiece splits the place component into smaller pieces and likewise keeps 공원 as a separate token. Here a split can be linguistically interpretable while still dividing the named expression. Recognizing “park” as a constituent gives one plausible analysis of the written string, and keeping the whole location name gives a useful representation at the level the entity task cares about. The comparison shows why closer conformity to internal morphology and preservation of an entity can lead to different preferences.
The same issue arises with institutional names made from ordinary nouns. For 국제농구연맹, the authors’ name for the International Basketball Federation, Mecab-ko and WordPiece both return international, basketball and federation as separate Korean pieces. K-MT retains the complete organization name. The difference concerns grouping. Each constituent has a recognizable meaning, yet the full string can function as the name of one organization. A method built to preserve the residue supplies that grouping without a separate rule identifying the organization.
Another example, 대학교육협의회, illustrates how WordPiece and the analyzer can disagree on the structure inside a name. Mecab-ko separates 대학, 교육 and 협의회. WordPiece places the first boundary after 대학교 and leaves 육 before 협의회. K-MT keeps 대학교육협의회 together. The WordPiece output here divides the material that the analyzer groups as 교육. Even when both systems create sequences of comparable granularity, the locations of the boundaries give the resulting tokens different interpretations.
The paper gives a similar comparison for 참교육학부모회. Mecab-ko keeps 학부모회 together after the preceding pieces, whereas WordPiece subdivides that part further. K-MT again holds the name in one token. These examples are useful because they distinguish several behaviors hidden in the average lengths. A tokenizer may cut between meaningful common nouns, split inside one of those nouns, or leave the institutional name intact. The downstream value of each option depends on the task and on how much access the classifier has to complete forms.
Spelling variation and informal endings
The qualitative analysis includes favorable cases involving unusual personal names and a misspelled film name. The authors present 정기순 with the following particle 까지, which the tokenizer can separate while keeping the name together. They also point to 천년유혼, a misspelling of 천녀유혼. The point of preserving the misspelled form is to give the downstream system the complete string that actually appeared. The segmentation itself supplies no canonical film title or decision about its reference.
The 이뻐 and 용 example shows another route to a successful split. Since the altered ending belongs to the inventory, it can be detached from the rest. The authors say K-MT handles such slang comparably to the alternatives in their examples. This is qualitative evidence about a particular kind of informal form. The study gives no separate accuracy score for all slang or coinages. The examples establish that the rules can produce sensible cuts in those cases, while the classification experiments establish how the complete tokenization schemes perform on their respective datasets.
Limitations
Limits the authors identify
Whitespace is the strongest structural dependency in the method. The authors identify missing spaces as a source of failure because K-MT inspects the right edge of each segment it receives. If a writer joins words, the suffix of an earlier word can be hidden inside the resulting string. Detaching a recognized ending at the external edge can still leave several words in the residue. The paper observes that Mecab-ko and WordPiece can make useful divisions in some such cases. It also points to the prevalence of spacing errors in the review and comment datasets as a possible contributor to K-MT’s results there.
A fixed inventory of suffixes creates a second dependency. A new ending outside that inventory can stay attached to the lexical expression, even if a reader understands it readily. Conversely, the edge of a root can coincide with a listed suffix and be cut incorrectly. The authors identify both kinds of problem. In one case, the procedure has insufficient evidence to detach genuine grammar. In the other, a match supplies misleading evidence. Combination patterns improve the organization of the matches the tokenizer can recognize, while the underlying procedure still relies on strings and their position.
The authors also identify limited vocabulary as a problem across domains. A complete token for a proper noun or a coined expression can be valuable where that form is available. When texts introduce many such forms, entries have to cover a broad range of whole strings. WordPiece has smaller reusable pieces that can help in this situation. K-MT’s capacity to preserve previously unfamiliar text at segmentation and its capacity to pass a distinct representation of that text to a downstream classifier are separate properties. The capped entity results show why the distinction matters.
The paper proposes looking beyond the current whitespace-delimited segment and adding ways to handle spacing errors. That direction responds to a limitation of the current evidence for each cut. Information outside the segment could inform whether an ambiguous string is behaving like a word with an ending or whether a missed boundary is present. The authors also propose combining their rules with WordPiece. Such a design could retain useful grammatical divisions while permitting finer pieces in cases that benefit from them. Both directions are stated as future work.
Limits of the experimental evidence
The downstream scores measure performance of whole tokenization pipelines in specific classifier settings. They do not identify the cause of particular successes or failures. A hateful comment may contain a coined term that benefits from being held together, or a conventional expression that is easy for all tokenizers to represent. The HSD ranking shows that the choice of tokenizer affects performance under the experimental setup. The study does not break that change down according to which comments contain coinages, proper nouns, informal endings, spelling changes, or spacing errors.
The suffix inventory and combination rules are evaluated as a package. The article gives no separate comparison between standard endings alone and standard endings supplemented by online variants. It also gives no comparison between backward longest matching alone and backward matching with the combination priorities enabled. The examples make the purpose of those choices intelligible. The individual empirical contribution of each choice remains open. The results support statements about the complete K-MT procedure and about the effect of changing its vocabulary condition.
The name examples are demonstrations of specific boundaries, selected to illustrate what each procedure does. They show that K-MT can preserve different kinds of proper names, including one whose spelling is unusual, and that the alternatives can segment those names internally. There is no annotated boundary assessment measuring how often K-MT preserves the right span across all names or how frequently it keeps unrelated material attached. Exact agreement between tokenizers and average sequence length answer different questions from a comparison against gold segmentation. The reader can infer coarseness from the reported evidence more directly than correctness across all relevant spans.
The named entity study reports accuracy. Results by entity type, entity-level precision and recall, and results separated by previously seen and newly encountered strings would support more targeted conclusions. The unrestricted condition gives evidence that K-MT can benefit from broader token coverage in this dataset. It leaves open how frequently that benefit comes from novel names specifically. The paper describes unrestricted vocabularies as a way to address out-of-vocabulary effects, but the comparison does not itself identify the contribution of particular names or isolate a held-out class of new terms.
The comparisons also have boundaries set by their splits. Hate speech detection and bias classification are assessed on HSD validation, while the review and named entity results include test scores. The unrestricted entity result compares K-MT and Mecab-ko, so the strongest claim supported by that setting is about their relative performance there. A corresponding WordPiece result would be needed for a ranking of all alternatives under the unrestricted condition. The equal cap gives a full comparison, and its ranking favors WordPiece.
Finally, the simplicity claim concerns the design of the tokenizer. A compiled list and an ordering of matches give a shorter specification than a complete morpheme analysis. The paper’s experiments report prediction quality, output agreement and token counts. They leave processing time, memory, and the practical cost of retaining a larger vocabulary unmeasured. A shorter token sequence describes the output’s granularity. The resource cost of obtaining and using that sequence depends on additional factors outside the reported comparisons.
What came after
Subsequent studies building on K-MT remain unestablished here. The authors’ proposed continuation has two parts. One is to give the tokenizer access to context beyond the individual written segment and to address missing whitespace directly. The other is to investigate a hybrid with WordPiece. Those proposals follow from two different observations in the paper. An error in spacing can prevent the tokenizer from reaching a relevant suffix, while a correct split can still leave a lexical token that is difficult to represent with a restricted vocabulary.
The spacing proposal would change where the system can look for a boundary. The hybrid proposal would change what can happen to a string once a grammatical boundary has been found. The original experiments leave both directions open. Their strongest evidence is the paired result on entity recognition. K-MT is weakest among the compared tokenizers under the shared cap, then leads Mecab-ko in the unrestricted comparison. That dependence on vocabulary explains why the authors see room to combine morphology-guided boundaries with reusable sub-word pieces.
Cite
Cite as Sangah Lee and Hyopil Shin. 2021. The Korean Morphologically Tight-Fitting Tokenizer for Noisy User-Generated Texts. Proceedings of the Seventh Workshop on Noisy User-generated Text (W-NUT 2021).
@inproceedings{lee2021korean,
title = {{The Korean Morphologically Tight-Fitting Tokenizer for Noisy User-Generated Texts}},
author = {Sangah Lee and Hyopil Shin},
booktitle = {Proceedings of the Seventh Workshop on Noisy User-generated Text (W-NUT 2021)},
year = {2021},
doi = {10.18653/v1/2021.wnut-1.45},
url = {https://doi.org/10.18653/v1/2021.wnut-1.45}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/lee-2021-korean-morphologically-tight-fitting-tokenizer/