Urdu Word Segmentation
Paper · 2010 · Nadir Durrani and Sarmad Hussain
Summary
A space can help an Urdu reader see the right letter shapes while giving a computer the wrong idea about where a word ends. In Urdu’s cursive script, some letters naturally break the visible connection to the next letter. A typist can leave out a space after such a letter at the end of a word without changing how the text looks. Elsewhere, a typist can insert a space inside a word to keep parts of it from joining on screen. Durrani and Hussain study how to recover word boundaries from text that contains both kinds of spacing. Finding those boundaries is the task of word segmentation.
Their system keeps the spaces in the input and uses dictionary matching to find possible splits within the stretches of text between them. It keeps several plausible readings, then applies different tests for affixes, repetition, compounds and abbreviations. For instance, it can use the grammatical category of a stem to decide whether an adjacent piece belongs to it, or recognize adjacent pieces that differ by a small spelling edit as a possible repetition. The output marks these relationships so that an application can decide which grouped expressions to count as words. That choice matters because the authors’ survey found that native speakers can disagree about the boundaries of an Urdu word.
The authors compare ranking the candidate readings by their number of units, by how frequently individual words occur, and by how often neighboring words occur together. On a manually segmented test corpus of 2367 words, the individual-word ranking gave the best reported results. It detected 85.8% of the 404 segmentation errors and correctly identified 95.8% of the words. Its advantage was clearest in recovering omitted spaces. The rules for recognizing words with internal spaces recovered many affixed forms, repetitions and abbreviations, while compound recognition was markedly weaker. The system also lacked a dedicated way to recognize unknown words, which could lead it to split an unfamiliar name into known pieces.
Deep dive: Urdu Word Segmentation
Urdu Word Segmentation explains why spaces can hide or split Urdu words and tests a method that combines dictionary matching with word frequencies. · about 33 minutes to read
The problem and its context
When a visible break can mean several things
A program that reads text ordinarily needs some way to identify the units on which it will operate. A first pass that divides a text into such units is called tokenization. As the authors explain, a pass based on spaces and punctuation works reasonably well as a starting assumption for English, although a period inside an abbreviation shows that punctuation takes some interpretation. They describe a different starting point for languages such as Thai and Lao, where a word can end without an intervening space. Urdu presents both the problem of finding those unmarked endings and the problem of deciding which visible spaces belong inside a word.
Urdu is written from right to left in Arabic script, using the Nastalique style discussed in the paper. The appearance of a letter depends partly on whether it connects to neighboring letters. A joiner can take an initial, medial or final shape in a connected group and can appear in an isolated shape when it stands apart. A non-joiner can connect to the letter before it while breaking the connection to the letter after it. It therefore has a final shape and an isolated shape. The authors use Farsi Yeh and Dal as examples of a joiner and a non-joiner, respectively.
A connected group of letters is a ligature in the paper’s terminology. A written word can contain several ligatures because a non-joiner can occur inside it. That makes a break in the cursive line compatible with the middle of a word as well as with its end. The letter shapes encode local connections, and the reader still has to recognize which groups belong together. The same distinction matters for an algorithm. Detecting where the pen would lift, or where the rendered letters stop touching, would leave much of the boundary problem unresolved.
The authors describe correct letter shaping as something Urdu learners encounter in learning to write. The space character enters separately as a tool typists can use to control the appearance of the script. Take the paper’s example glossed as “needy.” A typist can insert a space within the word to make the relevant letter take the intended shape. Someone reading the displayed form can recognize the expression as a word even though the encoded string contains a space. The space is doing useful work for the writer and for the display. Its interpretation changes when a program tries to count or recover words.
The reverse happens in the example glossed as “Urdu Center.” The last letter of the first word already prevents a connection to the next letter. Adding or removing the space leaves the written forms looking alike in the example. The paper illustrates the same mechanism across a longer phrase whose words all end in non-joiners. A reader can recognize the separate words in the rendered phrase even when the encoded text gives the segmenter a continuous string. In that situation, the missing space is an error relative to a computational definition of the word boundary.
The paper distinguishes such visually inconsequential omissions from cases in which writers deliberately join forms whose separated counterparts look different. A function word can be attached to another function word or to a content word in ordinary usage. The authors give examples involving pronouns, case markers, verbs and auxiliaries. The attached spelling can be familiar even if the separated form is the conventional one. A segmenter that encounters both versions has to recover comparable linguistic units from inputs with different written forms.
Joining can even change which character was typed. The paper discusses two forms of Yeh that Urdu treats as related but that indicate different vowels. The character used in the separated spelling can be a non-joiner with no coded medial shape. To produce the intended joined form, a writer can type the other character, which can take a medial shape. In examples of that kind, guessing the position of a missing space is only part of recovering the separate forms. This observation describes the structure of the difficulty. The paper gives less implementation detail for spelling changes of this kind than it gives for choosing among dictionary splits.
Why writers leave spaces inside words
The insertion problem involves several kinds of morphology. A morpheme is a form with a linguistic function, such as a stem or an affix. When a stem and an affix keep distinct visual shapes, a space can preserve those shapes even though the parts belong to a single word. The paper’s example glossed as “married” illustrates that use. Treating everything between spaces as a word would give the stem and affix separate places in the output.
Related spelling practices arise when the units on either side of a space have a different relationship. A compound can preserve the appearance of its components. In reduplication, a form is repeated, sometimes with a change in the repeated portion. A space can keep those portions visually distinct. Urdu spellings of borrowed words can use separation for readability, and an English abbreviation written out using Urdu letter names can include a space between each name. These cases share a visible symptom. The evidence for grouping them differs, because the system has to recognize an affix, a repeated pattern, an established expression or a sequence of letter names.
The paper mentions the Zero Width Non-Joiner as a character that can prevent a connection without inserting a space. The authors describe it as unfamiliar to typical Urdu typists and unavailable on most Urdu keyboards in the setting they discuss. Their approach takes the spacing conventions of existing text as input. It has to distinguish useful spelling conventions from boundaries that the initial split has misrepresented.
The authors bring in two sources of evidence about how often spacing creates difficulties. An earlier Urdu spelling study by Naseem and Hussain took the items flagged by a spelling checker and examined them manually. The study, as reported in the paper, found 975 errors, of which 736 were space-related, reported as 75.5%. The spelling checker’s use of spaces and punctuation for tokenization helps explain what that count measures. It is the composition of the errors seen under that procedure.
The authors also inspected 5,000 words from the BBC and Jang Urdu news sources. They report 373 space omissions for BBC and 563 for Jang. The insertion counts include 298 instances of affixation for BBC and 467 for Jang, along with cases of compounds, repetition and abbreviations. This inspection gave the design a reason to address both directions of the problem. Finding hidden boundaries would leave several common kinds of erroneous splits in place. Conversely, a system concerned with joining pieces across spaces would still miss the places where a writer had entered independent words without a space.
What should count as a word?
A segmenter can agree with the way a text is written and still face a choice about how to represent it. The paper shows this with Urdu compounds. The components can be placed together, connected by a diacritic, or linked by a written conjunction. The examples include expressions glossed as “parents,” “prime minister” and “discipline.” Recognizing these expressions as groups is useful even when there is a reason for an application to retain their individual parts. A space alone gives little guidance about which representation to use.
Repetition raises a similar issue. The authors describe forms glossed as “fluently” and “equal” that speakers can see as individual words. An expression glossed as “slowly,” with a repeated element written apart, can be seen as a sequence. The operation behind the expressions is recognizable in each case. Deciding whether its result belongs in a count of words requires an additional convention. Attached function words raise the question again because their joined and separated spellings can prompt different judgments of the same underlying material.
In the authors’ survey, 30 native speakers, including students, language teachers and researchers, judged whether particular examples comprised a single word or two. The responses range from substantial agreement to an even split. In the example with an omitted space between auxiliaries, 15 respondents chose each interpretation. The paper also presents a verb and auxiliary in joined and separated spellings, illustrating that the displayed spacing can influence how respondents count the words. The survey helps explain why the authors design their output to encode more than one kind of boundary.
At the most basic level, the system identifies forms that can stand independently. It also marks the parts making up a clearly lexicalized word, meaning a form treated as an established unit. At another level, it records larger groups such as compounds, abbreviations and repetitions. An application can use these levels to decide what constitutes a token for its particular purpose. Grouping a compound and identifying the pieces within it can both be useful decisions, and the representation accommodates both.
The approaches the authors started from
The paper distinguishes longest matching from maximum matching. Longest matching proceeds through a string by taking the longest available dictionary entry at the current position. Once it takes that entry, it resumes after it. The procedure is simple to explain, but a familiar long entry can cover up a shorter form that would make more sense in the sentence. If the same letters recur in a different context, the procedure can make the same choice again. The authors describe refinements that account for how strongly parts bind together, while treating fixed local choices as a continuing weakness of the basic approach.
Maximum matching, in the paper’s account, considers alternative dictionary parses of the string. It uses dynamic programming, which lets the procedure reuse the results of work on overlapping portions of the string. A common heuristic favors the analysis with the fewest words. This approach can retain a short match where it leads to a better complete analysis. The choice becomes harder when several analyses have the same word count. The literature discussed in the paper sometimes uses longest matching as an additional preference in that situation.
Earlier segmentation work also used intermediate linguistic units. The examples the authors give include rules for recognizing syllables in Thai and Lao before relating those syllables to words. The point of such an intermediate step is that a unit can be easier to recognize, or useful to preserve, even when it is smaller than the unit an application ultimately wants. Durrani and Hussain’s use of morphemes and grouped expressions draws on the same broad distinction between analysis and final token choice.
The n-gram approaches reviewed by the authors use the frequency of individual items or short sequences. Earlier work applied this idea at the level of letters, syllables or words. In word segmentation, such counts offer a way to prefer a plausible reading among several dictionary matches. The paper also describes the limits of these methods. Their evidence comes from the training corpus, and a short sequence of neighbors gives access to a correspondingly short context.
A further group of earlier techniques learns from several kinds of contextual evidence. The authors mention Winnow and RIPPER in that discussion, with features describing the contexts in which words occur. Their own setup uses dictionary candidates, short-sequence statistics and rules designed for specific sources of space insertion. The reason for combining these comes from the writing system. A dictionary and a frequency score can help choose where to split a continuous string. A repetition, an affix or an abbreviation calls for different evidence about whether existing spaces should divide the words.
The method, step by step
From the typed text to candidate splits
The system starts with the characters a typist entered. It normalizes alternate encodings of the same underlying written material and removes optional diacritics. It then uses spaces and punctuation to divide the stream into initial chunks. Each chunk is an orthographic word, abbreviated OW in the paper. This name describes a unit produced by the first pass through the text. It can be an ordinary word, a part of one, or several words typed as a single stretch.
Each orthographic word goes through a dictionary search for possible sequences of morphemes. The system keeps a shortlist, giving priority to analyses that use fewer pieces. It then combines the shortlists from the different chunks into candidate sequences for the sentence. Operations on these sequences identify repeated forms, letter names, attached affixes and established compounds. The resulting analyses are ranked again, and the output records both the individual components and selected relationships among them.
How the Urdu segmenter processes written text
The steps in order.
Keeping the original spaces during this procedure gives the algorithm access to a valuable constraint. A given space often falls between words or morphemes, even when its presence fails to settle the word boundary. The system can use that space to restrict the search for missing boundaries, then judge the relationship across it in a later module. That is different from committing to every initial chunk as a whole word. The relevant decision at the first stage is where to carry out the dictionary searches.
Normalization serves a separate purpose. The paper notes that Unicode can supply more than one encoding for some letters and composed or decomposed encodings for others. If strings with equivalent encodings enter the dictionary search in different forms, a lookup can fail for reasons that have little to do with word boundaries. Mapping them to a common representation makes the lookup operate on comparable strings. Removing diacritics likewise prevents optional markings from creating distinctions at the lookup stage. The authors also encounter misplacement of these marks in their corpus, which is part of their reason for omitting them from this procedure.
The paper gives the first author’s name as an example of the difference that retaining spaces can make. The spaced form produces separate orthographic words. In reading order, the dictionary search finds 2 analyses of the first chunk, 1 of the next and 7 of the last. The possible combined readings in that example are counted as follows.
2 × 1 × 7 = 14
Here 2, 1 and 7 are the respective numbers of segmentations for the separate chunks of the name. The multiplication sign × indicates that each choice for a chunk can be combined with every choice for another. The equality sign = identifies 14 as the total count of these combinations. For the same name sent to the dictionary search without spaces, the paper reports 77 possible segmentations. A search over the continuous form can propose boundaries and dictionary matches unavailable to the separate searches. The example illustrates why the authors preserve the input division for this part of the procedure.
How the shortlist limits the search
Maximum matching considers the dictionary-compatible ways of dividing a continuous string. A candidate begins with a matching morpheme and accounts for the remaining characters with further matches. Since different ways of reaching a position can leave the same remainder, the results for that remainder can be reused. The practical benefit of retaining several complete candidates is that later stages can evaluate a split using evidence unavailable from the length of its first match.
The initial heuristic measures how many morphemes are in a candidate. A reading with fewer pieces takes priority. This is a useful preference when a long known form competes with several small dictionary entries, since the small entries can be accidentally present inside a name or word. It is also a way to keep enough candidates for comparison without passing the entire search onward. The paper’s final comparison includes a setting that continues to use this preference and settings that use corpus frequencies to decide among the shortlisted analyses.
The ordinary shortlist retains up to 10 analyses of an orthographic word. The authors report that an initial chunk typically contains two or three Urdu words and say that the ordinary shortlist was generally enough in their experience. Their heuristic allows longer chunks to retain more alternatives, with 15, 20 and 25 among the sizes given. The paper does not supply the character-length cutoffs for changing the allowance. The underlying decision is to give a longer continuous string more room for ambiguity, because it can contain more possible boundaries.
The shortlists are combined before the later modules process them. With the ordinary allowance fully used at every position, the paper expresses the scale of the combination as follows.
10ⁿ
In this expression, 10 is the ordinary shortlist size per orthographic word and ⁿ is the exponent, with n denoting the number of orthographic words. Raising 10 to that power represents taking one option for each chunk when each has the full ordinary shortlist. A chunk with fewer matches contributes fewer options. The allowances for longer chunks also mean this expression describes the ordinary full-shortlist case, rather than giving a fixed count for every sentence.
At this stage, a candidate supplies boundaries for a possibly unspaced string and contains the initial boundaries between chunks. The next question is whether some of these components belong together. The algorithm can recognize a pattern within a chunk, across adjacent chunks or among morphemes revealed by a candidate split. That is why the output of maximum matching is a collection of proposed analyses. Their value includes making the right pieces available to tests that operate on the sentence.
Repetition with or without a space
In the paper’s account of Urdu reduplication, the repeated form may be identical to its base or differ by a small edit. The system uses edit distance to recognize such pairs. Edit distance counts the operations needed to change one string into another. The relevant operations here are insertion, deletion and substitution, with each operation counting as a single edit. The threshold described by the authors admits an identical pair or a pair separated by one edit.
The paper illustrates the range with the expressions glossed as “fluently” and “equal,” along with an example in which the repeated form differs by a substitution. These examples motivate a test based on similarity of form. If the algorithm demanded exact identity, it would recognize only one part of the pattern the authors want to capture. On the other hand, a permissive similarity test can mistake an ordinary pair of words for a repetition. The paper uses the expression glossed as “was done” to show how closely two grammatical forms can resemble one another without forming a reduplication.
The authors therefore describe an additional precaution concerning short base forms, particularly those shorter than four letters. Its purpose is to avoid grouping adjacent case markers, postpositions or auxiliaries just because they are close in spelling. The description states the motivation and the length condition but leaves the further filtering procedure underspecified. The clear part of the implementation is the comparison of nearby forms against the small edit-distance threshold.
Reduplication receives attention on both sides of the initial space split. In a candidate sequence with adjacent forms, the later module can test their similarity even when the writer included a space. Earlier in the process, the system can divide an orthographic word into halves and look for a corresponding pattern inside it. The paper gives the form glossed as “innocent” to illustrate why both routes matter. Its components can be recognized and tagged as a repetition when typed apart and also when typed in one stretch. The same linguistic relation can thus survive changes in how the input is spaced.
Recognizing abbreviations from their components
The abbreviation module looks for English letter names transliterated into Urdu. A finite automaton recognizes the relevant sequences. An automaton of this kind tracks how far a string has progressed through an allowable pattern and changes state as it encounters another component. For example, the Urdu forms for the letters in “PhD” can be separate chunks in the input. When the sequence is recognized, the output can group the chunks and preserve the individual forms.
The paper points out two contexts that complicate this test. A string of letter names followed by a proper name can be a set of initials, as in “N. D. Shakir.” The system treats such a sequence differently from the abbreviation it would ordinarily group. A transliterated letter name can also have the same form as a word used in Urdu grammar. The authors’ example is the form shared by the name of the letter “k” and an Urdu genitive case marker. In the expression glossed as “after PhD,” a recognizer that keeps extending the abbreviation can absorb the case marker as if it were another letter. The paper flags this situation as requiring explicit handling. It gives no separate measurement of the effect of handling that ambiguity.
This module is sensitive to the difference between recognizing an individual string and interpreting a string in a sequence. The automaton provides evidence that a succession of forms can be read as an abbreviation. The proper-name context and the case-marker ambiguity show why that evidence has to be applied with care. A candidate can use legitimate letter names and still group the wrong span.
Deciding where affixes belong
The affix module uses a list compiled from an Urdu corpus. An affix is a part that attaches to a stem. Some strings on the list can also appear as free morphemes, which means the same written form can be a word by itself. The paper gives a form that can mean “nose” in independent use and can act as a suffix in an adjective glossed as “dangerous.” Simply finding the form in an affix list leaves its role open in a particular sentence.
The system also uses part-of-speech information, which identifies grammatical classes such as noun and adjective. The paper specifically mentions information about the stem in confirming a possible combination. The lexicon proposes that the adjacent string could be an affix, and the grammatical information bears on whether it is an appropriate attachment there. This use of context differs from the frequency-based ranking of whole candidate readings. It is a check directed at a particular linguistic relation.
Once the system accepts the attachment, it can represent the stem and the affix as parts of a word. The initial space need not disappear from the analysis in the sense of erasing knowledge about the components. What changes is the boundary’s interpretation. A word-level application can treat the expression as a unit, while an application concerned with morphology can retain access to the stem and affix. That distinction is also useful for analyzing the errors, since correctly recognizing individual forms and correctly recognizing their attachment are different tasks.
Looking up compounds and keeping their internal structure
The compound module matches strings against a lexicon. The initial list contains 1850 compound words developed from an Urdu corpus. The authors describe the starting inventory as covering uncontroversial compounds checked against published dictionaries. They also include common foreign words in the list. A listed span can receive a compound tag, while an unlisted possible compound is left without that tag. The system allows the inventory to be extended according to the needs of its user.
The reliance on a lexicon reflects the uncertainty about which combinations should be treated as compounds. A rule broad enough to combine any words in an eligible construction would also make decisions about cases the authors consider debatable. The list lets them specify where they are prepared to assign the group label. It also determines coverage quite directly. A group that should receive the label in an evaluation has to be available to the lookup for the system to recognize it by this mechanism.
Compounds are represented with their components inside a group. The paper distinguishes compound types according to the way the components are connected. Reduplications and abbreviations likewise receive group tags, and ordinary words have their own word tags. Roots, prefixes and suffixes can be marked within a word. This linguistic annotation gives the output a layered structure. A later application can use a grouped expression as a single item or continue to process its parts, depending on the units the application needs.
Ranking the completed candidates
The authors compare three final ways of ordering the candidate segmentations. The minimum-word setting uses the number of units as its preference. The unigram setting uses probabilities for individual words, giving the ranking information about their frequency in the training corpus. The bigram setting uses probabilities for neighboring words, so the score can depend on which word precedes another. These are different ways of choosing an analysis after the system has generated possible readings. The initial dictionary search and its preference for short analyses still shape the alternatives available at that point.
The operational difference between the frequency-based settings is easiest to see when several readings contain independently plausible words. Unigram scoring can favor the reading containing the more frequent individual forms. Bigram scoring can prefer words whose transitions are more plausible in the training material, even when the competing words are also familiar on their own. That extra distinction is available only to the extent that the training counts give reliable evidence about those neighbors. The paper reports the use of unigram and bigram sequence probabilities without specifying a complete scoring equation, smoothing configuration or treatment of ties.
The frequency estimates draw on 70K manually segmented training words. For bigram probabilities the authors name the SRILM toolkit. The segmentation of this training material supplies the units whose individual and neighboring occurrences can be counted. A corpus can provide relatively informative counts for individual words and give weaker evidence for particular pairs, a distinction that matters to the authors’ interpretation of the comparison. The compound and affix inventories also draw on corpus material, but the paper does not assign each inventory to a named split or report separate sizes for all the resources.
Experiments and results
The evaluation material and what is counted
The algorithm was tested on a manually segmented corpus of 2367 words. The authors identified 404 segmentation errors in the input by reference to the intended segmentation. Among them were 221 omissions, where words ran together without an intervening space, and 183 insertions, where a space divided something the evaluation treated as a group or a word. These figures describe the test corpus. The 70K manually segmented words reported for training serve a different purpose, and the BBC and Jang inspection describes the incidence of spacing phenomena in online news.
The paper gives results at several levels. In the omission comparison, the denominator is the set of 221 known omissions. The question is how many cases each ranking setting detects correctly. For insertion, the authors break down detection by the linguistic phenomenon affected. They also pool the two kinds of spacing error and report detection against all 404 known cases. Finally, they report the proportion of correctly identified words in the entire test corpus. Those metrics approach the system’s output from different directions.
In particular, an error-detection percentage is tied to places where the input needs a segmentation decision that changes how its spaces are interpreted. Correct word identification includes words that present no such problem. It also uses the study’s conventions about which units count as words. The paper expressly includes cases of reduplication, compounding and abbreviation in this final accounting. Once that distinction is clear, the headline figures can be read together without treating them as interchangeable measures.
The ranking comparison uses the minimum-word version of maximum matching as the reference setting. The unigram and bigram versions use corpus statistics to choose among candidates. All belong to the same segmentation procedure. The results therefore show the consequences of the choice of ranking in this pipeline, with the relevant data and other processing decisions in place. The paper does not run a separate set of competing systems on this same evaluation material.
Recovering omitted boundaries
The most direct comparison of rankers concerns the 221 cases in which several words were written in a continuum. The maximum-matching setting ranked by minimum word count recovered 186/221. The unigram setting recovered 214/221, and the bigram setting recovered 209/221. The chart shows the reported percentages for those same case counts.
Space omission detection by ranking method on the Urdu test corpus
Unigram ranking detects the most omissions, and both frequency-based settings improve on minimum-word ranking.
The numbers
| System or setting | detection % |
|---|---|
| Maximum matching with minimum-word ranking | 84.16 |
| Unigram ranking (this paper) | 96.83 |
| Bigram ranking | 94.5 |
The dictionary search can offer legitimate words under several splits of the same chunk. A preference for the fewest units has little to say about which analysis is appropriate when the options have equal length. Frequency gives the ranking a source of evidence in those cases. The comparison shows that evidence being useful overall on the omission subset. It does not say how many of the recovered cases involved a tie or how many required a candidate with more units.
The unigram result also puts the improvement from context in perspective. A bigram uses the immediate neighbor, while a unigram scores the word individually. On this test, the individual-word score leads. The authors suggest that an improved training corpus could make bigram ranking more effective. The reported comparison establishes the ranking of the settings with the available training material. It does not establish where the order would change, or whether neighboring words would provide a larger benefit under a different training procedure.
Recovering words divided by spaces
Of the 183 insertion cases, the test corpus contains 66 instances of affixation, 63 of compounding, 32 of reduplication and 22 of abbreviations. The authors report 133/183 correctly detected insertion cases overall, or 72.67%. They provide a breakdown over those categories, so a reader can see where recognition was strongest and where a considerable part of the problem remained.
For affixation, the result is 59/66, or 89.39%. The litmus test here is whether a boundary introduced by spacing should fall inside a word made up of a stem and an affix. The list supplies a candidate analysis, with grammatical information available to support the attachment. The high detection figure describes their combined performance in this setup. It does not isolate which decisions depended on the grammatical check.
For reduplication, the result is 27/32, or 84.37%. The grouping rule can recognize forms that repeat with a spelling change, as well as exact repetitions. The score reflects the module’s performance on the annotated instances supplied to it by the rest of the pipeline. The test does not break out how many successful cases were exact, how many involved an edit, or how many candidate pairs the short-base precaution excluded.
For abbreviations, the result is 19/22, or 86.36%. This is the detection score for grouping separated Urdu renderings of English letter names. The authors discuss the difficulty of distinguishing a letter name from an ordinary Urdu grammatical form. The evaluation reports a category total, so it gives no separate success rate for that kind of ambiguity or for the proper-name context.
Compounding gives 28/63, or 44.44%. It is the weakest of the insertion categories. The module depends on finding an entry in the compound lexicon, and the paper has already shown that the definition of a compound word can be uncertain. The count provides evidence about the coverage and decisions of the implemented system together. It leaves open how many misses arose because the relevant compound was absent from the lexicon, because earlier analysis produced the wrong pieces, or because of some other decision in the pipeline.
Although the paper discusses spaces in foreign-word spellings, it does not give foreign words their own row in the insertion evaluation. Some common foreign words are in the compound inventory. The category totals therefore support direct statements about the reported affixation, repetition, abbreviation and compounding groups. They give no independent detection rate for foreign words in general.
Performance across errors and across words
The pooled detection results are 323/404 for the minimum-word setting, 347/404 for unigram ranking and 339/404 for bigram ranking. These totals are the figures the paper reports for detecting omissions and insertions together. The unigram setting leads this comparison as well as the omission comparison. Its cumulative result is the 85.8% error-detection figure emphasized by the authors.
Cumulative segmentation error detection on the Urdu test corpus
Unigram ranking gives the highest reported detection across omissions and insertions together.
The numbers
| System or setting | detection % |
|---|---|
| Maximum matching with minimum-word ranking | 79.95 |
| Unigram ranking (this paper) | 85.8 |
| Bigram ranking | 83.9 |
The insertion breakdown is presented as a single set of counts, while the pooled totals are presented separately for each ranker. The tables do not provide a ranker-by-category breakdown of insertion results or explain how each pooled count relates to the single insertion total. The pooled values can be read as the paper’s reported outcomes. More specific claims about how the choice of ranker affected each insertion module would require information the authors do not tabulate.
In the word-level evaluation, the figures are 2209/2367 correctly identified words for the minimum-word setting, 2269/2367 for unigram ranking and 2266/2367 for bigram ranking. The corresponding percentages are shown below. The word-level score highlights that much of the corpus is correctly handled even by the simpler ranking setting. The error-detection scores show more directly what happens when the input’s written spacing gives the wrong impression of the intended boundary.
Correctly identified words by ranking method on the Urdu test corpus
Unigram ranking has the highest word accuracy, with bigram ranking close behind.
The numbers
| System or setting | accuracy % |
|---|---|
| Maximum matching with minimum-word ranking | 93.3 |
| Unigram ranking (this paper) | 95.8 |
| Bigram ranking | 95.7 |
The word-level result puts the two frequency-based rankings close together, while the omission and pooled error results give a clearer view of the relative success of the settings on difficult cases in this corpus. The test reports point values from one collection of manually segmented text. The closeness of the overall scores therefore makes the difference in the evaluation questions especially important. Evidence about recovery of known errors and evidence about how much of the finished text is correct should both inform the reading of the experiment.
What the ablations show
What changes when the ranking changes
The paper offers a controlled comparison of final ranking criteria, but no module-by-module ablation that disables its linguistic rules. The minimum-word, unigram and bigram settings compare ways of choosing among analyses in the same overall procedure. The authors also report category-level insertion results and analyses of the input problem. These support different kinds of conclusions. The ranking comparison measures the consequences of a particular change to the procedure, while the insertion breakdown locates strengths and weaknesses in the system as run.
The omission result is the clearest evidence that frequency information helps select a reading. Maximum matching can produce several dictionary analyses of a stretch of text. Counting the pieces gives an economical preference, but it has limited resources for distinguishing equally short analyses. Both frequency-based methods outperform that criterion on the known omissions. The comparison supports ranking dictionary candidates with information drawn from use in a corpus. It cannot tell whether the most important gains came from breaking ties, favoring longer analyses, or a mix of decisions, since the paper does not report the affected candidates in that form.
The outcome also distinguishes using corpus evidence from using more immediate context. The move from a word-count preference to a word-frequency score helps on the reported test. Adding previous-word information in the bigram setting yields a result below the unigram result. A simple interpretation is that evidence for common individual forms was more effective here than the available evidence about consecutive pairs. That remains an interpretation. The paper does not vary the training size or examine the observed frequencies of the pairs on which the two rankings disagree.
An earlier restriction applies to every ranker. The minimum-word preference is involved in selecting which analyses enter the shortlist in the first place. The final scoring methods can change the order of the candidates they receive, but a reading dropped during pruning is unavailable for that choice. The paper says the usual allowance was sufficient in most cases and increases it for longer chunks. It gives no measurement of how often the correct reading survives the shortlist or how that rate responds to changing its size. The experiment consequently measures ranking within a designed search procedure, with the search and scoring effects still partly intertwined.
What the insertion categories show
The insertion breakdown helps explain why an overall accuracy score alone gives an incomplete picture. Affixation, repetition and abbreviation each receive rules that look for a characteristic pattern. The affix module starts from a list and checks grammatical information. The repetition module tests formal similarity. The abbreviation recognizer follows sequences of letter names. The reported performance shows that these rules recover many examples of their corresponding categories. The paper does not include stripped-down versions that would establish what fraction of the success comes from a particular detail, such as allowing an edit in reduplication.
Compound recognition is conspicuously weaker. It uses a finite lexicon in an area where the authors find disagreement about the boundaries themselves. That suggests two questions for understanding the result. One is how many test compounds the inventory covers. The other is how the evaluation’s treatment of each expression relates to the compound convention used in building the inventory. The paper gives the total correctly detected, but it does not inventory the missed examples or distinguish these possible explanations. The result establishes the shortfall for compounds in the experiment without assigning its cause.
The category breakdown likewise cannot establish that an insertion module would have the same result if the preceding omission step were changed. Some recognition operates over candidates that already reflect proposed boundaries inside orthographic words. If those boundaries change, the module can receive different components to test. The authors report the behavior of the complete system, with an omission comparison organized by ranker and an insertion comparison organized by linguistic category. A detailed accounting of interactions between the two stages would require results organized by both factors.
Why preserving boundaries and grouping labels matter
The name example comparing spaced and unspaced input is an analysis of search size. In the spaced case, the system combines the alternatives from separate chunks. In the unspaced case, it searches a longer stretch and admits more analyses. This demonstrates the computational value of an existing space in that example. It does not compare final accuracy for a system that discards all spaces with one that retains them. The meaning of the example is narrower and useful on its own. A character can be an unreliable indicator of final word status and still be valuable for limiting the search.
The native-speaker survey offers a different sort of analysis. It examines whether people agree on the unit the system is meant to find. Where readers disagree, and where a change of spelling changes their judgments, a segmentation scheme has to specify which level of grouping it expresses. The system’s tags make it possible to record the relationship between forms without treating every decision about a group as a final decision about a token. The survey motivates that choice. The paper does not test whether users performing a downstream task benefit from receiving those levels separately.
The news inspection explains the breadth of the design. Omissions occur in both sources, and insertions appear across multiple phenomena. Making many rules available has a clear motivation in those observations. The test results show that the resulting rules have uneven coverage. Read together, the analyses establish that one kind of correction would leave important cases unaddressed and that frequency-based ranking improves the tested choice among splits. They leave questions about the contribution of individual rules, the completeness of the candidate search, and the usefulness of the tagged output to particular applications.
Limitations
Limits identified by the authors
The authors describe the project as preliminary and call for deeper study of each subproblem. Their statistical evidence is used to rank the alternative segmentations. Decisions about grouping components rely on the linguistic rules and the available inventories. They propose using bigram statistics for grouping morphemes, along with collecting annotations that indicate how often forms appear as affixes or as separate words. Those proposals follow directly from the difficulty of interpreting a form that can occur in either role.
They also propose estimating tendencies to occur in compounds from a tagged corpus. A broader statistical treatment would give the system evidence about a prospective compound beyond the presence of an exact expression on a list. Annotating abbreviation examples is another direction mentioned by the authors. These proposals concern data and decision rules for future work. The reported results are for the implemented dictionary, rule and ranking procedure.
The paper specifies a limitation for unknown words. The system has no explicit recognition mechanism for them. Maximum matching can find familiar smaller forms inside a string that should be preserved as an unfamiliar name. The authors give “Kolesnikov” as an example of an erroneous split. The problem becomes more complicated when an orthographic word contains both known and unknown material. In the example glossed as “Fraser must go,” the name and the following words occur in a continuous string. A suitable analysis would preserve the unfamiliar name while still discovering real boundaries around the known words. The system’s strategy offers no dedicated way to make that distinction.
The proposed use of part-of-speech information in bigram ranking is related to this limit. Grammatical categories could supply context when word-level evidence is weak, and the authors suggest combining both sorts of information in ranking and affix merging. The implemented use of a stem’s grammatical category in the affix module is narrower. The experiment gives no comparison of word-only bigrams and bigrams augmented with those tags.
Limits visible in the evaluation
The manually segmented test corpus is small, as the authors emphasize. Several individual phenomena are represented by much smaller sets than the corpus as a whole. The results describe how the procedure worked on that collection. The paper gives no repeated evaluations over different test collections or estimates of how much the scores might vary. This matters most for fine distinctions, such as the ordering of the two frequency-based settings at the word level. The reported outcomes can be precise to the displayed digits while evidence for how they generalize remains limited.
The corpus inspection and native-speaker survey answer questions beyond those asked by the segmentation test. They show that irregular spacing occurs in the news material inspected and that some word judgments vary across readers. The paper does not give enough detail about the creation of the test reference to establish how its annotators dealt with all disputed examples. A reported word accuracy is therefore best interpreted relative to the manual segmentation used in the experiment. It does not settle the linguistic status of borderline compounds or repeated forms.
The error summaries emphasize correctly detected instances of already identified segmentation problems. They give limited visibility into errors produced by an unnecessary correction. For instance, a small edit distance can be a reason for grouping a real repetition and can also characterize neighboring words that should stay apart. The paper provides no separate count of false groupings for that module. Overall word accuracy gives a broader outcome for the finished output, but it does not expose the direction or linguistic source of every remaining mistake.
The computational argument relies on a worked comparison for a name and on the rationale for restricting candidates. There is no reported runtime benchmark or experiment comparing different shortlist allowances. Likewise, the paper names the corpus size and toolkit for the statistical settings without giving all the estimation choices needed to reproduce the ranking exactly. These gaps limit the level of confidence with which a reader can attribute the outcome to a particular pruning rule or probability calculation. The reported procedure still identifies the stages and settings against which the experimental claims should be understood.
Finally, the paper measures segmentation itself. It motivates segmentation as preparation for other language and speech processing tasks, and its annotations provide several choices about how to regard grouped expressions. The experiment does not compare those choices in a downstream task. A gain in recognition of the reference words and a gain in the performance of an application are distinct outcomes. The former is measured here. The latter depends partly on which boundaries the application needs and how it uses the output.
What came after
A later work citing Durrani and Hussain is Lehal’s Conversion between scripts, Punjabi and beyond. Its subject is script conversion, which brings a different operation into contact with the distinction developed in the Urdu paper. Converting written material between scripts concerns how to represent it in another writing system. Segmenting it concerns which portions of that material belong together. Durrani and Hussain’s examples show how those questions can meet when a space controls the appearance of letters as well as suggesting a boundary.
The citation establishes a connection between the two works. The documented scope of the later work gives no basis for attributing to it a particular reuse of the Urdu segmenter’s dictionary search, probability ranking or linguistic rules. The connection is at the level of the writing-system problem: the information a spelling convention carries about how text should look can differ from the information a processing system needs about how that text is organized.
Cite
Cite as Nadir Durrani and Sarmad Hussain. 2010. Urdu Word Segmentation. Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics.
@inproceedings{durrani2010urdu,
title = {{Urdu Word Segmentation}},
author = {Nadir Durrani and Sarmad Hussain},
booktitle = {Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics},
year = {2010},
url = {https://aclanthology.org/N10-1077/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/durrani-2010-urdu-word-segmentation/