A Word Segmentation System for Handling Space Omission Problem in Urdu Script
Paper · 2010 · Gurpreet Lehal
Summary
In Urdu, a missing space can leave a line perfectly readable while causing software to treat several words as one. Some Urdu letters already break the connection to the following letter, so omitting a space after them can leave the shapes of both words intact. A person can recognize the words from the forms and the context. A program that treats each stretch between spaces as a word sees a single item. Lehal’s paper addresses this problem in a system that transliterates Urdu into Devanagari, the script used for Hindi. It treats tokenization as a decision about which stretches of text need to be divided and where those divisions should go.
The system first looks for reasons to keep a stretch intact. It checks the Urdu spelling against a word list and tries to recognize inflected forms whose roots are listed. It then checks the Devanagari transliteration against a Hindi word list. The Hindi check serves both as a way to recognize words missing from the Urdu resources and as a way to preserve spellings that are written together in Hindi. A stretch that passes through these checks without a match becomes a candidate for splitting.
For those candidates, the system identifies the small groups of letters formed by the script’s joining rules. It considers different ways of grouping these units into words, turns the proposed words into Devanagari, and ranks the alternatives using frequencies of individual Hindi words and adjacent Hindi word pairs. The pairs help settle cases in which familiar words can be assembled into an implausible sequence. Urdu lookup supplies a fallback when the Hindi statistics cannot support a split. A further check rejects proposed divisions made up entirely of short words unless at least one adjacent pair occurs in the Hindi data.
On a test described as containing 1,613,991 Urdu words, the decision about which stretches needed segmentation achieved 99.29% recall and 99.38% precision. Lehal also reports 99.15% accuracy for correct segmentation. The paper uses examples to show why longest dictionary matches, the fewest possible words, and individual word frequencies can each favor a wrong division. The reported scores describe the complete approach in the transliteration setting, where the spacing expected in Hindi can influence which units the system preserves.
Deep dive: A Word Segmentation System for Handling Space Omission Problem in Urdu Script
Lehal’s Urdu word segmentation system restores missing spaces for Devanagari transliteration using word lists and Hindi word-pair frequencies. · about 33 minutes to read
The problem and its context
A readable line can conceal a missing space
Word segmentation turns a line of text into units that subsequent processing can treat as words. Spaces and punctuation are a good initial guide in writing systems such as those of English and French, as Lehal explains. The paper also points to Chinese, Thai, and Myanmar as examples where whitespace seldom or never does this job reliably. Urdu sits between these cases. Its writing uses spaces for word division, yet a stretch without an internal space can still contain several words.
The same space character can serve two purposes in Urdu. It can signal a word boundary, and it can interrupt the joining of letters so that the text takes the intended shape. Those purposes sometimes coincide. They can also come apart. When the last letter of a word already prevents a connection to the next letter, the absence of a space can leave the writing visually intelligible. The reader still sees a break in the joined strokes. The software looking for an explicit separator has lost the boundary.
The converse difficulty in the paper is space insertion. A space can appear within material that should be processed together. Lehal cites earlier work on that problem and focuses this study on omission. The difference determines what can be repaired. A system looking for omitted spaces starts inside stretches that existing separators have already delimited. A system looking for inserted spaces has to decide which of those separators should be disregarded. Both problems stem from an imperfect relationship between whitespace and wordhood, but they require decisions in different places.
One example in the paper makes the gap between reading and processing especially clear. A sentence has nine units when it is divided at the visible separators. The first eight each contain a single word. The last contains five words run together. Most of the separators in that sentence give the system a useful first pass, and the difficult part is concentrated inside a single unit. The design takes advantage of this pattern by screening each unit before attempting to divide it.
The joining rules give the system a place to look
Urdu letters can take different shapes according to their neighbors. Lehal distinguishes joiners, which can connect to a following letter, from non-joiners, which cannot. The relevant distinction for segmentation is that a non-joiner can produce a break in the connected strokes even in the middle of a word. A visual break is therefore evidence about how the letters connect. Its existence alone leaves open whether a word ends there.
The paper calls a joined group of characters, or an isolated character, an Urdu character cluster, abbreviated UCC. A word may be made up of several of these clusters. That provides an intermediate unit between the individual character and the word. The script rules give the system a way to locate clusters, and the word segmenter decides which consecutive clusters belong together. This is the step at which a visible break becomes a possible word boundary.
Lehal borrows the term orthographic word, abbreviated OW, from the earlier study Urdu Word Segmentation. In this paper, an orthographic word is the stretch of clusters delimited by a space or punctuation. The term describes how the system receives the input. It leaves the number of words inside the stretch undecided. An orthographic word may already be an ordinary word, or it may contain several words whose separators were omitted.
These definitions also clarify the problem posed by an unknown word. A rare name, an unfamiliar borrowing, an abbreviation, or a misspelling can each appear as a perfectly ordinary stretch between spaces. If the word list lacks that stretch, a segmenter may still find several shorter entries inside it. Lehal illustrates this with a foreign word that a dictionary-based procedure divides into four pieces. Each piece can be looked up, yet the existence of those entries gives the wrong account of the whole. Segmentation requires both a way to recognize plausible pieces and a reason to believe the input should be divided at all.
Why Hindi enters an Urdu segmentation problem
The application is transliteration from Urdu script to Devanagari. Lehal describes Hindi and Urdu as sharing grammar and much of their core vocabulary while using strikingly different writing systems. Urdu is written from right to left in a script derived from Persian writing, and Hindi is written from left to right in Devanagari. The practical goal is to let someone who reads the target script make sense of text originally written in the source script. A boundary decision affects what that reader sees as a word.
Some conventions differ even when the corresponding material is shared. Lehal gives examples of future verb forms in which Urdu writes the auxiliary separately and Hindi attaches it to the verb. The paper also describes expressions that are written in separate parts in Urdu and as a single form in Hindi. A segmenter built into a transliteration system can use those target conventions when it decides how much to keep together. In this setting, preserving an Urdu stretch in one piece may be the desired choice if its Hindi counterpart is written as a unit.
The scripts introduce a further difficulty. Urdu commonly leaves short vowels and diacritics unwritten. A transliterator has to infer missing information to produce an appropriate target spelling. Since the segmenter looks up transliterations in Hindi, its access to Hindi evidence depends on the forms produced by that conversion. An apparent absence in the Hindi word list can reflect the path from Urdu spelling to the form being looked up as well as the contents of the list. This matters at both points where the method uses Hindi, first for the whole stretch and later for proposed words inside it.
The approaches the paper starts from
Lehal situates the study alongside earlier accounts of Urdu word structure and segmentation, earlier work on Urdu and Hindi transliteration, and his own work on inserted spaces. For writing in which spaces give little boundary information, the paper describes previous approaches as drawing on evidence such as morphology, syntax, and word statistics. Morphology is particularly relevant to the screening stage because a legitimate inflected form may be missing from a list that does contain its root.
The paper takes up two dictionary-based search strategies. Longest matching prefers the longest available entry at the current position and goes back to try a shorter choice if it cannot complete the rest of the input. Maximum matching considers complete analyses and prefers the one with the fewest words. These are different ways of dealing with an input that can be divided in several legal ways. One makes its initial choice locally, while the other evaluates how many pieces a complete division would produce.
A dictionary can say whether a proposed piece occurs by itself. When multiple divisions consist of listed words, something else has to identify the likely sequence. Lehal uses frequencies from running text for that purpose. He also makes a separate decision about whether the input needs a division in the first place. The method thus addresses three distinct problems raised by the writing system and the dictionaries. It has to recognize a stretch containing several words, resolve competition between its possible divisions, and avoid turning unfamiliar single words into sequences of familiar pieces.
The method, step by step
From a stretch of writing to a segmentation decision
The input to the main procedure is an orthographic word. The space or punctuation around it gives the system a bounded piece of text to examine. Inside that piece, the first question is whether the system already has enough evidence to leave it whole. Only candidates that survive this screening are examined for an internal word boundary. That order matters in a dictionary-based approach because there may be a plausible-looking division even for a legitimate word.
The system has three main lexical resources. The Urdu word frequency list contains 121,367 words, the Hindi word frequency list contains 159,426 words, and the Hindi word-pair list contains 2,382,511 bigrams. A bigram is an ordered pair of adjacent items. Here the items are words, so a Hindi bigram counts a particular word followed immediately by another. A unigram is the corresponding record for an individual word. Both are instances of an n-gram, a sequence of a specified length. In this procedure, the individual word tells the system how common a candidate is, and the pair tells it whether two proposed neighbors occur together in that order.
The resources have different jobs along the way. In the initial screening, the question is predominantly whether an entry can be found, either in the input form or after a conversion or morphological check. In the segmentation stage, the Hindi lists also supply numerical evidence to rank complete proposals. The Urdu list takes on another role when the system falls back to a search for a division supported by Urdu entries.
How the system processes an Urdu orthographic word
The steps in order.
Accepting a whole word through Urdu lookup
The simplest check is for the entire orthographic word in the Urdu list. A match ends the search for that item. The method treats the stored form as adequate evidence that it can be kept whole. This gives established words a direct route through the system without making them compete against possible divisions.
A failed lookup still leaves several possibilities. The item might contain omitted spaces. It might also be a word whose exact form is missing from the list. To account for inflection, the procedure applies rules that seek a root form and tests the resulting form in the Urdu list. Inflection changes a word’s form for a grammatical purpose, as in the formation of a plural. The check uses a known root to recognize a surface form the list may lack. When the root is found, the original stretch can go through intact.
Lehal uses borrowings from English to explain why a single set of inflection rules would be insufficient. Urdu text can contain a plural of the borrowed word university formed according to Urdu inflection, and it can contain a form corresponding to the English plural universities. The paper reports the same coexistence of inflection patterns for secretary. A lookup procedure that accounted only for Urdu endings could lose valid forms belonging to the second pattern. The system therefore checks roots obtained through English rules as well as roots obtained through Urdu rules.
The order in the paper’s checklist is direct lookup, a root check through Urdu rules, and then a root check through English rules. These checks reuse the same Urdu list. In each case, a successful match ends the decision procedure for that orthographic word. The distinction between the root and the original form is important. The root helps recognize the item. The described action is to keep the input intact for segmentation purposes.
This design makes the definition of “unknown” depend on the procedure. A form can be missing on direct lookup and still be known through its root. Keeping those cases distinct prevents the initial count of missing spellings from being mistaken for a count of words requiring spaces. It also limits how frequently an input is subjected to a search that might admit misleading shorter entries.
Looking up the whole form in Hindi
If the Urdu checks fail, the system transliterates the entire orthographic word into Devanagari and searches the Hindi word list. A Hindi match is sufficient to keep the stretch whole. The sequence in the paper’s checklist is to look up the transliteration directly, try a root through Hindi morphological rules, and then try a root through English rules. Only after those checks fail does the input move on as a possible case of missing spaces.
There are two reasons a Hindi match can be useful. The first is coverage. Lehal found instances in which an Urdu spelling was missing from the Urdu resources but its transliteration was represented in the Hindi list. The paper discusses names and foreign words as cases in which this can happen. The Hindi list then gives the decision procedure another way to recognize a valid form without requiring an exact Urdu entry.
The second reason is the target spelling. A form whose component words are typically separate in Urdu can correspond to a single written Hindi form. Looking up the whole transliteration gives such a form a route through the system as one unit. This behavior follows the objectives of the transliteration application. The hypothetical decision “would an editor put a space here in Urdu?” can differ from “should this material go forward together into Hindi?” A Hindi match answers the latter question directly enough for the procedure described in the paper.
The Hindi lookup at this stage operates on the whole stretch. The later lookup starts from a particular proposed division and transliterates each member of that division. That change in what gets transliterated is central to the method. A stretch can lack a whole-form Hindi entry and still yield several proposed words that each have an entry. Conversely, a stretch accepted here is never presented to the statistical ranking stage, even if a division could have been assembled for it.
The use of a bilingual resource in this system consists of bringing together Urdu and Hindi lexical evidence through transliteration. The frequencies used later come from words and adjacent pairs in Hindi text. The paper motivates this choice as a way of reducing dependence on manually segmented Urdu training text. Here, training data contribute lexical coverage and frequency evidence. The procedural decisions about checking roots, grouping clusters, and switching to Urdu fallback are specified as steps of the system.
Finding the candidate boundaries
When the initial checks leave a stretch unresolved, the system breaks it into UCCs using Urdu spelling rules. Within a cluster, the constituent letters stay together. A possible word consists of one cluster or a run of adjacent clusters. A proposed segmentation covers the whole stretch with such words in their original order. The search is therefore over which gaps between clusters should serve as word boundaries.
Lehal supplies a worked orthographic word with four clusters and lists six segmentations for it. One proposal has a short first word and groups the remaining clusters into a second word. Another moves the boundary so that a different group becomes the first word. There are also proposals with more words. In the two alternatives compared later in the results chart, the transliterations are तो + जवाब and तोजो + अब. The same original stretch can thus lead to different Urdu words and, through transliteration, to different Hindi forms for the frequency lookup.
A useful way to read this step is to distinguish a possible boundary from a plausible analysis. The joining rules give the possible locations. They can be applied regardless of whether a particular division makes sense. The word lists and frequency calculation assess the proposals created from those locations. A boundary receives support because it participates in a coherent analysis of the stretch, rather than because the shape of a particular letter establishes a word break by itself.
The full coverage of the stretch matters. One short section might make an excellent dictionary match and leave a difficult remainder. A different boundary earlier in the input can change the words available later. This is the motivation for considering alternative full divisions. The system needs to be able to compare an initially attractive match with an alternative whose complete sequence is better supported.
Comparing the dictionary strategies
In longest matching, the algorithm scans forward and takes the longest dictionary entry it can use at the current position. If that choice makes it impossible to find entries that cover the remaining material, it goes back and tries the next longest match. Backtracking helps it reach a complete analysis. A limitation remains when the first long match leads to a complete but linguistically wrong analysis. Nothing in the length preference requires reconsidering that choice once the rest can be covered.
Maximum matching starts from complete segmentations and selects the one with the fewest words. Lehal notes that this search can be carried out with dynamic programming, which saves work by reusing partial solutions. The criterion favors a grouping that covers the same input with fewer entries. It also creates ties whenever several segmentations have the same number of words. Word count alone then leaves the choice unresolved.
The paper tries both strategies using UCCs as the units that can be joined. The examples show that the most useful segment can be shorter than an available dictionary entry and that an analysis with an extra word can be the intended one. These are reasons to use more information than length or the number of pieces. The frequency-based method scores the words that make up each candidate, and eventually scores their adjacency as well.
Lehal describes the statistical approach in connection with maximum matching and gives a frequency product as the rule for choosing the best combination. The prose is clearest about the relative roles of the evidence. The segmentation search produces candidate groupings, and the frequency product prefers the groupings with stronger Hindi support. In the Urdu fallback, where that support is unavailable, the paper explicitly returns to choosing the division with the minimum number of Urdu words.
Scoring the words individually
To score a candidate by unigram frequency, the system first transliterates each proposed Urdu word into Hindi. It looks up how frequently each Hindi form occurs and multiplies the frequencies. The paper describes the rule in prose. Written as a formula, it is:
U(w) = ∏ᵢ₌₁ⁿ f(wᵢ)
Here w is the ordered sequence of Hindi forms produced from a candidate segmentation, and U(w) is its unigram score. The index i identifies a position in the sequence and n is its number of words. The notation wᵢ refers to the word at position i. The function f returns the individual occurrence frequency used for that word. The product sign ∏ tells the system to multiply the factors from the first position through position n. The equals sign defines the score, and the surrounding parentheses indicate what is being scored or looked up.
This product supplies a way to compare complete alternatives. A rare word can make an otherwise promising candidate score poorly, and a candidate made up of common words can gain support at several positions. The worked example in the paper lists frequencies for different Hindi forms obtained from the same input. One possible boundary yields individual words with stronger combined evidence than the words yielded by another boundary. In that example, the product favors the segmentation Lehal selects.
Individual word frequency still leaves a question about how well the words fit together. The procedure can favor a set of familiar words even if their order or combination is unusual. The individual lookups in the formula say nothing about immediate neighbors, and it is those neighbors that change when a boundary moves. That omission explains the extension from the first scoring procedure to the one used for the fuller system.
Scoring words in their immediate context
Lehal describes an input whose correct division and unigram-preferred division both consist of three words. At the start of the input, the boundary can be moved so that the first proposed word gives some of its letters to the second. The last word stays the same. Unigram scoring favors the wrong set of individual forms in this case. Adding frequencies for adjacent word pairs changes the preferred division to the one the paper identifies as correct.
The system obtains a bigram frequency for each consecutive pair in the Hindi sequence. These bigram frequencies are adjusted so that a missing pair will not introduce a zero into the product. An unseen adjacent pair can therefore contribute less support without automatically wiping out the other evidence. The paper gives the purpose of this adjustment and leaves its exact numerical form unspecified.
The combined scoring rule described in the paper can be written as:
S(w) = U(w) × ∏ᵢ₌₂ⁿ b(wᵢ₋₁, wᵢ)
Here S(w) is the combined score for the Hindi sequence w, and U(w) is the unigram product defined above. The multiplication sign × combines that score with the product over adjacent pairs. The index i starts at the second word because a pair needs a preceding word, and n is again the end of the sequence. The notation wᵢ₋₁ selects the preceding word, and wᵢ selects the current word. The comma separates the two arguments to b, which returns the adjusted frequency of that ordered pair. The product sign ∏ applies that factor to every such pair, and the equals sign defines the combined score. The method selects the candidate with the highest product.
The interaction between boundaries and pairs is what gives this calculation its value. When a boundary shifts, the sequence can acquire a different word on each side of it. The new forms have their own unigram frequencies and also change the pair factors that involve them. A familiar word thus has to contribute as part of the proposed sequence. The context used in this calculation is the sequence of proposed words inside the orthographic word.
This remains a frequency-based choice among the candidates already generated. The bigram evidence can make one candidate more plausible than another when both consist of recognizable words. It cannot supply a trustworthy transliteration for an incorrect candidate form or add a boundary inside a cluster that the search treats as indivisible. The earlier stages still determine what the scorer has the opportunity to compare.
Recovering a split from Urdu evidence
The Hindi-based search can fail even when the input contains a real merge. The paper gives an example whose intended component words were both represented in the Urdu resources, while the equivalent transliterations were missing from the Hindi frequency list. A system that depended completely on Hindi scoring would leave this stretch intact. The fallback allows Urdu entries to support a division in this situation.
When the Hindi data cannot provide a segmentation, the procedure tries maximum matching with the Urdu training data. It looks for a complete covering with the fewest Urdu words. For the example in the paper, this restores the expected division because the component forms can be found in Urdu. The fallback is thus valuable in a different situation from the initial Urdu lookup. Earlier, an Urdu match for the whole form is grounds to keep it intact. Later, matches for the pieces of an unresolved input can be grounds to divide it.
The two languages contribute complementary evidence even though the main ranking is based on Hindi. The Hindi resources help where the Urdu list lacks an entry and where target conventions should guide the result. The Urdu fallback helps when the relevant words are available in the source language resources and missing from the target list. The paper’s example shows how one resource can make a proposal possible after the other has left it unsupported.
Rejecting implausible splits
A final risk is oversegmentation, the introduction of boundaries inside a stretch that should remain intact. The paper describes this happening especially with misspellings and words outside the vocabulary. A search can assemble the input from short entries even when the pieces have little to do with one another. The fact that the entire string has been covered is only a condition for proposing that division.
The system accepts a proposed segmentation only if at least one word is longer than three or at least one adjacent pair occurs in the Hindi bigram list. These are alternative grounds for acceptance. A long member can make a proposal eligible even without a recorded pair. A recorded pair can make an all-short proposal eligible. The frequency adjustment used in ranking and the presence test used here serve different purposes. The adjustment lets a missing pair participate in the numerical comparison. The presence test asks for at least one pair genuinely recorded in the data when the length condition gives no support.
Lehal’s example is a proposed segmentation into short forms that transliterate as गर + दो + हर. Each part has length two, and neither adjacent pair is present in the Hindi bigram list. The proposed division is rejected. The example makes the intended behavior concrete. The unknown stretch can remain whole even after the system has found a way to turn it into dictionary entries.
Where the frequency data came from
Lehal contrasts the available Urdu corpus with the Hindi corpus assembled for the system. The Urdu resource compiled by CRULP was relatively clean in the paper’s account, yet it still contained both joined and broken forms, and some words were absent. Lehal calls particular attention to English borrowings and to common words missing from the Urdu material. Text whose spacing is already unreliable creates a problem for collecting word frequencies automatically. A merged spelling can enter a list as a single item, while an inserted space can count the fragments of a word as separate entries.
The Hindi data offered more consistent spacing for the intended output and, in the author’s account, better coverage. The Hindi word and pair counts could therefore help identify units compatible with the target spelling conventions. This choice avoids making a fully hand-segmented Urdu corpus the sole basis for the statistics. Urdu evidence remains part of the method through the word list, the morphological checks, and the fallback search. The procedure depends on how the lexical and statistical resources work together at different points, rather than on the frequency list alone.
Experiments and results
How many stretches reached the segmentation search
The paper reports a test on 1,613,991 Urdu words. Its intermediate totals track what happened to stretches of text before the final segmentation decision, so “word” in the test description needs to be read alongside the paper’s definition of an orthographic word. A surface unit presented to the procedure can contain several words after a successful division.
The Urdu corpus lookup initially left 116,078 items unmatched, or 7.19% of the original test text. This was the pool of possible segmentation candidates after checking for the whole form in Urdu. It includes words missing for other reasons, as the subsequent steps demonstrate. Morphological analysis recognized 2851 Urdu words as valid and removed them from consideration for splitting. These recognitions measure what the morphological procedure recovered from the initially unmatched material.
After the remaining items had been transliterated and checked using the Hindi corpus, 35,226 were left for the segmentation stage. The paper gives this as 2.19% of the original test text. The total is the output of the screening process, where the Urdu rules and the Hindi resources can both prevent an item from reaching the search. It is a count of unresolved candidates at that point in the system, rather than a count of confirmed cases of space omission.
At the segmentation stage, 24,001 of those candidates were found to contain merged words, reported as 68.13% of the 35,226. This figure describes the candidate pool examined by the second stage. Some candidates evidently remained unresolved or were kept intact after examination. The count also measures a different unit from the number of words recovered. Each confirmed cluster contributes a single case to the merged-cluster total even when the resulting split produces several words.
How many words a merged cluster contained
The merged clusters reported in the test contained from 2 to 6 words. The most common case was a cluster of 2 words, at 96.71% of the detected merged clusters. The paper reports 2.99% for clusters containing 3 words, 0.25% for clusters containing 4 words, 0.037% for clusters containing 5 words, and 0.004% for clusters containing 6 words.
These figures describe the composition of the detected clusters. Most of the time, the system is looking for the boundary between a pair of words. The longer examples in the paper still matter because the procedure has to be able to propose several internal boundaries for a single stretch. The distribution establishes how much those cases contribute to the reported test population. It leaves their individual success rates open.
The concentration in short merges also matters when reading the system’s aggregate accuracy. A result collected over the full test, or over all the cases finally judged to involve merging, does not by itself tell a reader how reliably the method handles the longest stretches. The distribution supplies the mix of cases the system saw. A separate breakdown of correctness by cluster size would be needed to match that mix to the difficulties of particular input lengths.
What the reported scores measure
For the decision stage, Lehal reports recall of 99.29% and precision of 99.38%. Recall concerns the stretches that actually require segmentation and asks how many the system recognizes as such. Precision concerns the stretches the system identifies for segmentation and asks how many really require it. The metrics address different errors. Accepting a merged stretch as a whole can hurt recall. Treating an intact stretch as a merge can hurt precision.
The reported accuracy for correct segmentation is 99.15%. This is the outcome measure the paper gives for whether the words are divided correctly. It describes a different task from identifying a candidate. A stretch can be correctly flagged as containing several words and still be divided at the wrong location. The paper gives the overall segmentation accuracy without specifying in detail how partial boundary matches are counted or how the denominator is formed. The result can therefore be reported as the paper’s segmentation accuracy without turning it into a boundary-level score or a rate for a more specific subset.
The score and the intermediate totals answer questions at different levels. The screening totals show how many items are advanced through the stages. The detected-cluster distribution describes what those identified merges contain. Precision and recall summarize the decision about the need for segmentation. The accuracy result addresses correctness of the resulting segmentation. To read the experiment properly, it helps to keep the population attached to each figure, especially because the overwhelming majority of input stretches do not reach the search.
How candidate scores and baseline examples were compared
The paper examines longest matching, maximum matching, and frequency-scored matching through worked cases. The dictionary strategies offer points of comparison for the choice of boundaries. Lehal also compares scoring with individual word frequencies and scoring with adjacent pairs added. These comparisons use examples of the same input receiving different outputs. The paper reports aggregate precision, recall, and segmentation accuracy for the system, while the alternative procedures are illustrated through selected examples instead of a set of test-wide baseline scores.
The following comparison comes from the paper’s worked example for unigram scoring. Each row gives a different candidate for the same Urdu orthographic word, named by its resulting Hindi forms. Both are proposed divisions into two words, so their frequency products illustrate a choice that the minimum number of words would leave tied. The products are the paper’s values for those candidates. They measure the scoring rule on that instance.
Worked Urdu example scored by the product of Hindi unigram frequencies
The selected division has the higher product among the displayed two-word candidates.
The numbers
| System or setting | Hindi unigram frequency product |
|---|---|
| तोजो + अब | 6.75557E-10 |
| तो + जवाब (this paper) | 1.34221E-06 |
The chart is useful at the level of an individual decision. The two ways to group the clusters yield different transliterations, and the frequency evidence favors the selected division. The example explains how the system scores alternatives of equal length. It gives no measure of how often such a tie occurs across the test or of how often unigram evidence resolves it correctly. The next comparisons in the paper address why individual frequencies themselves can still leave a misleading result.
What the ablations show
The paper offers no systematic ablation with separate test-wide scores for removed components. It instead gives worked comparisons of matching and scoring rules, counts at successive screening stages, and qualitative observations about corpus choice, fallback, and oversegmentation.
A successful dictionary search can still choose the wrong boundary
Lehal first illustrates a failure of longest matching. In the example, the procedure picks a longer available word where the intended division requires a shorter one. It can still cover the rest of the stretch, so the backtracking rule has no reason to intervene. The example isolates a difference between finding a complete sequence of dictionary entries and choosing the complete sequence a reader would recognize.
Maximum matching fails for a different reason. In the example used to assess it, the algorithm finds a way to use fewer words than the intended division. Its objective favors that result even though the extra word in the intended version is genuine. This illustrates the risk in treating the number of pieces as the main criterion. The existence of a compact analysis says more about which entries happen to be available than about how the stretch was meant to be read.
Taken together, the cases show why a better search over the same length criterion would leave some errors in place. In the longest-match example, the selected analysis already completes the input. In the minimum-word example, the undesirable analysis satisfies the criterion it was asked to optimize. The statistical extension changes the information used to choose between divisions. It gives the system evidence about the forms that would result, as well as information about how many forms are involved.
Neighboring words supply evidence that counts of single words miss
The paper’s comparison between unigram scoring and combined scoring is the closest it comes to an example-level component ablation. The input and the proposed word divisions are the same. Individual word frequencies prefer an incorrect candidate. When the ranking also uses the frequencies of adjacent pairs, the preferred candidate becomes the one Lehal identifies as correct.
This case supports a specific account of what the added information can do. The change in division affects the identity of neighboring words. Their individual counts provide one kind of evidence, but how frequently those forms occur beside one another can favor a different grouping. In the worked case, the local context helps resolve ambiguity even though the word count is the same for the competing analyses. Neither of the dictionary rules would acquire that evidence simply by evaluating more candidates.
The example establishes that pair frequencies can repair this kind of error. The paper does not assign a separate test accuracy to the unigram-only procedure or give a test-wide count of corrected cases. The aggregate segmentation score therefore describes the resulting system, with the contribution of bigrams illustrated by the individual case.
Hindi coverage helps, and its gaps create a role for Urdu
The screen through the Hindi list leaves substantially fewer unresolved items than the initial lookup in Urdu. The stage counts directly show that many items get recognized after the first lookup fails. They also reflect the intervening morphology checks. The paper’s qualitative account explains several routes to acceptance. A Hindi entry may recognize a proper name or a borrowing absent from the Urdu list. It may also preserve an expression whose target spelling is written together.
Lehal describes better segmentation with the Hindi training data than with the available Urdu training data. The comparison is qualitative. The resources differ in their vocabulary coverage, their spacing conventions, and the consistency of the text from which counts are taken. As a result, the examples give several reasons the Hindi resource helps, while leaving the relative contribution of those reasons unresolved. They also explain why the comparison is tied to the goal of producing units appropriate for Hindi.
The fallback example demonstrates the complementary case. The Hindi search lacks the transliterated forms needed to support the intended division, and Urdu entries make it possible to recover the words. Here the benefit comes from making the candidate available at all. A change to the ranking of Hindi candidates would have little leverage if the relevant entries could not be found. The example distinguishes that coverage failure from the unigram error, in which the correct proposal was already available to score.
The oversegmentation check targets a recognizable error pattern
The short-word example gives an observable change when the acceptance condition is applied. The raw search finds a complete division into small pieces, but the system rejects it because neither the length evidence nor the recorded neighboring-pair evidence supports accepting it. This is a check on the outcome of the search. The proposed division can exist and even be the best among other weak proposals, while still failing the acceptance test.
The example supports guarded treatment of divisions that amount to a string of short dictionary entries with no attested adjacency. The paper calls the remedy partial. A genuine merge of short words can also lack a recorded pair, and a dubious division can contain a longer piece or a pair found in the corpus. Those possibilities follow from the rule itself. The paper presents a case in which the filter prevents a false split and leaves the frequency of those other outcomes open.
Limitations
Limits identified by Lehal
The system is designed for Urdu-to-Devanagari transliteration. Its preference for Hindi spacing is deliberate. As the paper explains, the language resources sometimes favor preserving material as a single unit because that is how the corresponding Hindi form is written. Lehal suggests that the techniques could be adapted for an independent Urdu segmenter. That would be a different evaluation target, since the acceptance of a joined form could then depend on Urdu conventions.
Lehal also identifies unknown words as a persistent problem. Rules for inflection and checks against an additional vocabulary can recover forms missing from the initial lookup. A true out-of-vocabulary item can still reach the search and break into shorter entries. The length and bigram check addresses some of those false analyses. Lehal explicitly treats this as a partial remedy, and the illustrative cases show why the risk survives even with both languages’ resources.
The paper reports gaps in the data on both sides of the process. The Urdu resources lack some words and contain instances of unreliable spacing. The Hindi list can lack the transliterations required to segment a particular input. Falling back to Urdu helps when the relevant entries are available there. The fallback’s ability to work depends on that availability. A form missing in both resources still poses the original ambiguity between an unfamiliar whole word and a sequence of known or unknown component words.
Finally, the paper treats omitted spaces as its immediate repair problem. The starting units are already delimited by existing whitespace and punctuation. When whitespace has been inserted inside a word, the necessary operation would span those starting units. Lehal discusses that phenomenon in setting up the problem and points to earlier work addressing it. The present evaluation concerns the procedure for examining what falls inside a unit.
Limits of the evidence and evaluation
The evaluation reports a large total and gives useful counts for the individual stages. Details about the provenance of the test text and the preparation of the reference segmentations remain sparse. The paper gives limited information about how the test material was separated from the corpora used for the word and bigram lists. These details affect how easily someone can repeat the evaluation or judge the dependence of its scores on familiar vocabulary and spelling patterns.
The reference convention matters because the transliteration goal makes two interpretations possible in some cases. A judgment can follow ordinary Urdu word division, or it can account for which forms belong together in the intended Hindi output. Those choices agree on many items. The examples of attached future forms show that they need not agree on all of them. The reported aggregate result leaves open how such cases were identified and how they were scored.
There is a related issue with the meaning of a correct segmentation. For an orthographic word with several internal boundaries, a candidate might place some correctly while missing another. A score based on complete analyses and a score based on individual boundaries would treat that case differently. The paper reports correct segmentation accuracy, without detailing how those cases enter the measure. The precision and recall it does clearly identify belong to the decision about whether segmentation is needed, rather than to a separate accounting of individual boundary locations.
The distribution by number of words is informative about the mix of detected merges, but it gives no corresponding error analysis by cluster size. Cases with a name, an English-derived form, a possible misspelling, or a hard transliteration are also discussed through examples rather than separate scores. The aggregate results therefore offer stronger evidence about performance on the reported test as a whole than about performance on any of these individual categories.
Limits of what the scoring procedure specifies
The rules for recognizing clusters and applying morphology are described through their roles and examples. The paper provides the main decisions needed to follow the method. Exact reproduction would also require the rule inventory and details of the Hindi transliteration passed to the lookups. A missing short vowel, for example, matters because it can change which Hindi form is searched. The paper identifies inference of these unwritten elements as a challenge without quantifying how much such uncertainty affects the segmentation results.
The combined scoring rule also leaves some implementation details open. Lehal states that bigram frequencies are adjusted to avoid a zero factor. The exact adjustment would affect rankings when candidates have different patterns of observed and unobserved pairs. The paper describes maximum matching alongside statistical ranking, with an explicit minimum-word rule for the fallback. It gives less detail about whether word count constrains which candidates compete in the Hindi-based ranking or resolves ties there. These questions matter when two candidate divisions have different numbers of words and therefore contribute different numbers of frequency factors.
Context in the reported score is local to the candidate sequence. A short stretch with two analyses can contain little evidence to resolve them, even if a reader would find the choice easy from the rest of the sentence. The paper uses adjacent words created by the proposed division. It gives no comparison with a procedure drawing on the preceding and following orthographic words. Its account of contextual improvement is therefore about what the internal word pairs can contribute.
The system’s early acceptance rules impose a further limit. Once a direct or root-based lookup succeeds, the procedure ends screening for that item. This gives valid single words protection against unnecessary splitting. It also means a stretch that looks like a listed whole word has no opportunity to be reinterpreted as a merge by the statistical stage. The method can use bigrams to distinguish among proposals for stretches that reach the search. It offers no separate contextual check on stretches already accepted by a lookup.
What came after
Lehal proposes adapting the technique to Urdu segmentation outside transliteration. For such an adaptation, the paper leaves an important distinction to resolve. Hindi vocabulary and neighboring-word frequencies can help recognize plausible forms, while the desired boundaries would be set by Urdu writing conventions. The study establishes the behavior of the combined procedure in its transliteration setting. Subsequent uptake of the proposed adaptation or of its bilingual scoring procedure is undocumented here.
Cite
Cite as Gurpreet Lehal. 2010. A Word Segmentation System for Handling Space Omission Problem in Urdu Script. Proceedings of the 1st Workshop on South and Southeast Asian Natural Language Processing.
@inproceedings{gurpreet2010word,
title = {{A Word Segmentation System for Handling Space Omission Problem in Urdu Script}},
author = {Gurpreet Lehal},
booktitle = {Proceedings of the 1st Workshop on South and Southeast Asian Natural Language Processing},
year = {2010},
url = {https://aclanthology.org/W10-3606/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/lehal-2010-word-segmentation-system-handling-space/