---
title: "A Hidden Markov Model Based Named Entity Recognition"
description: "How a hidden Markov model recognizes names in Bengali and Hindi, uses context to tag words, and performs in cross-validation."
canonical: "https://research.elamur.ai/free/en/papers/ekbal-2007-hidden-markov-model-based-named/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/ekbal-2007-hidden-markov-model-based-named/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2007](https://md.research.elamur.ai/free/en/papers/2007/) / A Hidden Markov Model Based Named Entity Recognition System: Bengali and Hindi as Case Studies

# A Hidden Markov Model Based Named Entity Recognition System: Bengali and Hindi as Case Studies

Paper · 2007 · Asif Ekbal and Sivaji Bandyopadhyay

**Authors:** [Asif Ekbal](https://md.research.elamur.ai/free/en/authors/asif-ekbal/) and [Sivaji Bandyopadhyay](https://md.research.elamur.ai/free/en/authors/sivaji-bandyopadhyay/) · **Year:** 2007 · **Venue:** Springer eBooks · **Licence:** No open licence stated (free-to-read copy; rights reserved) — text kept private

[Cited by **8** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/ekbal-2007-hidden-markov-model-based-named/cited-by/) · Springer eBooks

- [PDF](https://link.springer.com/content/pdf/10.1007/978-3-540-77046-6_67.pdf)
- [DOI 10.1007/978-3-540-77046-6_67](https://doi.org/10.1007/978-3-540-77046-6_67)

## Summary

A name can occupy several words, appear for the first time in a test sentence, or look like ordinary vocabulary. A recognizer has to decide where the name begins and ends as well as what it denotes. Asif Ekbal and Sivaji Bandyopadhyay study this problem in Bengali and Hindi, where capitalization supplies no cue of the kind a recognizer might use in some other languages. Their system identifies people, locations, organizations and a miscellaneous class covering expressions such as dates, times, percentages and amounts of money. The formal task is [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/).

The authors use a hidden Markov model, or HMM, to choose a sequence of labels for an entire sentence. The labels distinguish a complete name that occupies one word from the beginning, interior and end of a longer name. The score for a new label depends on the preceding two labels. The score for the current word takes account of its own label and the previous label. The paper combines estimates from longer and shorter contexts so that rare combinations have less influence than they would if the system relied on the longest context alone.

For Bengali, the authors prepare entity labels from a news corpus of 150,000 wordforms. An automatic tagger first assigns grammatical labels, which are checked by hand and converted into entity labels. Bengali words absent from the training vocabulary receive additional treatment using suffixes, features for numbers and symbols, and a lexicon of ordinary vocabulary. In 10-fold cross-validation, the paper’s prose reports Bengali averages of 90.2% recall, 79.48% precision and 84.5% F-score. The results table gives slightly different averages for recall and precision and prints the F-score as 84.50. Two earlier Bengali systems evaluated on the same data reach average F-scores of 74.5% and 77.9%.

The authors also train and test the recognizer on Hindi data containing 27,151 wordforms. The reported 10-fold averages are 82.5% recall, 74.6% precision and 78.35% F-score. That experiment shows that the same tagging framework can be fitted to both languages. The Hindi corpus is smaller and its system lacks the Bengali suffix lists and lexicon, so the gap between the scores leaves the effects of data size and lexical support unresolved. The authors’ Bengali error analysis also points to organization names, a category for which their suffix resources offer less specialized guidance than they do for people and places.

## Deep dive: A Hidden Markov Model Based Named Entity Recognition System: Bengali and Hindi as Case Studies

How a hidden Markov model recognizes names in Bengali and Hindi, uses context to tag words, and performs in cross-validation. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Finding a name and deciding what kind it is

Named entity recognition turns a sequence of words into a description of the expressions the reader can pick out from it. In the paper’s formulation, the desired output identifies whether a word belongs to a named entity and, if it does, identifies the entity’s class. A complete answer may have to cover several adjacent words. For a person’s full name, the individual words contribute to the same mention. A place name can likewise occupy a stretch of text, as can the name of an institution or a date written with separate components.

That distinction gives the system two closely connected decisions. It must determine the extent of the expression, and it must choose a type for that expression. Even when the words are plausible parts of names, their boundaries can be uncertain. A sequence might contain a complete name followed by ordinary text, or the apparently ordinary next word might complete the name. A prediction can therefore recognize the general kind of expression while still giving downstream software the wrong words to work with.

The authors use a broad meaning of entity for this task. Their miscellaneous group includes time and quantity expressions as well as dates. These expressions can have conspicuous forms, such as a percentage mark, or take up several words, as in the paper’s example of a date. A recognizer needs to handle those patterns alongside the vocabulary and phrase structures associated with people, locations and organizations. Text outside the entity categories also needs a label so that the procedure can make a decision at every position.

The paper places particular weight on the fact that names form an open class. The vocabulary of possible entities is continually changing. A training corpus can establish that some words have served as names and illustrate how those names occur in context, but every new batch of text can bring expressions the corpus never contained. The system therefore needs a way to act on partial evidence, such as a familiar ending or a plausible position in a longer mention. The difficulty applies even when the desired set of entity types is fixed.

The authors identify capitalization as a practical obstacle for the languages they study. A convention that gives names a visible initial capital can provide one clue to a tagger. Their Bengali and Hindi recognizer has to find cues elsewhere. This helps explain why the method gives separate attention to the surrounding tag sequence and to the visible form of a word absent from training. Context and word shape supply different kinds of evidence, and the contribution of either one depends on what resources the system has available.

#### Why the paper treats recognition as a separate task

The authors situate the work in the tradition of the named entity exercises at the Message Understanding Conferences. Those exercises gave researchers a specific recognition problem to benchmark within the broader work of pulling structured facts out of documents. The paper also points to GATE as an example of an extraction system whose developers attend to entity identification. In this setting, the recognizable name is a building block a larger system can use to organize or connect information. [Information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/)

The paper also lists applications in which the entity category can matter directly. In a system that answers questions, a category such as person or location gives the system a way to select promising passages or candidate answers. In translation, identifying an expression as a name helps single out a stretch of text that may need consistent treatment across the translation. The authors also identify retrieval and automatic summarization as settings where locating names can be useful. The recognition experiments assess the tagging component itself. [Question answering](https://md.research.elamur.ai/free/en/topics/question-answering/) and [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/)

These applications motivate the paper’s attention to sequence boundaries. If an extraction system receives only part of a place name, for example, the category alone gives it an incomplete value. If it receives a phrase that extends into neighboring text, it may store or retrieve the wrong expression. To be useful as an intermediate representation, a tag sequence has to carry enough information to recover both the class and the span. The tagging scheme in this paper addresses that requirement by distinguishing positions within a name.

#### Earlier approaches as the authors describe them

The paper describes a shift toward methods that can learn from annotated text. A rule-based recognizer gives its designer direct control over which signs count as evidence for a name. The authors credit expert rules with capturing cues that statistical techniques can miss. They also emphasize the cost of keeping rules effective when the type of text changes. Rules tailored to one source can need substantial revision when applied to another source with different vocabulary or layout.

A trainable recognizer draws some of its evidence from patterns that recur in the data. It can assemble probability estimates even where the human designer has supplied no rule for a particular sequence. For the authors, the attraction lies in the ability to fit the system anew and in the statistical information made available by training. The paper’s own design combines that approach with curated suffix lists and a lexical heuristic. Its portability question consequently concerns both the statistical framework and the evidence available to an implementation in a given language. [Machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/)

Among the earlier trainable approaches the paper discusses are the HMM recognizer IdentiFinder, the maximum entropy system MENE, and work based on conditional random fields. It also describes Zhou and Su’s HMM tagger as having reported strong results on the Message Understanding Conference data. In explaining its choice, the paper emphasizes the locality of many clues to names and the ability of the Viterbi algorithm to search sequences efficiently. Those considerations motivate a system that retains a short history at each word.

For the languages at the center of the study, the authors identify earlier Bengali work on pattern-based bootstrapping and on the induction of lexical patterns from a corpus. Those approaches later serve as comparison systems in the Bengali experiment. The authors also cite Hindi work using conditional random fields and feature induction. That Hindi work establishes part of the research context for the experiment. The paper’s numerical comparison with competing systems is confined to the Bengali data.

The question the authors take up is how much a sentence tagger can achieve by combining local label patterns with lexical evidence when trained separately for Bengali and Hindi. Bengali supplies the setting in which they develop the method, including the treatment of unfamiliar words. Hindi supplies a second setting in which to test the same general approach. The experimental design gives the work two different comparisons, one among recognizers on the Bengali data and one across language-specific runs of the HMM recognizer.

### The method, step by step

#### From prepared text to a sequence of entity labels

The procedure starts by establishing which training words belong to entities and how those words are positioned inside each entity. The resulting annotation serves two purposes. It tells the recognizer which names and ordinary words appeared with each label, and it tells the recognizer which labels tended to follow one another. Training reduces those observations to probabilities. At test time, the recognizer uses the probabilities jointly to choose how a sentence should be labeled. [Linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/)

The main Bengali resource is a corpus assembled from the online archive of a Bengali newspaper. The authors describe the larger archive-derived corpus as containing around 34 million wordforms in ISCII and UTF-8. Some of its existing tags identify parts of an article in which names or dates tend to appear in fixed places. The paper mentions locations, reporters, agencies and dates in this connection. That markup provides background on the source corpus. The sample selected for the experiment still has to be prepared with grammatical and entity labels.

The Bengali preparation starts with 150,000 wordforms. The authors first run a separate HMM-based tagger to assign 26 grammatical categories to the words. They then manually check the tagging. The categories that represent names are mapped to the more specific entity labels required by the recognizer, and the other grammatical labels become NNE. This process makes grammatical annotation an intermediate stage in the preparation of the Bengali entity corpus. The observations scored by the recognizer are the words of the sentence. [Part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/)

For Hindi, the paper identifies the SPSAL contest as the source of the training data. The Hindi data already carry 26 grammatical tags. The authors map the tags that represent entities to the same entity-label inventory and use NNE for the rest. This gives both corpora a common format at the stage where the named entity recognizer learns its probabilities. The description gives Bengali the more detailed account of automatic grammatical tagging and manual checking.

From prepared sentences to typed entity predictions The steps in order.

#### What the labels tell the recognizer

A single-word entity has a label for its class. The labels are PER for a person, LOC for a location, ORG for an organization and MISC for a miscellaneous expression. NNE represents a word outside the named entity inventory. A word inside a longer entity receives a position as well as a class. B marks the beginning, I an interior word and E the end. A separate version of each of these position labels exists for every entity class. The paper describes the full inventory as sixteen entity tags and one tag for ordinary text.

The examples show how the position labels turn a series of token decisions into a phrase. The paper gives `sachin` as a word that can carry PER on its own. In `sachin ramesh tendulkar`, the words carry B-PER, I-PER and E-PER in order. The same spelling at the start of the second example belongs to a longer mention. Its tag tells the system about its place inside that mention as well as its category. The desired interpretation of a word therefore depends in part on which other words belong with it.

The scheme also covers names with different internal lengths. In the paper’s organization example, `bhaba atomic research centre`, `bhaba` begins the name, `atomic` and `research` are interior words, and `centre` ends it. The repeated interior tag lets the sequence represent a longer span while keeping each word’s category explicit. In the location example `mahatma gandhi road`, the complete string is treated as a location. The category applies to the whole expression, even when part of that expression could suggest a person in another setting.

Miscellaneous expressions use the same distinction between single words and spans. The paper illustrates the single-word class with a percentage written as one token and the longer class with the components of a date. A label sequence that identifies the date can mark where it starts and ends using the same machinery that locates an organization. The category inventory imposes a single broad label on these different forms of miscellaneous expression.

The authors describe a final conversion from the sixteen position-sensitive entity tags to the four output categories. During decoding, the extra distinctions let the recognizer score beginnings, interiors and endings separately. The final classification presents the broad type that those labels share. The positional tagging scheme supplies the information needed to group words as a mention, although the evaluation description leaves some details of that grouping and scoring implicit.

#### Choosing the sequence with the highest probability

The hidden Markov formulation distinguishes the sentence one can see from the label sequence the recognizer must infer. Each candidate sequence assigns a label to every word. The task is to find the candidate with the greatest probability given the words. The paper uses Bayes’ law to express the search as a product of the probability of the tags and the probability of the words given those tags. The probability of the input sentence on its own is common to all candidates for that sentence, which leaves the same winning sequence after it is dropped from the comparison.

```
argmax over T [P(T) × P(W | T)]
```

Here `T` is a candidate tag sequence and `W` is the observed sequence of words. `P(T)` is the probability of the tag sequence before accounting for those words. `P(W | T)` is the probability of observing the words given that sequence, with the vertical bar read as “given.” The multiplication sign joins the two scores. `argmax over T` asks for the sequence that makes the bracketed product largest.

The two terms answer different questions about a candidate. A sequence containing the beginning of a person name followed by an interior person tag can receive support from its transition pattern. The word score then asks whether the actual word at each position is plausible for the labels in that candidate. A familiar spelling can support one interpretation while the tag history supports another. Decoding considers their product over the sentence, so a strong local cue has to contribute to a coherent path.

#### Learning which labels tend to follow each other

Estimating a probability for each complete tag sequence would tie the statistics to particular sentences. The paper uses a trigram assumption to make the estimation local. After the start of the sentence, the probability of a tag depends on the two preceding tags. A tag trigram consists of the current label and that short history. Such a history can retain evidence that a name has just started or continued without requiring the decoder to carry every preceding prediction. [N-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/)

```
P(T) = P(t₁) × P(t₂ | t₁) × P(t₃ | t₁, t₂) × P(t₄ | t₂, t₃) × … × P(tₙ | tₙ₋₂, tₙ₋₁)
```

`T` is the whole label sequence, `P` denotes probability, `tᵢ` is the label at position `i`, and `n` is the length of the sentence in words. The subscripts identify particular positions. The first factor uses the first label by itself. The second conditions on the first label and the later factors use the previous pair. Commas separate the labels in a conditioning history, `×` multiplies the factors, and `…` stands for the intervening positions in the product.

The implementation gives the start of a sentence its own dummy tag. Written as `START` below, this marker represents the boundary that precedes the first word. It supplies context at the point where an ordinary previous tag is unavailable. The first decision has the marker as its history, and the second has the marker and the first chosen tag. From the following position onward the history comes from actual word labels.

```
P(T) = P(t₁ | START) × P(t₂ | START, t₁) × P(t₃ | t₁, t₂) × P(t₄ | t₂, t₃) × … × P(tₙ | tₙ₋₂, tₙ₋₁)
```

`START` denotes the artificial beginning-of-sentence tag. `T` remains the full sequence and `P` a probability. `t₁`, `t₂`, `t₃` and `t₄` denote the early labels, while `tₙ` is the last label and `tₙ₋₂, tₙ₋₁` are its two predecessors. The vertical bar introduces the history, commas separate its elements, and the multiplication sign combines the successive factors. The ellipsis again represents the continuation of the product.

The trigram assumption makes a longer label pattern available to the calculation than a transition that sees only the most recent label. Its cost is that a particular two-tag history can occur very rarely. An infrequent history gives a fragile estimate of what can follow it. A missing history provides no direct estimate at all. Interpolation addresses this problem by making shorter histories part of the transition score even when a longer history is available.

```
P̃(tₙ | tₙ₋₂, tₙ₋₁) = λ₁ P(tₙ) + λ₂ P(tₙ | tₙ₋₁) + λ₃ P(tₙ | tₙ₋₂, tₙ₋₁)
```

`P̃` denotes the smoothed transition probability and `P` an estimate at the indicated context length. In this expression `tₙ` is the label being scored, `tₙ₋₁` is the previous tag and `tₙ₋₂` is the one before that. `λ₁`, `λ₂` and `λ₃` are the weights for the estimate with no conditioning tag, the estimate with the previous tag and the estimate with the previous pair. Placement next to a probability means multiplication. The plus signs add the weighted terms, and the weights together sum to `1`.

In the procedure used to obtain those weights, the authors initialize all the weights to `0` and look at each tag trigram that occurs in training. They compare estimates of how well each history length would predict its last tag if a single instance were removed from the relevant counts. The three expressions below are the quantities compared in that calculation. Each gives the observed continuation credit under a different amount of context.

```
(freq(t₁, t₂, t₃) − 1) / (freq(t₁, t₂) − 1)
```

Here `t₁, t₂, t₃` are the three successive labels in the trigram being inspected. `freq(t₁, t₂, t₃)` counts that triple and `freq(t₁, t₂)` counts its preceding pair. The subtraction of `1` removes one occurrence from each frequency, and the slash divides the adjusted triple count by the adjusted history count. This quantity represents the prediction using the longer history and corresponds to `λ₃`.

```
(freq(t₂, t₃) − 1) / (freq(t₂) − 1)
```

`freq(t₂, t₃)` counts the final pair in the triple and `freq(t₂)` counts instances of the middle tag. The numerator and denominator each subtract `1`, and the slash divides the results. The candidate prediction now uses `t₂` as the sole conditioning tag for `t₃`. This quantity corresponds to `λ₂`.

```
(freq(t₃) − 1) / (N − 1)
```

`freq(t₃)` counts the last tag of the triple in the training corpus and `N` is the number of tokens in that corpus. Subtracting `1` from those counts gives the adjusted numerator and denominator, and the slash indicates division. This candidate uses the general frequency of `t₃` and corresponds to `λ₁`.

When a denominator is `0`, the procedure assigns that expression a value of `0`. The authors add the trigram’s full frequency to the weight associated with the largest of the three comparison values. They then normalize the accumulated weights. A often observed triple thus contributes more to the final interpolation than a rare one. The subtraction step asks which amount of context remains persuasive when one instance is taken out of the estimate. The resulting mixture makes the recognizer less reliant on counts for any one history length.

#### Learning which words go with each label

The second part of the tagging score describes the words that a proposed tag path can produce. A basic HMM estimate associates each word with its own tag. Under that simplification, once the sequence of tags is fixed, each word contributes a factor that can be scored separately from the other words. The paper starts from this construction before introducing its context-dependent version.

```
P(W | T) ≈ P(w₁ | t₁) × P(w₂ | t₂) × … × P(wₙ | tₙ)
```

`W` is the observed word sequence, `T` is the corresponding tag sequence, and `P` denotes probability. `wᵢ` is the word at position `i` and `tᵢ` its candidate label. `n` is the number of words, and the ellipsis covers the intervening positions. The vertical bar separates a word from the label that conditions its probability. The approximation sign records the independence assumption that permits the product of the separate factors.

```
P(wᵢ | tᵢ) = freq(wᵢ | tᵢ) / freq(tᵢ)
```

`P(wᵢ | tᵢ)` is the probability estimate for word `wᵢ` under tag `tᵢ`, with `i` marking the position being scored. `freq(wᵢ | tᵢ)` counts cases where that word has that tag in training. `freq(tᵢ)` counts all uses of the tag. The slash divides the joint count by the label count. In HMM terminology this is an emission probability because it scores an observed word under a hidden label.

The paper gives the emission a contextual extension. Along with the label at the current word, it conditions on the label assigned to the preceding word. This can change a word’s score across candidate paths even when the current tag stays fixed. In a multiword entity, for instance, the word at the current position contributes evidence under both its own role and the kind of role that immediately preceded it. The word emission still depends on a short label history, and the previous word affects the current score through its proposed label.

```
P(W | T) ≈ P(w₁ | START, t₁) × P(w₂ | t₁, t₂) × … × P(wₙ | tₙ₋₁, tₙ)
```

`W` is the sentence, `T` the candidate tag sequence and `P` a probability. `w₁`, `w₂` and `wₙ` are the first, second and last words. `t₁`, `t₂` and `tₙ` are their tags, and `tₙ₋₁` is the tag immediately before the last one. `START` stands for the tag at the left boundary. The comma separates the two conditioning labels, `×` multiplies emission probabilities, and `…` denotes the other positions. The approximation reflects the restriction of each emission to its stated context.

```
P(wᵢ | tᵢ₋₁, tᵢ) = freq(tᵢ₋₁, tᵢ, wᵢ) / freq(tᵢ₋₁, tᵢ)
```

`wᵢ` is the word at position `i`, `tᵢ` is its proposed label and `tᵢ₋₁` the preceding label. `freq(tᵢ₋₁, tᵢ, wᵢ)` counts occurrences in training where that pair of labels occurs and the word accompanies the second label. `freq(tᵢ₋₁, tᵢ)` counts occurrences of the label pair. The slash means division, and the quotient estimates the conditional probability `P` on the left.

The richer context produces a familiar scarcity problem. Even a word seen several times under a given tag might have occurred only rarely after a particular previous tag. The paper keeps the estimate that uses the current tag alone and combines it with the richer estimate. In this way, observations concerning a word under the current tag can still influence the score of a candidate whose preceding tag has rarely been seen with it.

```
P̃(wᵢ | tᵢ₋₁, tᵢ) = θ₁ P(wᵢ | tᵢ) + θ₂ P(wᵢ | tᵢ₋₁, tᵢ)
```

`P̃` is the smoothed emission probability for word `wᵢ` at position `i`. `tᵢ` and `tᵢ₋₁` are its own label and the preceding label. `P(wᵢ | tᵢ)` is the estimate based on the current label, and `P(wᵢ | tᵢ₋₁, tᵢ)` is the estimate based on the pair. `θ₁` and `θ₂` multiply their corresponding estimates, and the plus sign adds the products. The two weights sum to `1`.

The authors describe estimating separate emission weights for each word as an option that would take considerable time. Their implementation estimates a common set of weights over the training corpus. The paper says that the procedure for obtaining the transition weights can also be applied to the emission weights. These are distinct mixtures. The transition mixture concerns how much history to use when scoring a new label. The emission mixture concerns how much label context to use when scoring the observed word.

#### Making an estimate for a Bengali word absent from training

Smoothing across tag histories helps when training contains some of the relevant events. A entirely new word presents a further problem. There is no observed count of that form with a tag to feed into the ordinary word estimate. The Bengali system draws on features that the new form can share with words in training. The authors describe suffixes, signs of numbers and symbols, and lookup in a lexicon. The suffix mechanism gives the system evidence for a previously unseen form by pooling the training forms with the same ending.

One suffix list covers endings that can occur across entity types and ordinary words. It has 435 entries, including a null suffix. The null entry covers forms with no ending found in the list and lets this part of the procedure represent the absence of a listed match. The suffix distribution for a given tag is derived from the words in the training set that share that suffix. A match therefore provides a statistical clue based on previously tagged forms.

The authors also use endings associated more specifically with people and places. The person list has 51 entries and includes forms such as `-babu`, `-da` and `-di`. The location list has 46 entries and includes `-land`, `-pur` and `-lia`. The separate lists reflect the authors’ judgment that these endings can be especially useful for those two categories. They still enter a system that must consider the sentence and competing tag paths. An ending associated with locations supplies evidence for that interpretation but leaves the sequence scorer to choose the path.

The paper also mentions two additional features that cover numbers and symbols. These cues are relevant to a tag inventory that includes quantities and dates. A word with a visible sign or numeric form can share evidence with other such forms even if its exact spelling is new. The paper records the presence of these features and describes the suffix statistics more fully than the way multiple matching features are combined.

To add evidence for ordinary vocabulary, the authors use a Bengali lexicon derived in an unsupervised manner from the tagged news corpus. The paper puts its size at around 100,000 word entries. It contains Bengali roots with basic grammatical information and excludes named entities. Its listed kinds of vocabulary include nouns and verbs, forms such as adjectives and adverbs, and pronouns and indeclinable words. The recognizer uses lexicon membership as a heuristic that favors an ordinary-word interpretation for an unknown form.

This is a different kind of evidence from a name list. The lexicon gives the system a reason to select NNE for a form it has never encountered in the labeled sample. The name-oriented suffix lists can give a different unknown word a plausible person or place interpretation. Behind both decisions, the sentence decoder still evaluates the neighboring tags. The Hindi experiment uses the sequence framework without corresponding Hindi suffix lists or a lexicon, which makes the Bengali unknown-word treatment a language-specific part of the reported system.

#### Finding the best path through a sentence

With the transition and emission estimates in hand, the decoder has to compare complete paths. Testing all possible labels at all positions independently of the previous search decisions would require following many paths that share the same final labels. Viterbi avoids that duplication. At a given point, histories ending with the same pair of labels offer the same relevant past to any possible continuation under the trigram assumption. The highest-scoring history among them can stand for the group.

Suppose a proposed current tag is `c` and the two preceding tags are `a` and `b` in that order. The decoder considers the best earlier path ending in `a, b`, then scores a transition to `c` and the emission of the current word given `b, c`. After taking that step, the retained history for the next decision ends in `b, c`. Paths that reach the same pair can be compared because their later transition and emission possibilities depend on that shared pair. This is the reason the search can preserve the information needed for a trigram calculation without storing every possible path through the sentence.

The previous-label context in the emission fits the same search. When evaluating the extension to `c`, the decoder already has `b`, the extra label required by the word score. It can therefore use the contextual emission together with the trigram transition at the same step. The best path at the end gives the tag for each word in the sentence. The authors report the running time in terms of sentence length and the number of available labels per word.

```
O(S³ × |W|)
```

`O` describes the growth of the running time, `S` is the number of possible tags for a word and the superscript `³` reflects the choices of current tag and two previous tags. `W` is the input sequence and `|W|` is its length. The multiplication sign connects the work over tag triples to the number of word positions. With a fixed label inventory, the expression grows linearly in sentence length.

### Experiments and results

#### What was held out

The Bengali experiment uses the labeled sample of 150,000 wordforms prepared from the newspaper corpus. Its scores apply to that sample under cross-validation. The parent archive is much larger, and its reported size describes the source of the sample and related lexical resources. The Hindi experiment uses 27,151 wordforms from the contest data. Each language has its own training and test material, so these are two separate evaluations of the tagging procedure.

The cross-validation protocol divides the material into `10` subsets. On each run the recognizer is fitted with `9` subsets and tested with the withheld one. The process rotates the withheld subset, after which the paper gives average scores. For Bengali the paper describes the subsets as equal in size. A held-out score therefore says how the fitting procedure performs on material from the same assembled corpus when the labels for that portion are reserved for evaluation.

This design also lets the authors compare their Bengali tagger with the earlier methods on a common dataset. Both earlier Bengali systems are reported as trained and tested on that dataset with 10-fold cross-validation. The paper identifies one approach by its use of pattern-based bootstrapping and the other by learning lexical patterns from corpus data. Their average F-scores supply the baseline scores for the paper’s claim of improved performance. The Hindi results concern the HMM alone.

#### How the scores are defined

The paper uses recall, precision and F-score. Recall is intended to describe the coverage of the annotated entities in the test material. Precision describes how often a tagged prediction is correct. The combined score gives both rates influence. The three metrics present different views of a system that can miss coverage or make incorrect assignments, and the paper reports all three for the Bengali and Hindi cross-validation runs.

The recall equation is worded ambiguously. Its numerator is described as the count of tagged entities, whereas the precision equation explicitly introduces the count of correctly tagged entities. To serve as a coverage measure, the recall numerator has to refer to annotated test entities found by the tagger. With that reading, an extra prediction outside the annotated entities would count against precision and would leave recall unchanged. The formulas below preserve the distinction in how the paper labels the counts.

```
R = (tagged NEs / test-set NEs) × 100%
```

`R` means recall. `NEs` means named entities. `tagged NEs` is the paper’s name for the numerator and `test-set NEs` counts the entities present in the annotated test material. The slash forms a fraction and the multiplication by `100%` expresses it as a percentage. The coverage interpretation reads the numerator as test entities recovered by the system.

```
P = (correctly tagged NEs / tagged NEs) × 100%
```

`P` here means precision. `correctly tagged NEs` counts correct entity predictions, and `tagged NEs` in the denominator counts the entities predicted by the recognizer. The slash divides those counts, and the factor `100%` gives the percentage. The paper uses the same short phrase for this denominator and the numerator of recall, which is why the intended meaning of the latter requires interpretation.

```
FS = ((2 × Recall × Precision) / (Recall + Precision)) × 100%
```

`FS` denotes F-score, and `Recall` and `Precision` inside the fraction are the underlying rates expressed as proportions. The multiplication signs combine those two rates with `2`, the plus sign adds the rates in the denominator, and the slash divides the resulting quantities. The final factor `100%` presents the score as a percentage. The calculation gives a combined rate whose value depends on both the coverage of the annotated entities and the reliability of the predictions.

The metric definitions refer to named entities, and the paper describes conversion from the positional tags to broad classes before presenting the results. Its account leaves the treatment of partly correct spans unsettled. A recognizer could choose the right class for part of a longer mention while disagreeing on where it ends. The reported scores are best read under the authors’ evaluation procedure, with the same-data Bengali comparison providing the closest match of experimental conditions in the paper.

#### Bengali cross-validation and the earlier systems

The paper’s prose reports average Bengali recall of 90.2%, average precision of 79.48% and average F-score of 84.5%. In the Bengali results table, the average column instead reads 90.30 for recall, 79.52 for precision and 84.50 for F-score. The article gives both sets of reported values because its prose and table print the first two measures differently. Both presentations show recall above precision, and the F-score is reported as the same value at different decimal precision.

The Bengali baselines’ average F-scores are 74.5% for the pattern-based bootstrapping system and 77.9% for the system based on learning lexical patterns. The HMM system records the highest average F-score of the three in the paper. The authors report these as results from training and testing the systems on the same Bengali dataset using 10-fold cross-validation. The shared dataset is what makes this comparison more informative about the complete systems than a comparison with a result from a different corpus would be.

Average cross-validation F-score by system on the Bengali news sample The HMM recognizer has the highest reported average F-score on the shared Bengali dataset.

**The numbers**

| System or setting | F-score % |
| --- | --- |
| Pattern-based bootstrapping | 74.5 |
| Lexical pattern learning | 77.9 |
| Hidden Markov recognizer (this paper) | 84.50 |

Individual Bengali subsets also show variation. Test `1` has table entries of 90.80 recall, 80.40 precision and 85.29 F-score. Test `8` records 89.81 recall, 78.12 precision and 83.56 F-score. Test `9` has 89.72 recall, 78.27 precision and 83.60 F-score. These are points in the paper’s presentation of results for different held-out subsets. They show that the average summarizes multiple fitted runs, each with a different set of words and entities reserved for testing.

The observed relation between recall and precision is part of the result. The recognizer recovers a large share of the annotated entities under the reported scoring, while a smaller share of its predictions are correct. The authors inspect precision errors and single out organizations as a source of mistakes. The overall Bengali F-score thus combines a relatively high coverage rate with difficulty in particular predictions. It gives the score for the entire inventory and leaves the performance of individual classes to the paper’s qualitative discussion.

#### Hindi cross-validation

For the Hindi corpus, the prose reports average recall of 82.5%, average precision of 74.6% and average F-score of 78.35%. The table gives the corresponding averages as 82.50, 74.60 and 78.35. These scores are for the Hindi run trained and evaluated on the Hindi data. They establish that the framework can be fitted using the available Hindi annotations and run through the same kind of cross-validation evaluation.

The Hindi fold results also show the distinct behavior of the metrics. Test `1` has 83.10 recall, 75.34 precision and 79.03 F-score. Test `7` gives 82.31 recall, 73.73 precision and 77.78 F-score. The reported precision is below recall across these examples, as in Bengali. The differences among the Hindi fold scores describe variation across withheld subsets of the Hindi corpus. The paper supplies a competing-system benchmark only for the Bengali experiment, so the Hindi series measures the behavior of the fitted recognizer under its own protocol.

The Hindi averages are lower than the Bengali averages on each of the reported measures. The authors give two possible contributors. The Hindi data contain fewer wordforms than the Bengali sample, and the Hindi recognizer lacks the suffix and lexicon resources described for Bengali. Corpus source, language, training material and unknown-word support vary together across the experiments. The comparison documents the outcome in those two settings, while the causes of the score gap remain open.

### What the ablations show

The paper reports no component ablations. Its comparisons consist of the system-level Bengali benchmark, the evaluations across Bengali and Hindi, the fold-by-fold results, and a qualitative inspection of Bengali organization errors. Each type of evidence answers a different question about the recognizer.

#### The common-data comparison measures the complete recognizer

The two Bengali baselines give the clearest controlled comparison in the paper because the evaluations use the same dataset and cross-validation protocol. This comparison supports the claim that the reported HMM system improves on those two systems in average Bengali F-score. All the components of the HMM recognizer contribute to that result as a package. Its tag representation, transition estimates, contextual emissions and Bengali unknown-word handling are present together in the run whose scores are reported.

The method section describes both an emission based on the current tag and an emission that adds the previous tag, which makes their relative value a natural question. In the reported recognizer these estimates are combined. The equations explain the rationale for using them together, but the results give a score for the combined system. The incremental effect of adding the previous label to the emission remains unmeasured. The same distinction applies to the use of a two-tag transition history and the interpolation of transition estimates.

The suffix lists and lexicon make another possible component comparison. Because they intervene when a form is missing from the training vocabulary, their contribution could be concentrated in a subset of test cases even if the effect on the full corpus were modest. The reported results pool cases across the corpus. They establish the performance of the recognizer with these resources in place for Bengali, leaving the individual contribution of the suffix lists, number and symbol features, and lexicon unresolved.

#### The organization errors point to a gap in lexical evidence

The authors state that their review of Bengali output found many precision errors involving organization names. Their proposed explanation concerns the recognition of unfamiliar forms. Person and place names have dedicated suffix lists. Organizations have no comparable class-specific list in this system. This asymmetry gives the authors a plausible reason that the decoder has less useful word-shape evidence for an unfamiliar organization.

The claim is qualitative. A group of precision errors in one type can be important even when the average score for the entire dataset looks strong. Establishing how much that group contributes would require category-specific scores or error counts. The paper’s inspection identifies where the authors observed difficulties, while the missing organization suffix resource remains their explanation of a possible cause. The comparison with person and place names identifies a difference in feature coverage rather than an experimentally measured effect of that difference.

The position tags also make several kinds of organization error possible in principle. A system could guess the wrong category for a phrase, find only a piece of the organization’s name, or extend the name into ordinary words. The paper’s discussion identifies the category and highlights the issue of unknown words. It leaves the distribution among these possible failure modes open. That matters when interpreting the overall precision result, since improvements in recognizing unfamiliar vocabulary and improvements in finding boundaries address different decisions.

#### The Hindi run tests reuse of the tagging framework

The Hindi experiment shows that the training and decoding procedure can be used with mapped Hindi annotations as well as with the Bengali news material. The tag inventory and short-history design carry across the experiments. The training data and lexical support differ. The study therefore demonstrates the portability of the framework to a second fitted recognizer, alongside the practical dependence of the full system on the resources assembled for each language.

The authors propose that the smaller Hindi corpus and less developed unknown-word treatment help explain the lower Hindi scores. The cross-language comparison is compatible with both explanations. Because those conditions change together, the scores cannot determine the share attributable to either. Likewise, the fold series shows how results vary across withheld slices of each corpus. It supplies a view of the stability of the whole system across those slices, while the contribution of the individual design choices remains an open question.

### Limitations

#### Limits the authors identify

The authors emphasize precision as an area for future work. In Bengali, their discussion centers on organization names and the recognizer’s treatment of unfamiliar organization words. The system has specialized ending lists for people and places, and the authors regard the absence of a corresponding organization resource as a possible reason for the errors they observe. The paper does not present a revised handling procedure or a result from adding such a resource.

The paper also identifies the amount of Hindi training data and the available resources for unfamiliar words as limitations of that run. The Hindi data comprise 27,151 wordforms and the Bengali sample comprises 150,000. The Bengali system can consult its suffix lists and lexicon for additional clues. The authors regard both differences as plausible explanations of the Hindi result and leave their relative importance open. The paper’s portability claim is consequently clearest at the level of the trainable tagging framework.

The conclusion proposes exploring other trainable recognizers for Bengali, including maximum entropy Markov models and conditional random fields. These are directions for comparison rather than additional experimental entries. The paper’s empirical ranking concerns its HMM and the two earlier Bengali systems on the shared Bengali data. The recognition approaches described in the context section provide the intellectual setting for the work, while their relative performance on this dataset remains outside the experiment.

#### Limits visible in the evaluation design

The evaluation establishes performance on held-out subsets of the assembled Bengali and Hindi corpora. Its Bengali folds come from a sample of one newspaper archive, and the Hindi material comes from the contest dataset. Performance on news from a different source, on different kinds of writing, or on a distinct collection of names remains open. The paper also leaves the grouping unit used to form folds unclear. Accordingly, the scores support generalization to held-out material in the reported data, while generalization to whole unseen sources or to entirely new sets of names calls for different evidence.

The archive-derived Bengali lexicon introduces another detail relevant to how the evaluation should be read. The paper says that it was developed from the tagged Bengali news corpus, which is also the origin of the annotated sample. Its description leaves the relationship between lexicon construction and each fold unspecified. This prevents a reader from determining which information was acquired strictly within a fold and which came from resources prepared from the broader archive. That is an uncertainty about the experimental boundary. The paper establishes the stated provenance of the resource and its role as an ordinary-vocabulary cue.

The Bengali dataset preparation includes a manual check of the grammatical labels before the mapping to entity tags. The paper describes that process in broad outline. It leaves details of annotation agreement and the handling of ambiguous examples open. Those details could affect how readily another group could reproduce the same gold labels from the same news sample. The Hindi setup starts with existing grammatical tags and applies the stated conversion, giving the two experiments a common output inventory even though the descriptions of their preparation differ.

The metric presentation raises two separate interpretive questions. First, readers must reconcile the printed definition of recall with the coverage quantity it appears intended to measure. Second, the Bengali precision and recall averages differ between the prose and the table. Neither presentation supplies a basis for silently replacing the other. Quoting the source of each value preserves both the experimental finding and the uncertainty over which reported averages the authors meant as definitive.

The paper’s brief account of evaluation leaves boundary matching and class-specific performance underdescribed. The tags explicitly represent the beginning, interior and end of a multiword name, so a disagreement over a span can be distinct from a disagreement over its class. The article gives an entity-level description of the metrics and says how the positional categories are mapped to output types. It leaves sufficient ambiguity that comparisons with later evaluations would need a matching scoring protocol as well as a matching class inventory.

Finally, the framing of the work emphasizes possible applications in extraction, translation and question answering. The reported experiments concern recognition percentages on the two annotated corpora. Improvements in those downstream tasks would require their own measurements. The paper’s result is that the recognizer identifies and classifies names with the reported performance in its cross-validation settings, with a common-data comparison in Bengali and a separately fitted run in Hindi.

### What came after

[Vācaspati, a diverse corpus of Bangla literature](https://md.research.elamur.ai/free/en/papers/bhattacharyya-2023-vacaspati-diverse-corpus-bangla-literature/) cites the paper. Its subject places it in a different corpus setting. Ekbal and Bandyopadhyay draw the Bengali material for their entity recognizer from a newspaper archive, while Vācaspati concerns Bangla literary material. The citation connects work on these different sources of Bengali text. The role of the recognizer in building or evaluating Vācaspati remains unspecified.

That distinction matters for the history of the method. The HMM paper shows what can be learned from entity annotations prepared for the news sample, with additional evidence from Bengali lexical resources. Literary material represents a different setting for corpus work. The citation establishes a connection between the papers, while any transfer of the entity tags, the contextual emission design, or the trained recognizer to literary text remains an open question.

## Cite

Cite as Asif Ekbal and Sivaji Bandyopadhyay. 2007. A Hidden Markov Model Based Named Entity Recognition System: Bengali and Hindi as Case Studies. Springer eBooks.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1007/978-3-540-77046-6_67](https://doi.org/10.1007/978-3-540-77046-6_67)

```bibtex
@article{ekbal2007hidden,
  title = {{A Hidden Markov Model Based Named Entity Recognition System: Bengali and Hindi as Case Studies}},
  author = {Asif Ekbal and Sivaji Bandyopadhyay},
  journal = {Springer eBooks},
  year = {2007},
  doi = {10.1007/978-3-540-77046-6\_67},
  url = {https://doi.org/10.1007/978-3-540-77046-6_67}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
