Arabic named entity recognition using deep learning approach
Paper · 2019 · Ismail El Bazi and Nabil Laachfoubi
Summary
Finding a name in Arabic text takes more than recognizing a familiar word. A name can span several words, an attached prefix or suffix can change how one of those words appears, and Arabic has no capitalization to flag a possible name. In text without diacritics, the same written form can also have several readings. This paper studies named entity recognition, the task of finding expressions such as people, places, and organizations and assigning them categories. The authors ask how well a neural system can do that job when trained on annotated examples and initialized from ordinary Arabic text, with no hand-built name lists or linguistic features supplied to the recognizer.
The system represents each word in two ways. A pretrained word vector carries information learned from Arabic Wikipedia, while a character encoder learns which parts of the spelling are useful for recognizing entities. A bidirectional long short-term memory network reads the sentence in both directions so that each word can be interpreted in light of what comes before and after it. A conditional random field then chooses the sequence of tags jointly. This last step matters because identifying a name involves getting its boundaries as well as its category right. A tag that continues a location, for example, fits poorly after a tag that starts a person’s name.
On the AQMAR corpus, both character encoders improved average F1, the score the paper uses to balance precision and recall. A convolutional encoder that examines short stretches of spelling did better than the recurrent character encoder in every reported run. FastText was the strongest source of pretrained word vectors in the comparison, and its smallest tested dimension, 50, gave the best average. The experiments also varied dropout, which regularizes training, and the optimizer, which updates the network’s parameters. The leading choices on AQMAR helped narrow the search on ANERCorp, where the winning combination used variational dropout and the Nadam optimizer.
That final ANERCorp configuration averaged 90.60 F1. It scored above two earlier systems in the paper’s comparison and close to the hybrid system of Shaalan and Oudah, which scored 90.66. The result shows that a recognizer trained with word vectors, spellings, and labeled sentences can approach the strongest feature-rich result in the paper’s benchmark comparison. The word vectors still require unlabeled text, and the recognizer still requires annotated examples. The change is in where the system gets its evidence about names and how it learns to use that evidence.
Deep dive: Arabic named entity recognition using deep learning approach
How an Arabic named entity recognizer learns from word spellings and sentence context, and how it compares with systems that use hand-built rules. · about 39 minutes to read
The problem and its context
Finding a span and deciding what it names
A named entity recognizer has to answer two questions about a passage. Which words belong to a mention, and what category does the mention belong to? For a name composed of several words, the recognizer has to tell where the mention starts, which words continue it, and where ordinary sentence material resumes. The category decision depends on that extent. Recognizing that part of a phrase resembles a place name leaves open whether the larger phrase names a place, an organization, or something else. The paper treats these as related decisions made over a sentence.
The categories are specified in advance. The introduction uses people, organizations, and locations to explain the kind of distinctions the task asks a system to make. A recognizer learns to mark occurrences of those categories in text. Its output can then serve another language-processing task. The authors mention syntactic analysis, where the structure of a sentence matters, as well as question answering and coreference resolution, where a system works out which expressions refer to the same entity. In each case, knowing that several adjacent words form a name can affect what the downstream system does with them.
The paper is concerned with finding mentions in the supplied text. It formulates that problem as sequence labeling, meaning that the input is an ordered series of words and the output assigns a tag to each position. The tags give the sequence enough structure to describe mentions spanning several positions. A person tag at the start of a name and a person tag at a continuation position carry different information, even though they share an entity category. A system therefore needs evidence about individual words, how those words fit into a sentence, and how the resulting tags fit together.
Why spelling and context both matter in Arabic
The authors identify several reasons why a list of familiar written forms is an incomplete basis for Arabic recognition. One is Arabic morphology, the structure and variation of word forms. Material attached to a word can produce several forms related to the same underlying item. Each form may have fewer occurrences in the training data than the underlying item would have if its occurrences shared a spelling. This is the sparsity problem the authors describe. A whole-word representation gives each vocabulary item its own entry, so related spellings need some way to share evidence.
The authors also draw attention to omitted diacritics in Modern Standard Arabic text. Distinct readings can have the same visible spelling when those marks are absent. A representation built from the spelling can learn that the form frequently occurs in names, but the spelling alone can be compatible with different tags. Surrounding words offer another kind of evidence. A system that can draw on context in both directions can use a clue that appears after the ambiguous form as well as one that came before it.
Capitalization illustrates a different problem. It can provide a visual cue in languages where names can be marked by an initial capital. Arabic script supplies no such distinction. The recognizable pieces of a spelling that remain, such as recurring prefixes and suffixes, may still help, but they have to be interpreted in context. The authors’ architecture reflects that division of labor. Spelling evidence goes into a word representation, while sentence evidence enters through a separate sequence encoder. The final decision can draw on both.
The resources available for designing a recognizer also shaped the problem. According to the paper, researchers had limited access to freely available corpora with entity labels and to gazetteers, which are lists of names associated with categories. Linguistic annotation supplies examples of where names occur in actual sentences and how they are classified. A gazetteer supplies evidence of a different kind. It can flag a candidate because the written item appears in a list. Building either resource requires effort, and constructing additional rules and features extends that work.
The paper’s response is to use an unlabeled corpus alongside labeled examples. A large collection of ordinary text can provide occasions to learn how words and pieces of spelling recur, even when the text lacks explicit indications of entity boundaries. The annotated examples then teach the recognizer how to turn its representations into tags. This distinction matters for understanding what the method replaces. The goal is to reduce the need to design and maintain entity-specific resources and features while still learning from text and from human decisions about the target categories.
What earlier Arabic systems supplied by hand
The paper divides earlier Arabic work into rule-based, machine-learning, and hybrid approaches. Its examples of rule-based work include a system based on syntactic grammars and the RENAR recognizer. These approaches put language knowledge into explicit recognition procedures. A rule can specify a context or a pattern that gives a reason to mark a candidate name. The effort lies in deciding which observations to turn into rules and in covering the range of contexts in which a candidate can occur.
The machine-learning work cited by the authors includes an Arabic system that uses conditional random fields and work on Arabic recognition through topic modeling. A learned tagger can estimate which evidence is predictive from annotated data. The paper’s criticism is that a learned decision procedure can still depend on a designer to choose and encode the evidence it receives. For instance, whether a word appears in a gazetteer can be presented as an input feature. A tagger then learns how to use that feature, while the name list and the decision to consult it come from outside the training procedure.
Hybrid systems combine learned decisions and explicit rules. The cited work by Abdallah and colleagues integrates a rule-based system with classification. The paper describes Shaalan and Oudah’s system as combining a rule-based component with a machine-learning component and making extensive use of engineered inputs. These included morphological information, part-of-speech tags, gazetteers, and capitalization-related features. The paper lists that last feature among the inputs to the hybrid system while separately emphasizing the lack of a capitalization distinction in Arabic script. It does not explain in its comparison how the earlier system obtained or used that feature.
The authors see a common cost across these earlier approaches. Someone has to decide which linguistic properties to encode and supply the necessary resources along with the training data. Even when a tagger learns how much to trust an engineered feature, it relies on the upstream procedure that produces it. The paper asks whether a neural architecture can learn useful representations for the same tagging task from word forms and text, while retaining a decoder capable of making coherent decisions over the sentence.
Several of the architectural ideas already had precedents in the research the paper cites. The authors draw on previous neural sequence labeling with convolutional character features, bidirectional recurrence, and conditional random fields. They also consider a recurrent way to build a word representation from characters. Their study brings these components to Arabic recognition and tests which choices work in the setup they used. The task’s linguistic difficulties motivate the character and context components, while the experiments let the authors check whether those motivations translate into differences in F1.
The method, step by step
From the words of a sentence to a sequence of tags
The system starts with an ordered sentence. Every word initially has a representation learned from unlabeled text and, in the full configuration, a representation learned from its spelling. Those vectors are joined end to end in a process called concatenation. The resulting input has a fixed shape at each word position even when the spellings have different lengths. The word sequence then goes through a bidirectional recurrent encoder. Finally, a decoder uses the position representations together to select a set of tags for the whole sentence.
How the recognizer assigns tags to a sentence
The steps in order.
The distinction between characters and words is important because the system uses sequence processing at both scales in one of its variants. When recurrence is used to represent spelling, the input sequence consists of the characters of one word. When recurrence is used to provide sentence context, the sequence consists of word representations. The character experiment can consequently replace the spelling encoder with a convolutional network, or remove the spelling representation altogether, while preserving bidirectional recurrence over the sentence.
Each stage changes what the vectors can express. The pretrained word vector starts with information obtained from unlabeled text. The spelling encoder gives the tagger access to recurring written patterns, including patterns shared by words whose full forms are uncommon. The sentence encoder makes a position’s representation depend on its neighbors and on more distant words. The decoder then uses the relation between one tag and the next. That final step acts on the output categories, whereas sentence recurrence acts on the input evidence used to choose them.
Pretrained word vectors
Word embeddings are vectors of real-valued components used to represent words. In the paper’s architecture, an embedding supplies a numerical input for a particular word at its position in the sentence. Related words can acquire vectors with useful common structure through training on unlabeled material. This gives the supervised training a starting point even when the entity-annotated corpus contains few examples of a particular word.
The authors trained their own embeddings on the Arabic Wikipedia dump of December 2016. The embedding comparison began with a vector dimension of 50 and used the same unlabeled text across the learning algorithms. The algorithms studied were FastText, SkipGram, CBOW, GloVe, and Hellinger PCA, which the paper calls H-PCA. Their downstream comparison uses the vectors to initialize the recognizer’s word lookup table. The authors judged the embeddings by the Arabic tagging results of the resulting system.
FastText is of particular interest because it brings spelling information into the pretrained representation itself. The authors describe it as extending SkipGram through character n-grams, which are contiguous stretches of characters of a chosen length. Representations that draw on these pieces can share information across different full spellings. The potential benefit for Arabic is that a rare form may contain pieces encountered during embedding training in other forms. A system that considers only the full form has fewer opportunities for this kind of sharing.
The separately trained character encoder serves a related purpose at a different point in the procedure. FastText derives its representation from unlabeled Wikipedia text, guided by its own word-vector learning objective. The recognizer’s character encoder is part of the supervised tagging architecture. It can use the information in a word’s spelling in ways that help predict dataset tags. With both in place, the system receives a pretrained word vector already informed by sub-word structure and a spelling vector learned as part of the recognition task. The character comparison tests whether the latter still helps in the authors’ setup.
The authors also varied the dimension of the FastText vectors after comparing the embedding algorithms. The dimension is the number of components available to represent each word. This setting is separate from the size of the recurrent state and the number of convolutional filters. Enlarging the word vectors changes the input available to the sentence encoder. The paper treats the choice as a question for the downstream task, where a richer vector is valuable if it improves tagging on the corpus used for comparison.
Learning a vector from spelling
A convolutional neural network, abbreviated CNN, is the first way the paper builds the character representation. A filter examines stretches of adjacent characters and produces a response according to the pattern it has learned. Because the same filter can examine successive stretches, it can respond to a pattern at different positions in a spelling. The representation given to the word-level network is a vector for the word. The default convolution uses a window size of 3 and 30 filters. The window size specifies how many adjacent character positions the filter examines at a time, and the filters provide separately learned pattern responses.
A window over the characters can find repeated local structure such as a piece of a prefix or suffix. The procedure starts with the spelling and learns which regularities help with tagging. It does not require the developer to define a list of useful affixes for the recognizer to consult. The paper motivates this choice by the occurrence of many surface forms and the resulting frequency of words that are rare or missing from a vocabulary. Sharing information through local spelling patterns is a way to give such a word an informative representation.
The other spelling encoder uses a bidirectional long short-term memory network, or BiLSTM. It reads the characters in their written sequence and in reverse. Each direction can carry information from characters it has already processed, so the representation can reflect character order across the spelling. The character-level BiLSTM operates within the word. The word-level BiLSTM still performs the separate job of gathering context across words after the spelling and word vectors are combined.
A third setting leaves the character representation out. This gives the authors a comparison in which the word embeddings and the subsequent sentence processing can still support tagging. Adding either spelling encoder changes the information available to the sentence encoder. Comparing the two spelling encoders asks a narrower question about how that information is best constructed under the chosen settings. The method uses the convolutional encoder in its final form.
How the recurrent cell carries information
The sentence encoder is based on long short-term memory, abbreviated LSTM. A recurrent network at each step receives an input and information from its preceding step. An LSTM adds a cell state that can retain useful information across those steps. The paper introduces this memory in connection with gradients that can grow or shrink excessively as training follows dependencies through a sequence. For the tagging task, the practical purpose of the cell is to help carry a clue forward in the reading direction until it can inform a later position.
The paper presents the recurrent calculation as four equations. It starts by calculating an input gate, a vector that controls the update of the cell.
iₜ = σ(Wₓᵢ xₜ + Wₕᵢ hₜ₋₁ + W꜀ᵢ cₜ₋₁) + bᵢ
Here t identifies the current step and t₋₁ the preceding step in this direction of the recurrence. The vector iₜ is the input gate. The input at the current position is xₜ, the previous hidden state is hₜ₋₁, and the previous cell state is cₜ₋₁. The trainable weights Wₓᵢ, Wₕᵢ, and W꜀ᵢ apply to those three respective inputs. Each adjacency between a weight and a vector denotes their multiplication. The plus signs add the terms, σ applies the sigmoid component by component, and bᵢ is a trainable bias vector for the gate. The paper places that bias after the sigmoid in this equation.
The next operation combines carried-over cell content with new content calculated from the input and preceding hidden state.
cₜ = (1 − iₜ) ʘ cₜ₋₁ + iₜ ʘ tanh(Wₓ꜀ xₜ + W꜀ᵢ hₜ₋₁ + b꜀)
The vector cₜ is the updated cell state at step t. The term 1 − iₜ subtracts each component of the current input gate from one to weight the contribution of the preceding cell cₜ₋₁. The operator ʘ multiplies vectors component by component, and + adds the two contributions. The new content comes from applying tanh, the hyperbolic tangent applied to each component, to a sum involving the current input xₜ, the previous hidden state hₜ₋₁, and the trainable bias b꜀. The associated trainable weights are written as Wₓ꜀ and W꜀ᵢ. The paper uses W꜀ᵢ in the input-gate equation as well, there multiplying the preceding cell. The repeated subscript leaves the intended parameter naming ambiguous.
The output gate is calculated after the cell update, so its inputs include the current cell state.
oₜ = σ(Wₓₒ xₜ + Wₕₒ hₜ₋₁ + W꜀ₒ cₜ + bₒ)
The vector oₜ is the output gate at the current step t. The weights Wₓₒ, Wₕₒ, and W꜀ₒ are trainable and multiply the current input xₜ, the preceding hidden state hₜ₋₁, and the current cell state cₜ, respectively. The plus signs combine their contributions with bₒ, the trainable output-gate bias. The sigmoid σ acts on each component of that sum. Here the bias appears inside the sigmoid, and the cell used by the gate is the one just updated.
The final operation determines the hidden state exposed by the recurrent network at this step.
hₜ = oₜ ʘ tanh(cₜ)
Here hₜ is the current hidden state. The current output gate is oₜ, and cₜ is the current cell state. The function tanh transforms the cell state component by component. The product ʘ then scales each transformed component by the corresponding output-gate component. This produces a hidden state that the recurrent network can use at its next step and that the tagging architecture can pass onward for the current position.
In these equations, the previous cell influences the input gate, the updated cell influences the output gate, and the input gate controls the mix of new and carried-over content. The distinction between the cell state and the hidden state is central to that calculation. The cell gives the network a route for retaining information. The hidden state is the representation exposed at a position, shaped by how much of the transformed cell the output gate lets through.
Reading the sentence in both directions
A single forward LSTM can base its state at a word on that word and earlier positions in the sentence. An entity decision can also depend on material to the right. The paper uses a separate LSTM over the words in reverse, giving each position access to evidence available from later positions in the original order. The two directions process the same sentence and produce states that are aligned to the same word positions.
Combining the directions means concatenating the forward and backward states for each word. The resulting representation can give a different interpretation to the same spelling depending on its surroundings. This is where the word and character evidence can be put in context. A spelling feature may be visible in more than one lexical item, and a spelling that looks promising by itself can have a different interpretation once neighboring words are considered. The sentence encoder supplies this context to the decoder.
The defaults report an LSTM state size of 50 and a layer count of 2. These settings describe the recurrent part of the architecture. The state size governs the size of the recurrent representation, while the layer count describes its reported depth. Reading in both directions is a separate design choice. The direction determines which order a recurrent pass follows, whereas a layer’s state carries information within that pass.
Selecting the complete tag sequence
The decoder is a conditional random field, abbreviated CRF. It makes a joint choice over tags for the entire sentence, conditional on the word representations produced by the BiLSTM. The paper motivates this design with the dependencies in IOB2, a tagging scheme in which B identifies the first word of a mention, I identifies a word inside a mention that has already started, and O identifies a word outside a mention. The entity category accompanies a beginning or continuation tag.
The paper’s example is a transition from B-PER, the start of a person mention, to I-LOC, the continuation of a location mention. Under the tagging scheme, this transition would purport to continue a location immediately after starting a person. A decoder that independently chooses the most attractive tag at each position can favor such a pair because each local decision is made on its own. Joint decoding can evaluate the pair as part of a candidate sequence and favor a sequence whose tags fit together.
The authors give recurrent equations and explain the CRF through this dependency between tags. They leave its scoring function implicit. The example establishes why transition information belongs in the decoder, while the architectural description gives its role at prediction time. The CRF uses the contextual word representations and selects tags together, so evidence about a mention’s category and its extent can affect the same decision.
Training and choosing the settings
The authors implemented the network with Keras and used Theano as its backend. Training uses back-propagation, which calculates how changes in trainable parameters would affect the objective. An optimizer uses the gradient information to update the parameters. Adam is the default optimizer described for training, and the experiments compare it with alternatives. The paper reports gradient normalization of 1 as a safeguard against excessively large gradients.
The run setup uses mini-batches of 8 and a schedule of 50 epochs, with early stopping of 5 based on validation performance. A mini-batch specifies how many training examples the procedure groups for an update. An epoch is a pass through the training data. Early stopping uses the validation set to decide when continued training has ceased to improve the monitored performance. Because that rule can end a run before the scheduled epoch count, the setting combines an upper training schedule with a decision based on validation behavior.
Dropout regularizes training by suppressing parts of a representation on training passes, reducing reliance on particular activations. The authors compare naive dropout, variational dropout, and training without dropout. Naive and variational dropout are alternative ways of applying that regularization to the network. The paper reports their rates and their tagging results, with naive dropout at 0.5 as the default setting. The rates examined are 0.25, 0.5, and 0.75. The paper leaves the exact placement and mask behavior of the implementations unspecified in its description of these experiments.
The trials on AQMAR cover embedding method and size, spelling representation, dropout, and optimizer. These are settings chosen around the learning procedure. The parameters inside the recurrent equations, for instance, are learned during a run. The choice of embedding dimension or spelling encoder defines what the network will learn with. After comparing settings on AQMAR, the authors take the promising choices to ANERCorp and cross the leading dropout types with the leading optimizers. That validation and selection procedure is part of how they arrive at the final reported score.
Experiments and results
Which corpus answers which question
The authors use AQMAR for the configuration experiments. It is an annotated Arabic Wikipedia corpus that the paper describes as containing 74K tokens. They chose it because their available computing power made a smaller corpus convenient for repeated trials. The table gives separate training, development, and test partitions. The training partition has 1976 sentences, 52,650 words, and 3781 entities. The development partition has 336 sentences, 10,640 words, and 1099 entities. The test partition has 376 sentences, 10,564 words, and 974 entities.
Those counts distinguish words from annotated entities. A long mention occupies several word positions but represents a single labeled mention in the corpus statistics. The development partition provides the validation data used to monitor training, while the existence of a separate test partition makes it possible to reserve data for evaluation. The results tables identify the corpus and the setting being compared. They give no separate development and test scores for the configurations, so the numerical discussion is clearest when it names the corpus and the reported average without inferring additional details about split-level reporting.
The paper uses ANERCorp, a publicly available Arabic NER corpus that it describes as the standard benchmark, to compare with previously published systems. ANERCorp has 4756 training sentences, 120,011 training words, and 12,833 training entities. Its development partition contains 585 sentences, 14,976 words, and 1726 entities. The test partition contains 546 sentences, 15,019 words, and 1605 entities. The authors use this benchmark both to compare leading combinations within their own architecture and to place the resulting score next to earlier Arabic recognition results.
This division gives the corpus choice a direct role in the experimental design. AQMAR supports a broad search over individual settings. ANERCorp supports a more focused choice among promising combinations and a comparison with established systems. A ranking observed on AQMAR is consequently tied to the conditions of those trials. The ANERCorp experiments show what happened when the authors combined shortlisted options in the second benchmark setting.
What the reported F1 measures
The comparison metric is F1. Precision asks how many predicted entities are correct among the entities the system reports. Recall asks how many of the reference entities the system succeeds in finding. F1 summarizes the two together and favors a system that does well on both. This matters because a tagger that marks only its easiest cases may appear precise even while missing many names, and one that marks too many plausible candidates can recover more of the annotated names at the expense of extra false detections.
The paper reports runs separately for its configuration comparisons and averages the F1 scores over 5 runs. The reason is that training can depend on random initialization. The same architecture and settings can therefore result in different learned parameter values and different predictions. The mean describes the repeated trials more directly than a particularly favorable run. It also makes the individual rows informative, because readers can check whether an average ranking holds consistently across the displayed runs.
The reported means do not expose the balance of precision and recall. A higher F1 can reflect better coverage, better precision, or changes in both. The aggregate metric also leaves the distribution across entity categories open. For a study centered on architecture and hyper-parameters, the averages establish how the configurations ranked in the authors’ protocol. They give little evidence about the particular kinds of mentions responsible for the ranking.
The AQMAR comparisons
In the embedding comparison, FastText had the highest average AQMAR F1 at 70.86%, followed by SkipGram at 61.91%. The table gives GloVe an average of 60,73, CBOW an average of 56,14, and H-PCA an average of 39,37. These are downstream recognition scores from runs initialized with the different embeddings. The authors trained the embeddings on the same unlabeled text and compared them at dimension 50, so the scores track how the choice of embedding algorithm worked with the recognizer under those settings.
Varying the dimension of FastText from 50 through 500 did not produce a higher average than the 50-dimensional setting. The AQMAR table gives 70,86 for dimension 50 and 69,82 for dimension 100. The larger settings received averages of 67,84 at dimension 200, 68,47 at 300, 68,66 at 400, and 69,2 at 500. This pattern establishes the ranking over the sizes the authors tried. It also shows some recovery in the averages at the higher end of the range after the result at dimension 200. Increasing size moved performance in different directions within the range.
The character comparison asks whether an additional representation of word spelling is helpful. On AQMAR, the setting without that representation averaged 65,96 F1. The CNN character encoder averaged 70,86, and the BiLSTM character encoder averaged 68,04. Both character encoders scored above the setting without an explicit character vector in every displayed run. The CNN also exceeded the character BiLSTM in every displayed run, which led the authors to use it for the remaining experiments.
The strongest AQMAR dropout result was 71.08% average F1 for naive dropout with a rate of 0.25. Variational dropout at 0.25 averaged 70.52%, and the setting without dropout averaged 70,46. At 0.5, naive dropout averaged 70,85 and variational dropout averaged 64,22. At 0.75, the averages were 67,9 and 56,72, respectively. The rates matter when comparing the methods. Under the strongest regularization tested, both methods had lower average scores than they did at the smallest tested rate, and the variational setting was especially affected.
For the optimizer experiment, the authors used settings recommended for each optimizer. Adam had the highest average AQMAR F1 at 70.86%, with Nadam at 70.57%. RMSProp averaged 69,02. The remaining averages were 58,48 for Adadelta, 56,4 for Adagrad, and 33.82% for stochastic gradient descent, abbreviated SGD. These results compare the training recipes used in the paper, including their optimizer settings and stopping procedure. The authors associate SGD’s weak score with its dependence on the learning rate and with a training schedule that may have ended too early for it.
Selecting the strongest ANERCorp configuration
The AQMAR trials gave the authors a clear choice of word vectors and spelling encoder. The dropout and optimizer rankings were closer at the top, so the authors compared the leading alternatives in combination on ANERCorp. They paired Adam or Nadam with naive or variational dropout while using the other selected settings. This tests whether the best components from the smaller corpus remain the best when combined on the benchmark.
Nadam with variational dropout gave the highest ANERCorp average at 90.60%. Adam with variational dropout averaged 89,98 in the results table. Nadam with naive dropout averaged 89,08, and Adam with naive dropout averaged 88,18. The combination chosen for the final system thus uses a dropout type and optimizer that had each placed behind another option in the corresponding AQMAR comparison. The ANERCorp trials determine the final choice directly.
Looking at the repeated runs helps put that choice in context. For Nadam with variational dropout, the table reports a first-run ANERCorp F1 of 90,56 and a final-run F1 of 90,91. The same pairing had the highest number among the four combinations in each displayed run. Both optimizers also obtained higher average F1 with variational dropout than with naive dropout on ANERCorp. Together, these observations describe a ranking that is more consistent within the ANERCorp comparison than the earlier rankings would have led one to expect.
Comparing with earlier Arabic recognizers
The baseline comparison places the best neural configuration beside three earlier Arabic recognizers on ANERCorp. One is the CRF-based system of Benajiba and Rosso. Another is the approach of Abdallah and colleagues, who integrated rules with classification. The closest result comes from the hybrid system of Shaalan and Oudah. The chart uses the scores reported in the paper’s comparison table.
Arabic named entity recognizers on ANERCorp by F1
The neural recognizer scores close to the leading hybrid system and above the other published baselines.
The numbers
| System or setting | F1 |
|---|---|
| Benajiba and Rosso's CRF-based system | 75.66 |
| Abdallah and colleagues | 88.33 |
| Shaalan and Oudah | 90.66 |
| El Bazi and Laachfoubi's BiLSTM-CRF (this paper) | 90.60 |
The authors characterize their result as state of the art and explicitly acknowledge that Shaalan and Oudah’s reported score is higher. They give the gap as 0.06%. The comparison supports a claim of near parity with that hybrid system. This is meaningful in light of the systems’ inputs. The hybrid approach uses linguistic features and external task-specific resources. The neural approach uses embeddings trained on ordinary text, character representations, and supervised sequence labeling.
The comparison is between entire systems. The neural recognizer and the earlier CRF baseline both use conditional random fields, but they differ in how they construct and use their input representations. The hybrid systems bring still other evidence and procedures. The score order identifies how the published system results compare on the named benchmark. The ablations within the neural recognizer give more direct evidence about which changes to its own inputs helped.
What the ablations show
The spelling branch contributes beyond the word input
The character experiment is the clearest component ablation. Removing the separate spelling vector leaves the system with the word input and its sequence machinery. Adding a spelling encoder gives it a direct way to learn from the characters of a word. The no-character average of 65,96 on AQMAR rises to 68,04 with recurrent character encoding and to 70,86 with convolutional character encoding. The two added branches both surpassed the no-character condition in every displayed run. Random initialization may affect each score, but the advantage appears throughout the reported trials.
This comparison has a narrower meaning than a test of whether Arabic recognition can work in the complete absence of character information. The strongest word embeddings in the setup come from FastText, which already makes use of character pieces. Removing the explicit spelling branch takes away its representation while retaining the information present in the word vector. The scores therefore show that an additional, task-trained spelling representation is useful even with sub-word information already available through pretraining.
The comparison between the two character encoders goes a step further. Using a CNN for the spelling gave a higher score than using a BiLSTM for the spelling in all 5 AQMAR runs. This evidence concerns the representation of a word’s characters. The winning system retains a BiLSTM at the sentence level. Local filters worked best of the tested options for constructing the spellings’ contribution, while recurrent context across the words remained part of every setting in the comparison. The authors also cite the computational efficiency of the CNN when explaining why they kept it. Their table documents the F1 results and leaves runtimes unreported.
The paper connects the improvement to Arabic’s many related word forms and the occurrence of rare or out-of-vocabulary spellings. That explanation fits the way the CNN is built. A filter can apply similar computations to recurring sequences of characters in different words, making a useful pattern available wherever it occurs. A spelling vector can therefore help a form with little whole-word evidence. The ablation measures overall recognition performance, however. It leaves open which rare forms benefited, which patterns the filters learned, and whether the gain was concentrated in words missing from the embedding vocabulary.
FastText and the choice of vector size
The embedding algorithm comparison holds the unlabeled text and the initial vector dimension fixed. FastText led the competing algorithms in each displayed run, providing consistent evidence for its selection within this experiment. The paper emphasizes its use of character n-grams as a reason it could help in Arabic. Since this comparison changes the method for learning the vectors, it captures the effect of that choice as a whole. It does not isolate n-gram information as the sole mechanism behind the score difference.
FastText and the supervised character encoder address related problems with different sources of information. The former incorporates spelling structure while learning from Wikipedia text. The latter learns from the recognition task itself and feeds a separate character vector into the tagger. The results support using both in the final configuration. A fuller account of how much information they share would require crossing the embedding alternatives with the character settings, including embeddings without sub-word information under both choices of spelling encoder. The reported experiments leave this interaction open.
The dimensionality trial asks a downstream question about the usefulness of giving each FastText word vector more components. The best mean occurs at dimension 50, at the low end of the tested range. Some individual runs at dimension 100 score above the corresponding run at dimension 50, even though the average favors the smaller representation. This is an example of what the repeated trials contribute. A choice that looks favorable from one run can sit behind another choice when averaging over the reported runs.
The paper discusses the result in terms of the difference between evaluating embeddings on word similarity and evaluating them through a downstream tagging task. A representation can encode fine distinctions among words without those distinctions being decisive for identifying names. The measured outcome here is F1 with the chosen recognition architecture and training corpus. The authors suggest that dimensions between 50 and 100 may suffice for similar tagging tasks. The direct evidence supports 50 for this FastText comparison on AQMAR and gives the corresponding scores for the larger sizes.
The usefulness of dropout depends on the rate and corpus
The dropout comparisons include a control with no dropout, which makes it possible to examine the contribution of regularization in the actual training setup. The best naive setting reaches 71.08% average F1 on AQMAR at 0.25. Variational dropout at the same rate gives 70.52%, close to the reported 70,46 for the no-dropout control. The larger rates lead to lower means for variational dropout, and the strongest naive rate tested also gives a lower result than the control.
The concrete lesson of these comparisons is about the combination of type and rate. Calling a dropout method preferable in general would hide the spread of its results across settings. The paper’s AQMAR trial gives naive dropout the highest average under the tested choices, while some runs favor other options. On ANERCorp, both tested optimizers give a higher mean with variational dropout than they do with naive dropout. That is a comparison within the shortlisted combinations. ANERCorp has no no-dropout row in this experiment, so the reported scores there establish a ranking between dropout types under the tested setups.
The change in ranking is consistent with the authors’ decision to carry both types forward. It also makes the corpus distinction consequential. The study moves from an AQMAR experiment in which it varies dropout to an ANERCorp experiment in which it crosses dropout type and optimizer after selecting other settings. Several conditions change across those stages. The paper shows that the earlier preference for naive dropout did not determine the final result. It does not isolate a single cause for the change in preference.
The optimizer ranking is tied to the training recipe
Adam leads Nadam on average in the AQMAR optimizer trial, while Nadam wins with either of the tested dropout types on ANERCorp. Nadam is described as Adam with Nesterov momentum. The closeness of their AQMAR results made them natural candidates for the paired benchmark comparison. The results show that the best optimizer in the initial trial and the best optimizer in the final configuration can differ when the data and the accompanying training choices differ.
SGD illustrates why a comparison of optimizer settings is also a comparison of training conditions. The authors use recommended settings and state that they did not tune SGD’s learning rate manually. They attribute its AQMAR result of 33.82% F1 to difficulty converging under that setting and suggest that early stopping may have cut its training short. The observed result shows that the SGD recipe used in the paper performed poorly. A wider learning-rate search or a different stopping procedure would pose a separate comparison.
The reported tables give a direct reason for selecting Nadam with variational dropout on ANERCorp. They also document how the other leading combinations perform. They offer no corresponding removal test for the sentence-level BiLSTM or for the CRF decoder. The paper motivates both through the needs of tagging, and its scores evaluate them as parts of the architecture. The controlled evidence about what improves the architecture is strongest for the tested input representations and training settings.
Limitations
Limits stated by the authors
The authors state that available computing power influenced their choice of AQMAR for the hyper-parameter experiments. The smaller corpus made it practical to repeat the training runs and compare settings. This is a deliberate tradeoff in the study. It allows a broad look at configurations on one corpus and leaves ANERCorp for a narrower search over the best candidates. Only selected settings receive the fuller benchmark comparison.
They also acknowledge a limit in the comparison of optimizers. SGD received no manual learning-rate tuning. The authors explain that its rate matters for convergence and suggest that the early-stopping regime may have given it too little time. Their experiment therefore documents how it performed under the chosen training conditions. Its score cannot establish how it would rank with a learning rate and stopping schedule selected for that optimizer.
In their conclusion, the authors say they are exploring multitask learning and hope to extend the recognizer to noisier user-generated text. These are directions for work beyond the experiments. They also describe the architecture as flexible enough to accommodate additional labels, mentioning numbers, temporal expressions, facilities, and geopolitical entities. A supervised tagger can be configured with a different inventory of labels. The paper’s reported benchmark results give no measurement of how well the proposed new categories would be learned or how much labeled material they would require.
The claim about adaptation is primarily an argument about engineering effort. A system that learns from words and characters can avoid some of the work of producing rules and lookup resources tailored to a new domain. A new domain can still differ in its spellings, vocabulary, conventions, and name types. The authors identify noisy text as a challenge for future work, leaving the scope of the empirical results with the corpora studied.
Limits visible in the comparison design
The ANERCorp baseline scores establish where the recognizer sits relative to published systems on the named corpus. The comparison does not document a common rerun of all systems, matching training conditions, or uncertainty around the earlier scores. The neural system’s average of 90.60 and the hybrid system’s 90.66 can be compared as reported figures. Their proximity supports the paper’s central practical observation about reaching competitive results with fewer engineered inputs. It gives no basis for deciding whether the difference would persist across repeated runs under a shared evaluation protocol.
The multiple runs are helpful because a single initialization could make a configuration appear better or worse. The tables show individual F1 scores and means, allowing the reader to inspect the consistency of the displayed rankings. The paper supplies no statistical test for the character comparison or the headline comparison. In this context, the run-by-run advantage of a character encoder is evidence of consistency in the experiment. It is a different claim from statistical significance over possible samples or training runs.
Another limit concerns what the averages reveal about recognition errors. The paper gives corpus totals and overall F1. Separate precision and recall, per-category scores, and a breakdown of boundary and type errors would answer different questions. A gain in the aggregate can arise from more complete recognition of names, more accurate boundaries, better category assignments, or fewer false detections. The results establish which settings give higher F1, without tracing those gains to specific corrections.
The account also does not give the details needed to determine how much the spelling branch helps the cases used to motivate it. A comparison grouped by vocabulary status or training frequency could show whether rare forms explain the gain. Examples of changed predictions could reveal whether the CNN recovers mentions through recurring prefixes and suffixes or through other spelling regularities. The authors’ explanation is plausible and is consistent with the architecture. It remains an interpretation of the overall numbers.
The broad configuration search takes place on AQMAR, while the final choice is based on shortlisted ANERCorp combinations. The paper provides a validation-based stopping rule, a split for each corpus, and run-level F1 tables. It does not fully specify which reported scores were used for each selection decision relative to the held-out partition. That matters when distinguishing performance used to choose a configuration from performance reserved for a final estimate. The published benchmark figures are best read with that distinction in view.
Limits of the architectural and resource claims
The system dispenses with hand-built entity features while relying on both pretrained vectors and annotated corpora. Arabic Wikipedia plays a substantial role in that setup. The authors use a Wikipedia dump for word-vector training, and AQMAR itself is an Arabic Wikipedia corpus. The paper does not examine overlap between those sources or compare the result with word vectors trained on other material. There is no basis for treating overlap as an established problem, but the relationship between the two sources limits what the AQMAR comparison can say about a change of domain.
The paper describes the recognizer as end to end because its learned components construct representations and predict tags without an intervening pipeline for handcrafted linguistic features. The description starts with sequences of words and labeled training sentences. The treatment of tokenization, the division of raw text into units, is consequently relevant to applying the reported setup. The experiments do not give a separate evaluation of recognizing names from raw text under different tokenization or normalization choices. The resource savings established by the design concern the features and task-specific aids fed to the recognizer.
Some details of the implementation remain underspecified for replication. The printed recurrence leaves an ambiguity in the weight subscript reused across the input-gate and cell-state equations. The CRF description explains why joint decoding is useful without giving the exact sequence-scoring objective. The paper reports dropout types and rates, but the comparison does not specify their placement throughout the network. These gaps restrict how confidently a reader can reconstruct the exact training procedure from the equations and tables alone.
Finally, the experiments can attribute gains to components only where those components were varied. The spelling vectors were removed and exchanged, and the learning settings were compared. The sentence encoder and the joint decoder remained in the architecture. The paper’s argument for both is reasonable given the need for context and consistent tag transitions. Their isolated effects on Arabic NER are outside what the ablations establish.
What came after
The later citing work spans direct architectural studies, pretrained Arabic representations, language-processing tools, and shared evaluations. Some titles identify a close continuation of this paper’s experiments, especially the comparisons of neural architectures and embedded features. Others identify a neighboring problem in Arabic language processing. The citation relationship connects those works to the paper, while the scope of each later project indicates where the connection is direct and where it is broader.
Neural architectures and learned input features
Affi and colleagues’ 2022 study examines multiple deep architectures for Arabic named entity recognition and combinations of embedded features based on CNN, LSTM, and BERT. This is close to the design question El Bazi and Laachfoubi investigated. Their recognizer combines learned spelling and word vectors and tests which character encoder supplies the stronger representation. The later study’s stated scope broadens the comparison to more architectural variants and to inputs involving BERT. The relationship is clearest at the level of the experiment being asked for, namely how different learned inputs and neural components work together for Arabic entity tagging. Affi and colleagues’ study of variant Arabic NER architectures.
Hatab and colleagues’ 2022 work focuses on enhancing Arabic entity recognition through embedded features. That subject carries forward the question of how the evidence supplied to a neural recognizer affects its performance. In the earlier paper, the difference between a word vector and a character vector matters because a spelling encoder can still improve tagging when a pretrained representation is already available. The later title places the emphasis on the features embedded in the input. It gives no basis for attributing the earlier character encoder or its exact training choices to that work. Enhancing Deep Learning with Embedded Features for Arabic Named Entity Recognition.
Dahou and colleagues’ 2023 work evaluates Arabic pretrained systems on the named entity recognition task. It takes up a related question at a different level of pretraining. El Bazi and Laachfoubi compare the word vectors used to initialize a lookup table, then build contextual representations in a supervised BiLSTM. A study explicitly about pretrained Arabic systems places the evaluation emphasis on the pretrained component itself and how it performs on entity tagging. That shift preserves NER as the downstream test while broadening the object of comparison beyond the initial word vectors. Performance Analysis of Arabic Pre-trained Models on Named Entity Recognition Task.
AraBERT, from 2020, presents a Transformer approach to Arabic language understanding. In the earlier paper, the learned representation supplied by pretraining is a word vector, and sentence context is composed by bidirectional recurrence during recognition. AraBERT’s stated scope situates the citation in a wider development of reusable Arabic representations for language understanding. The connection is the problem of learning representations for Arabic from text. The title establishes its architectural direction and language scope, while leaving any particular reuse of the earlier recognizer unspecified. AraBERT.
Sequence labeling with scarce annotations
Khalifa and colleagues’ 2021 work studies self-training for zero- and few-shot learning in Arabic sequence labeling across dialects. The earlier paper already identifies scarce annotation as a practical problem and shows one way to draw value from unlabeled text while training a tagger on annotated corpora. The later work’s stated focus extends the setting to different dialects and to tasks with few or no labeled target examples. Its title identifies self-training and pretraining as the methods under study. That frames a different response to limited annotation from the earlier paper’s emphasis on learning spelling and context representations within a supervised recognizer. Khalifa and colleagues’ study of self-training for multi-dialectal Arabic sequence labeling.
The related distinction is between two kinds of generalization. The character experiment asks whether information can be shared across spellings in the paper’s corpora. Multi-dialectal sequence labeling asks about transfer when the target variety and the amount of supervision can differ. The later work identifies a setting in which the earlier motivation for reusing information becomes relevant at the level of training data and dialect, beyond the treatment of individual word forms.
From a corpus comparison to shared evaluations
WojoodNER 2023 is identified as the first Arabic named entity recognition shared task. A shared task puts benchmark participation at the center of the project. In the 2019 paper, the authors choose their own configuration on AQMAR and ANERCorp and then compare their best score with earlier published ANERCorp figures. The shared-task framing changes the unit of activity from one paper’s architecture and its baselines to an organized evaluation of approaches to Arabic entity recognition. The title identifies that change in scope without specifying which systems entered or how they scored. WojoodNER 2023.
WojoodNER 2024 continues the series as the second Arabic named entity recognition shared task. Its relationship to the earlier article is clearest in the continued emphasis on evaluating Arabic entity recognition. The original paper used a benchmark to ask whether learned evidence could be competitive with engineered resources. The later shared tasks place comparison itself at the center of the work. The titles establish the continuity of that evaluation effort. They do not identify adoption of the BiLSTM-CRF architecture or the use of the earlier corpus settings. WojoodNER 2024.
Arabic processing beyond the original benchmark
CAMeL Tools, published in 2020, describes an open-source Python toolkit for Arabic natural language processing. It sits on the resource side of the problem raised by the earlier paper. El Bazi and Laachfoubi discuss the costs of developing language-specific processing and present an Arabic recognizer designed to reduce its reliance on engineered inputs. A general toolkit addresses the availability of reusable Arabic processing software. The citation links those concerns at the field level, while the toolkit’s title leaves its implementation relationship to this particular recognizer unspecified. CAMeL Tools.
The 2024 work on Arabic-English code-switching identifies another setting in which the input changes. Its stated subject is computational work on text or speech that switches between Arabic and English. The earlier recognizer was evaluated on Arabic named entity corpora, and its authors left noisy or otherwise different writing for future investigation. The later title shows the citation appearing in research on language variation across a different boundary. It gives no evidence that the ANERCorp scores would carry over to code-switched input. Computational Approaches to Arabic-English Code-Switching.
The 2026 work on Arabic financial sentiment examines evidence from Saudi markets. Its subject is sentiment analysis in a specialized domain, with a different prediction goal from locating and typing names. The citation places the entity recognition paper within a wider body of work on learned methods for Arabic text. The stated focus supports that broad connection and leaves open whether entity recognition is part of the later analysis. Financial Sentiment Analysis in Arabic.
Across these later studies, the closest follow-ups retain Arabic entity recognition as the target and vary the architecture, the representations, or the evaluation. The more distant citations record the paper’s place in Arabic processing research as it expands to different forms of supervision, language varieties, tools, and applications. El Bazi and Laachfoubi’s experiments provide a concrete result against which architectural changes can be understood. A learned spelling representation helps in their AQMAR setup, context and joint decoding form the basis of the tagger, and the selected configuration approaches the leading hybrid result reported on ANERCorp.
Cite
Cite as Ismail El Bazi and Nabil Laachfoubi. 2019. Arabic named entity recognition using deep learning approach. International Journal of Electrical and Computer Engineering (IJECE).
@article{bazi2019arabic,
title = {{Arabic named entity recognition using deep learning approach}},
author = {Ismail {El Bazi} and Nabil Laachfoubi},
journal = {International Journal of Electrical and Computer Engineering (IJECE)},
year = {2019},
doi = {10.11591/ijece.v9i3.pp2025-2032},
url = {https://doi.org/10.11591/ijece.v9i3.pp2025-2032}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bazi-2019-arabic-named-entity-recognition-deep/