---
title: "ArmanEmo: a Persian dataset for text-based emotion detection"
description: "ArmanEmo collects Persian posts and reviews for emotion detection and tests how well classifiers trained on it work on a separate dataset."
canonical: "https://research.elamur.ai/free/en/papers/mirzaee-2025-armanemo-persian-dataset-text-based/"
---
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/mirzaee-2025-armanemo-persian-dataset-text-based/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/) / ArmanEmo: a Persian dataset for text-based emotion detection

# ArmanEmo: a Persian dataset for text-based emotion detection

Paper · 2025 · Hossein Mirzaee, Javad Peymanfard, Hamid Habibzadeh Moshtaghin et al.

**Authors:** Hossein Mirzaee, Javad Peymanfard, Hamid Habibzadeh Moshtaghin and [Hossein Zeinali](https://md.research.elamur.ai/free/en/authors/hossein-zeinali/) · **Year:** 2025 · **Venue:** Language Resources and Evaluation · **Licence:** [CC BY-NC-SA 4.0 (arXiv)](https://creativecommons.org/licenses/by-nc-sa/4.0/)

Language Resources and Evaluation · [licence](https://creativecommons.org/licenses/by-nc-sa/4.0/)

- [DOI 10.1007/s10579-025-09817-4](https://doi.org/10.1007/s10579-025-09817-4)
- [arXiv 2207.11808](https://arxiv.org/abs/2207.11808)

## Summary

A short post can sound angry to one reader and hurt to another. A longer conversation might explain the difference, but an emotion classifier may have only the sentence in front of it. ArmanEmo is a Persian dataset built around that task. It contains more than 7000 sentences drawn from Twitter, Instagram, and customer comments on Digikala. The authors assign each retained sentence a single label from Anger, Fear, Happiness, Hatred, Sadness, Wonder, and Other. Other covers text with no specific emotion as well as text that expresses a feeling outside the named categories. The resulting task belongs to the study of [sentiment and emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/).

The authors use a dictionary of word–emotion associations to bring likely examples of less common categories into the annotation queue. The annotators judge the sentences without seeing those preliminary labels, and the main annotation round requires agreement among three readers. The paper reports that 38 percent of the sentences sent through that round were still undecided at the five-reader cutoff. The authors also use an initial Persian classifier to propose labels for an additional batch of tweets, then have an annotator review the higher-confidence proposals. Those tweets go into training. The test set comes from the material labeled through the earlier human procedure.

On the full ArmanEmo test set, XLM-RoBERTa-large achieves a macro-averaged F1 score of 75.39 percent. Macro F1 gives equal weight to each label, so a classifier's performance on a common category cannot dominate the score simply because that category occurs often. Happiness, Fear, and Sadness are among the strongest categories, while Anger, Other, and Hatred are among the weakest. A separate experiment narrows the task to the emotions that an existing multilingual classifier can predict. That classifier performs better after training on ArmanEmo examples, although its performance without that training is described as somewhat comparable to ParsBERT's.

The authors also train the same type of classifier on ArmanEmo and on a filtered version of EmoPars, a Persian Twitter collection. The ArmanEmo-trained classifier fares better on both test sets. On the EmoPars test set, the paper describes its macro F1 as more than 19 percent higher. That result establishes a transfer advantage for ArmanEmo in this comparison, even though EmoPars supplies the test texts. The experiments also show where evaluation becomes difficult to interpret. Some answers counted as errors express a plausible reading of a sentence with mixed emotions. ArmanEmo is publicly available for non-commercial use.

## Deep dive: ArmanEmo: a Persian dataset for text-based emotion detection

ArmanEmo collects Persian posts and reviews for emotion detection and tests how well classifiers trained on it work on a separate dataset. · about 32 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

#### What can a sentence tell a reader?

The paper defines a task that comes up whenever people try to make sense of large collections of written comments. A service provider may want to know how customers feel about its products. Readers of social media may want to understand reactions to a public issue. For both purposes, a broad division between favorable and unfavorable opinions can leave out the distinction of interest. Fear and anger, for instance, may both be unpleasant, yet imply different readings of a remark. ArmanEmo gives classifiers examples of those distinctions in Persian and a way to check their predictions against human judgments.

A sentence offers only part of the evidence a person ordinarily uses to interpret an emotion. In conversation, the words may be accompanied by a particular tone, an expression, or a gesture. Earlier turns can also make a short answer intelligible. A text-only classification task can omit all of this. An apparent statement of praise can depend on sarcasm for its meaning, and an otherwise ordinary sentence can take on a different emotional force in response to what someone has just said. The paper discusses conversation-level recognition as a related research area. ArmanEmo puts the emphasis on what a reader can judge from the selected sentence.

Online writing creates its own difficulties. A person's choice of words, spelling, and punctuation varies with the setting and the kind of audience they address. The authors point to informal writing, grammatical errors, figurative language, and short passages as sources of difficulty. In a short sentence, a single cue may carry a great deal of weight, and a plausible alternative interpretation may be hard to rule out. The abundance of online text makes it an attractive source of examples, but volume alone does little to settle what those examples mean.

The paper describes several uses of emotion recognition, including assessing reactions to products and recognizing emotion in conversations. The latter can inform which response a conversational system should make. Each application raises a practical question about the evidence available at prediction time. A conversation system may have a sequence of turns, whereas a system analyzing stored reviews may receive an isolated comment. The authors' choice to annotate sentences makes the task portable across their collection sources. It also means that the outcome of an annotation depends on the emotional cues that survive when a sentence is read on its own. The paper connects the conversational application to work on [chatbots](https://md.research.elamur.ai/free/en/concepts/chatbot/).

#### Deciding what the labels represent

The paper reviews different ways of representing feelings before choosing its label set. Under a categorical account, a reader chooses among named kinds of emotion. Under a dimensional account, a reader describes where the expression lies along scales. The discussion also names appraisal-based accounts, while concentrating on categories and dimensions because those are the approaches the authors say are used most often in emotion detection studies.

The categorical account reviewed in the paper starts with a small inventory of basic emotions. The discussion of Ekman includes Disgust and Wonder. In ArmanEmo's actual label inventory, Hatred appears where that overview lists Disgust. The corpus uses the output name Hatred throughout its account of the task. The paper also describes Plutchik's expansion of the basic inventory. In that account, trust and anticipation enter the set, and feelings are arranged in opposing pairs, such as joy and sadness. These examples show that defining a categorical task requires decisions about which distinctions deserve their own labels and how closely related feelings should be treated.

The dimensional example is Russell's circumplex. It places affect along axes for valence and arousal. Valence concerns how pleasant or unpleasant an experience is. Arousal concerns how activated or subdued it is. Such scales can describe expressions that differ gradually, and the paper notes their value when the goal is to measure similarity between feelings. A category can be easier to apply when the practical requirement is to choose a recognizable label. The same ease comes with a cost. A finite vocabulary forces some nuanced or mixed expressions into the same class. The authors also note that a dimensional description can make some basic categories difficult to distinguish.

ArmanEmo turns the categorical choice into a concrete reading procedure. Its labels designate judgments about the emotion expressed by a piece of writing. Annotators have an option for cases outside the named classes and an option for cases they cannot decide confidently. Those options serve different functions in the final corpus. The first becomes a class that a classifier can predict. The second gives annotators a way to withhold a judgment during construction and is removed from the released classification task. This distinction is especially important when a small label set is used for text that can plausibly convey several states.

#### Earlier detection methods

The authors describe rule-based, learned, and hybrid approaches. A rule-based system can start from a dictionary of words associated with emotions. Once it finds a relevant word, it can apply further rules to assess strength or check whether the sentence negates it. This can give an explicit account of why a rule fired. Its usefulness depends on the coverage of the dictionary and how well the rules handle the forms people use in the target setting. A word list prepared for one kind of writing may offer less help with another. A change in spelling or in the way a negation is phrased can affect whether a match occurs at all.

A supervised method learns from annotated examples. Its training material pairs texts with the categories that readers assigned, and the aim is to learn a rule for new texts. The paper describes the support vector machine as a classical example. With that approach, the text is represented by features derived from linguistic or statistical information, and the classifier learns boundaries in that feature space. The survey also discusses recurrent and convolutional networks and the Transformer. These methods are presented as different ways of learning patterns in text, including patterns in how the interpretation of a word changes with its surroundings. The broad method belongs to [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/).

The paper distinguishes supervised methods from unsupervised approaches, which seek structure in examples that lack labels. It also describes hybrid methods that combine learned predictions with resources such as dictionaries or linguistic rules. Such a combination can give a classifier access to information that would otherwise have to be acquired from its training examples. How well the combination works depends on the particular rules and classifiers involved. ArmanEmo uses a dictionary in a different part of the process. Its word associations help determine what annotators see, while the released targets come from human judgments or human review of proposed labels.

#### Earlier work in Persian

One Persian study reviewed in the paper combines cognitive linguistic features with Word2Vec representations. The linguistic features are derived from emotional constructions, keywords, and parts of speech. The resulting representation is handled by a gated recurrent unit, a network that processes a sequence by updating a representation of what it has read. The study reports an advantage for combining the feature sources. The ArmanEmo authors point out a deployment problem for this approach. Constructions that are tractable in a curated corpus can be harder to identify consistently in colloquial social media writing. The earlier study uses 23,000 examples selected from the Bijan Khan corpus, with each sentence representing a single emotion among its five classes. Those examples were unavailable for public reuse. Word2Vec supplies one kind of [word embedding](https://md.research.elamur.ai/free/en/concepts/word-embeddings/).

EmoPars supplies a public resource with a different design. Its 30,000 tweets come with crowd votes for the separate emotion categories. Each sentence was seen by 5 voters. Publishing the votes preserves information about how much support a category received and lets users choose how to interpret that support. The ArmanEmo paper reports that only 23% of EmoPars, comprising 7026 samples under the characterization it cites, were labeled with emotions. For its own transfer experiment, the paper applies a stricter filter that requires a unique dominant label. That distinction matters because the size of the archive and the size of a derived classification dataset answer different questions.

These earlier resources expose different practical tradeoffs. The corpus study provides a large set of examples chosen for a specific classification task, but the set cannot serve as a public point of comparison. EmoPars is public and offers the underlying judgments, but a researcher who wants to train a single-label classifier must make additional decisions about the votes. ArmanEmo aims to supply public, ready-to-use labels for Persian sentences from several sources, together with an evaluation of what those labels support. Its authors respond to the cost of human labeling by designing the selection and annotation process as carefully as the classification experiments.

### The method, step by step

#### From public comments to an annotation queue

The collection starts with Persian tweets, Instagram comments, and comments on Digikala. Twitter serves the authors' interest in reactions to social and political subjects. Instagram and Digikala broaden the material to include other kinds of public writing, including the language of shopping reviews. A sentence about a public event and a sentence about an order can differ in subject and style even when annotators assign them the same emotion. Collecting across sources lets those differences enter the resource at the beginning.

The authors first examine sentence lengths in characters for each source. They retain sentences within a chosen range and remove ones containing specified user identifiers or links. A filter on character length can remove passages at either end of a source's distribution before annotators spend time on them. It also shapes the task. The sentences that reach readers are a selected part of the original material, and the treatment of links keeps the judgment focused on the text available in the example. The paper describes the length filter without giving its cutoffs in the narrative.

The next step deals with how often different feelings are likely to reach the annotation queue. If examples were presented in the proportions in which they appeared in the initial collection, some categories could give annotators very little material. The authors use the NRC Word-Emotion Association Lexicon to identify sentences that may express the different target emotions. The lexicon associates individual words with emotion categories. Those associations give each source a way to supply candidate sentences for labels that the project still needs.

The authors describe this preliminary process as weak labeling. A weak label says that the words offer grounds for considering a category. The sentence may express something else when read as a whole. The selector also uses term frequency, meaning the occurrence frequency of the relevant words in a sentence. Sentences with more evidence in the form of these words have a greater chance of being selected by weighted random sampling. They are candidates for human review, and the lexical evidence operates through the selection probabilities.

The authors choose 12,000 sentences for the annotation process. Before readers receive them, the authors remove emojis so that the emotion judgment relies on the written text. The weak labels are hidden from annotators as well. A reader therefore sees the sentence without the proposed class that brought it into the queue. This protects the individual judgment from a suggested answer while preserving the effect of the lexicon on which examples are seen.

How ArmanEmo sentences become training and test examples The steps in order.

#### Selecting readers and defining their choices

The initial manual round covers 7500 of the selected sentences. To distribute the work, the authors build a Telegram bot that introduces the instructions and presents examples to readers. The instructions set the rules for the project's particular form of [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

Prospective annotators are assessed on 250 sentences that had been labeled and validated by ten annotators. This is a qualification set for readers. The classifier test set is established later, from the manually labeled corpus. The authors select the 12 highest-scoring participants from 35 users. The qualification exercise makes the choice depend on how well participants follow the project's label rules on examples that have already been reviewed. The annotation took place in March 2019.

A reader who confidently identifies a single named emotion selects that label. The named options are Anger, Fear, Happiness, Hatred, Sadness, and Wonder. When the reader finds no specific feeling, or finds a feeling outside the inventory, the instructions call for Other. When the reader cannot confidently make the assignment, the available response is Unknown. The distinction is easiest to see from the decision a reader makes. Other can be a confident judgment about a sentence's relationship to the inventory. Unknown records difficulty making that judgment.

This procedure makes the named classes fairly specific while leaving room for text that fails to fit them. It also gives the annotation system information about why an item may be difficult to finalize. A succession of competing labels or uncertain responses may indicate that the sentence needs more review. A clear choice of Other can still become a training target. The final dataset excludes items labeled Unknown, so a classifier trained on the released task is expected to choose among the retained categories.

#### Turning individual judgments into a corpus label

During the main annotation loop, a sentence needs the same category from three different annotators. A sentence can be shown to at most five readers in that loop. If it reaches that limit without a final label, it is taken out of circulation for later review. This arrangement defines a stopping rule for annotation. A case can finish as soon as the required agreement is reached, while a difficult case consumes only a bounded amount of the ordinary round. The limit leaves an observable distinction between sentences that settle quickly and those that remain open.

The bot also prioritizes examples that are already partway through review. The paper gives the example of an unresolved sentence that has received three judgments. It can be put ahead of a sentence that has received only one. The aim is to finish more decisions with the available reader effort. Scheduling changes when a particular sentence reaches another reader. Finalization still uses the required agreement.

A dashboard lets the authors monitor both the accumulating class distribution and the annotators' contributions. When a class is uncommon among finalized examples, sentences with the corresponding weak label are offered more often. The authors describe the adjustment as running in the reverse direction from the observed frequency. A few finalized examples make a class a higher priority for sampling, while an already common class receives less emphasis. Because the weak label can be wrong, raising its sampling weight does not guarantee a matching increase in the final class count.

The dashboard also records how frequently a reader contributes to finalized examples. Readers who contributed more often to finalization received higher scores. Among the twelve selected annotators, the three highest-scoring readers helped label examples left unresolved in the earlier steps. The authors removed one annotator whose score they deemed too low. This performance measure and the earlier qualification exercise serve different purposes. The qualification compares new readers with a set of established judgments. The dashboard measures how their work contributes to decisions as the collection grows.

At the end of the manual steps, the authors report 4700 labeled sentences. They randomly divide these into a primary training set with >3500 samples and a test set with >1100 samples. At this point, the examples that will be used to evaluate the classifier have been separated from those available to train the first version. That separation matters because the first version will also help the authors generate additional training material.

#### Expanding training through reviewed predictions

The authors train ParsBERT on the primary training set and use it to propose labels for the remaining 4500 selected tweets. This is a second way of obtaining candidates for annotation. The first sampling step looks at words associated with emotions. At this later stage, the proposals come from a classifier trained on the human judgments already collected.

The authors filter out 2000 samples with lower prediction confidence. An annotator checks the labels proposed for the remaining 2500 sentences and changes them when necessary. The 2500 reviewed sentences are added to the training set. A label in this batch may therefore agree with the proposal because the reader accepted it, or differ because the reader replaced the proposed answer. In either case, the procedure is distinct from the main annotation loop, where an ordinary decision depends on several readers converging independently.

The labeler for these 2500 sentences works with proposals that already passed a confidence filter. Confidence is useful for deciding which examples to offer for review, but it describes the classifier's own assessment. It cannot substitute for checking whether the reader agrees with the prediction. The manual check is therefore an important part of the expansion, even though the paper gives no breakdown of how many proposals the reviewer changed.

The test set comes from the earlier manual stages. The additional reviewed labels give the final classifiers more Persian training material, but they do not supply any of the reference answers in the reported ArmanEmo test. This design allows an end-to-end test of training on the expanded resource against examples obtained through the manual route. Isolating the effect of the additional examples would require a further comparison under the same evaluation conditions.

#### Preparing text for the classifiers

After the split, the authors normalize the inputs with Parsivar, a Persian text processing toolkit. It regularizes spacing around words, punctuation, and affixes, and handles some character variants, including stretching letters. These changes aim to put variations of otherwise comparable text into a more consistent form. The authors then apply additional rules for the kinds of strings that appear in online comments.

The additional pass removes English letters, remaining Arabic diacritics that Parsivar leaves behind, and remaining non-Persian characters. It also removes Persian numeric characters. The hash mark is stripped from hashtags while their wording is retained. This preserves the lexical content of a hashtag for the classifier. The paper also describes reducing extended runs of repeated letters, a feature of informal spelling that can convey emphasis. The underlying word remains available in a more regular form.

Preprocessing affects the prediction problem in two ways. It reduces variations that could distract a classifier from a familiar word or construction. It also reduces access to some surface cues, such as the amount of emphasis signaled by an extended spelling. Emojis were removed before annotation, so both readers and classifiers work without those cues. The additional normalization is described after the split as preparation for the classifiers. Its role is separate from the selection rules that determined which sentences readers saw.

#### Training the prediction layer

The paper's main classifiers start from pretrained encoders. An encoder converts a sentence into an internal representation, and pretraining gives it a starting representation learned from a much larger body of text. In the paper's account, this reduces the amount of emotion-labeled Persian material needed to train a classifier. ParsBERT starts from Persian pretraining and follows the BERT architecture. XLM-RoBERTa has been pretrained on text in 100 languages. Comparing its base and large variants with ParsBERT gives the authors several starting points for the same Persian classification task. They are all built around the [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/).

XLM-EMO enters with more specific prior training. It uses XLM-T, which adapts XLM-RoBERTa-base to Twitter data. XLM-EMO then uses emotion data from 19 languages, mapping the labels of those resources into joy, anger, fear, and sadness. That history gives it an existing classifier for a reduced ArmanEmo task. It can also be adapted to the broader label inventory used in the full corpus. The paper treats this as a case of transfer where previously learned emotion distinctions may help with a language for which relatively little task-specific annotation is available.

For adaptation to the ArmanEmo task, the paper describes attaching a fully connected layer to the top of the pretrained network. The layer reads the representation of the sentence and assigns scores to the output categories. The network weights below that added layer are frozen, so the training described in the paper changes only the output layer's weights. The authors call this [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

The training objective named in the paper is cross-entropy. In the task as evaluated, a sentence has a single target label. Cross-entropy penalizes a prediction that puts little probability on the assigned category. The training description uses the term *multi-label* at one point. The annotation instructions, the evaluation setup, and the later discussion of errors describe a multiclass task, in which each example and each scored decision has one label. Reading the output layer as a classifier over mutually exclusive choices is consistent with those parts of the paper.

For ParsBERT, the authors report eight epochs, a batch size of 32, and a maximum sequence length of 128. An epoch is a pass through the training material. The batch size specifies how many examples are grouped for an update, and the sequence limit constrains the length accepted by the classifier. The paper gives the following AdamW settings.

```
β₁ = 0.9
```

Here β₁ is AdamW's decay coefficient for the running estimate of the gradient. The subscript distinguishes it from the coefficient for squared gradients, and the equals sign assigns the reported setting.

```
β₂ = 0.999
```

Here β₂ is the decay coefficient for the running estimate of the squared gradient. The subscript identifies the second coefficient, and the equals sign assigns its reported value.

```
λ = 0.01
```

Here λ is the weight decay coefficient. The equals sign assigns the reported value. AdamW applies weight decay separately from the gradient-based part of the update.

The learning rate controls the scale of the training updates. For ParsBERT, the value drops linearly from 2e-5 at the start to 0 at the close of the final epoch. For the other pretrained classifiers, the paper refers to the defaults in the Transformers software library. These details distinguish the specified ParsBERT recipe from the less fully enumerated recipes for the other systems. The paper names the loss and gives the optimizer settings without deriving a new training objective.

### Experiments and results

#### What the ArmanEmo test measures

The main evaluation uses the test examples drawn from the manual annotation process. Training includes both the primary human-labeled examples and the additional tweets whose proposed labels were checked. All seven released categories count in this experiment. A classifier must distinguish the named emotions from one another and decide when Other fits better than any of them.

The composition of the test task follows from what happened during annotation. Among the 7500 sentences sent through the main manual process, 38 percent remained undecided at the point when they had been reviewed by the fifth annotator. The paper reports this rate at the cutoff, before the later treatment of unresolved cases. It is therefore a result about the operation of the review process. It does not by itself describe the final proportion of examples without labels, since unresolved sentences could receive further review. The paper also says that twenty-five percent of the finalized corpus, counting the manual and classifier-assisted routes together, received Other. This is a statistic for the combined labeled material. It gives a sense of the class's importance without specifying its exact share of the test split.

The paper examines precision, recall, and F1. For a category, precision asks how often a prediction of that category matches the reference label. Recall asks how frequently sentences given that label by annotators are recovered by the classifier. F1 summarizes the two, so a classifier needs to do well on both to obtain a high value. Macro F1 first evaluates the categories individually and then averages them with equal weight. It is possible to do well on a frequent class and still lose substantial credit through weak performance on other classes. That property matters when interpreting the full ArmanEmo task, where Other is common and the named emotions occur at different frequencies.

#### The main classifier comparison

The primary comparison includes pretrained Transformer encoders and recurrent and convolutional alternatives. A recurrent network updates a representation as it moves through a sequence. A convolutional network identifies patterns in local stretches and combines the resulting evidence for classification. The authors supply the recurrent and convolutional systems with the same fastText word vectors, pretrained on Common Crawl and Wikipedia. This gives their word representations a common starting point for those comparisons.

Fine-tuned XLM-RoBERTa-large leads the ArmanEmo test comparison on macro F1, precision, and recall as reported by the authors. Its macro F1 is 75.39 on the full test set. The authors also report a gap between the pretrained encoders and the recurrent and convolutional alternatives. They interpret this as consistent with the richer representations acquired during pretraining. The comparison ranks the end-to-end systems the paper evaluates. Their architectures, representations, and training choices differ, so the ranking does not isolate the contribution of any one of those features.

The paper includes a per-category evaluation and a confusion matrix for XLM-RoBERTa-large. A confusion matrix records which labels the classifier chose for each reference category, allowing readers to examine where errors go. The authors identify Happiness, Fear, and Sadness among the stronger classes. They group Anger, Other, and Hatred among the lower-F1 classes. These rankings qualify the overall number. A strong macro F1 can coexist with relatively weak performance on a category important to a particular application.

Other has a special role in that comparison. An annotator can assign it to text that lacks a specific feeling or to text that clearly expresses something outside the project inventory. The training examples with that label consequently encompass more than one reason for assigning it. A prediction of Other is scored against the recorded label just as a prediction of Fear is, but the class itself is defined by its relationship to the named choices. Its lower F1 shows that it is among the categories the best classifier handles less successfully. The reported analysis does not break out the different kinds of sentence that received Other.

#### Transferring a classifier without ArmanEmo training

The zero-shot experiment asks how well XLM-EMO can classify ArmanEmo examples before learning from the ArmanEmo training set. Zero-shot refers here to transfer without task training on that corpus. XLM-EMO has already learned to recognize emotions from multilingual data, so it starts with useful categories and parameters. Its existing output vocabulary covers joy, anger, fear, and sadness. To make the task fit that vocabulary, the authors filter out ArmanEmo examples in the other categories. The paper uses joy when describing XLM-EMO's vocabulary and Happiness in the ArmanEmo inventory.

On the reduced test task, XLM-EMO trained on the corresponding ArmanEmo training examples has higher macro F1 than the zero-shot configuration. The paper also includes ParsBERT and XLM-RoBERTa-large for comparison and describes zero-shot XLM-EMO as somewhat comparable to ParsBERT. ParsBERT brings extensive prior exposure to Persian. XLM-EMO brings prior training on emotion classification across languages and adaptation to social media text through its starting encoder. The experiment shows that the latter combination can transfer usefully to the shared categories. The comparison does not separate the contributions of those earlier training stages.

This experiment answers a narrower question than the full ArmanEmo test. It evaluates the categories for which the transferred classifier already has outputs. Wonder, Hatred, and Other are absent from the reduced task, and the set of alternatives facing a classifier is correspondingly smaller. The authors also train a full-inventory version of XLM-EMO so that the baseline can compete on the original task. This yields two distinct uses of the same pretrained system. One tests whether existing categories transfer with or without ArmanEmo examples. The other treats that system as a starting point for all the released classes.

#### Comparing ArmanEmo with EmoPars

For the cross-dataset experiment, the authors first convert EmoPars votes into the kind of single-label target used for their classifiers. EmoPars reports the votes for each candidate emotion. The possible count for an emotion lies in the following interval.

```
[0,5]
```

The square brackets indicate that the endpoints are included. The comma separates the lowest possible count, 0 votes, from the highest, 5 votes. An example has one such count for each emotion considered in EmoPars.

The ArmanEmo authors set the dominance threshold to 3. A label qualifies if at least 3 of the 5 readers support it. A tweet with no qualifying emotion is dropped. A tweet with more than one qualifying emotion is also dropped, leaving only tweets with a unique label at or above the threshold. The decision therefore constructs a particular version of EmoPars for single-label experiments. The reported filter yields 5477 tweets out of 30,000. The authors put 80 percent of the eligible tweets in training and 20 percent in testing through a random split.

The chart compares the labeled material at the point each collection is first divided into training and test data for the reported setup. For ArmanEmo, the count is for the manual portion, before the later addition of reviewed tweets exclusively to training. For EmoPars, the count is after applying the dominance filter. This is a comparison of pool sizes at that stage, with a larger value indicating more examples available for the partition. It does not measure label quality or eventual training-set size.

Labeled examples available before the first split of ArmanEmo and filtered EmoPars The filtered EmoPars pool is larger than ArmanEmo's manual pool at the point of partition.

**The numbers**

| System or setting | labeled sentences |
| --- | --- |
| ArmanEmo manual pool (this paper) | 4700 |
| EmoPars unique dominant emotion | 5477 |

The authors then hold the classifier family fixed at XLM-RoBERTa-large and change the source of its task training. A classifier trained on ArmanEmo is evaluated on both ArmanEmo and EmoPars test data. A counterpart trained on EmoPars is evaluated on the same two test sets. This arrangement lets readers ask about transfer in each direction and compare the sources while keeping the test data fixed within each comparison.

ArmanEmo training yields the better macro F1 on both test sets. The result on EmoPars is particularly informative because the test tweets belong to the resource used to train the other classifier. The ArmanEmo paper reports a macro F1 more than 19 percent higher on that test for the ArmanEmo-trained classifier. The figure is the improvement as the authors describe it. The reported wording does not establish an absolute score gap in F1 points. The paper's other clear numerical benchmark, 75.39, belongs to the full ArmanEmo test and cannot serve as either score in the EmoPars comparison.

The authors connect the transfer advantage to their annotation procedure. They suggest that intensive reader selection and review produce cleaner labels than the preparation of EmoPars through crowdsourcing. The result is compatible with that account. Training on ArmanEmo and training on filtered EmoPars change several things simultaneously, including the range of writing sources, the number and kinds of training examples, and the process used to settle their targets. The experiment shows which training resource works better under these conditions. It does not distribute the observed advantage among those differences.

### What the ablations show

The paper reports no component-removal ablation of its annotation or training pipeline. It offers controlled comparisons of training exposure and training corpus, an analysis of how human judgments settle, and a manual examination of classifier errors. The comparisons change identifiable parts of the experimental setup, while the observational analyses help explain where the task is difficult.

#### What changes when a classifier sees Persian emotion labels

The closest comparison to a training ablation holds the shared category inventory fixed and asks what happens when XLM-EMO receives ArmanEmo supervision. In the zero-shot condition, it uses the classifier already trained on multilingual emotion data. In the adapted condition, it learns from the reduced ArmanEmo training set. The improvement in macro F1 supports the use of labeled examples from the target corpus even when prior multilingual training already provides a meaningful starting point.

The comparison with ParsBERT addresses a related question under weaker control. Word and sentence representations trained on Persian are useful in one system, while the other has earlier experience with emotion labels and Twitter text. The paper's description of comparable performance establishes that the existing multilingual classifier is a practical baseline on the shared labels. It does not determine whether multilingual exposure, Twitter adaptation, or emotion supervision accounts for the resemblance to ParsBERT's performance. Each system brings a different combination of those properties.

#### What changes when the training corpus changes

The EmoPars comparison keeps the classifier family and the test set fixed while changing the corpus used for supervised training. It is a stronger basis for attributing a difference to the training resource than comparing the published headline scores of separate studies. Within each test set, the systems are scored on the same examples, so a higher score cannot arise merely because the successful system was given an easier test. The same source of training wins under both evaluation choices.

Here the variable under study is the whole training resource. If the question is whether the consensus rule explains the result, the comparison would need training collections that differ in that rule while retaining comparable sentences and other preparation. If the question concerns the source mixture, it would require comparing training drawn from different sources under the same labeling procedure. ArmanEmo makes both design choices together. The reported result gives a reason to take the completed resource seriously as training data, and the account of how it was made offers several plausible explanations to investigate.

The full baseline ranking supplies a different kind of comparison. Pretrained encoders do better than the recurrent and convolutional alternatives tested with shared word vectors. Those alternatives have pretraining at the word-vector level, and the encoder-based systems bring a more extensive pretrained representation. Because the network and its input representation change together, the result does not quantify how much performance comes from any single layer, feature, or training stage.

#### Where readers and classifiers have difficulty

The progress of human annotation provides evidence independent of the final classifier scores. The substantial share of undecided sentences at the ordinary review cutoff shows that agreement on an isolated passage can take considerable effort. That outcome also puts the finalized labels in perspective. A reference label records the result of a procedure designed to produce a usable decision. It does not imply that every reader would interpret the sentence the same way or that the author expressed only the selected feeling.

The manual error analysis addresses what a disagreement between the best classifier and the reference label can mean. The authors inspect randomly selected sentences on which the predictions and recorded answers differ. Some appear to convey mixed emotions. In those cases, the classifier can output a label that fits part of the expression, even though the score counts the answer as wrong. Missing context can make it difficult to know whether the predicted feeling or the annotated feeling is more salient.

The authors also see examples where a characteristic word or combination of words appears to draw the classifier to an inappropriate category. These examples raise a different issue. When a prediction reflects a plausible secondary emotion, the scoring rule suppresses some information about what the classifier recognized. When the classifier appears to rely on an isolated cue despite the sentence's broader meaning, the mismatch points to a weakness of the prediction itself. The qualitative analysis brings both possibilities into view. It provides neither a count of how frequently each occurs nor a controlled test of whether the suspected wording caused the prediction.

These observations help explain why the per-class scores and the confusion matrix matter alongside macro F1. A reference mismatch records a common outcome across several possible situations. It could involve genuine confusion, a phrase whose meaning depends on context, or an example for which more than one emotion would be defensible. Inspecting the underlying judgments and predictions gives a clearer description of the challenge than treating the errors as interchangeable.

### Limitations

#### Limits the authors identify

The authors' main qualification concerns the label space. A sentence can express more than one feeling, while their benchmark requires a single answer. This limitation affects both sides of the experiment. Annotators may find a mixed sentence hard to finalize, and a classifier that recognizes a plausible feeling can still be penalized if the corpus records another. The authors discuss multilabel classification as a way to represent the presence of multiple emotions. ArmanEmo's reported evaluation retains the multiclass design, so its score reflects agreement with the chosen label for each test example.

Missing context limits the kinds of distinctions readers and classifiers can make. Early in the paper, the authors discuss the information normally available through tone, gesture, facial expression, or the surrounding conversation. Later, in their error analysis, they say that context could make some predictions as plausible as the corpus labels. These are two sides of the same constraint. The benchmark keeps the available text relatively consistent as evidence, at the cost of leaving out cues that could settle how the sentence was intended.

The authors also acknowledge that the label distribution remains uneven. Presenting more sentences with a rare weak label can help only if annotators judge those sentences to express the corresponding feeling. The lexicon can identify words commonly associated with a class without resolving the meaning of the whole sentence. Class frequencies therefore reflect both the sampling choices and the behavior of readers applying the instructions. Macro F1 balances the influence of classes in the evaluation, but it cannot create missing examples or make the number of examples available for each decision equal.

#### Limits implied by the setup

The agreement rule favors sentences whose emotional reading can be made sufficiently definite under the instructions. Weak-label sampling also favors examples with detectable lexical cues, and the confidence filter on the additional training tweets favors examples the initial classifier treats as easier to label confidently. Review prevents a confidence score from being the sole basis for accepting a label, but the examples rejected at that stage still receive no additional representation in the training set. Together these choices support a tractable supervised task while limiting what can be inferred about less explicit writing.

The design of the reader qualification and dashboard establishes consistency with the project's instructions. It does not establish the emotional state of the person who wrote a post. A final label records how selected readers judged the text they were shown. The three-reader rule makes that judgment more reproducible within the annotation process. The paper reports the share of difficult cases at the cutoff, but does not provide a separate reliability statistic for every category or source. A reader cannot infer from the overall procedure that a label has the same degree of agreement in tweets, Instagram comments, and Digikala reviews.

The test set is drawn from the manual material, while the additional 2500 examples are all tweets and are added only to training. This is useful for examining how a classifier trained on the expanded resource works against manually prepared targets. It also couples a change in annotation route with a change in source mixture in the training data. The reported experiments do not compare otherwise identical classifiers trained with and without that batch. They therefore leave open how much the extra data helps and whether its benefits are concentrated in writing that resembles Twitter.

The released task combines both forms of Other in a single class and excludes Unknown. It thus evaluates whether a classifier can predict a corpus category whose meaning includes both absence of a specific emotion and presence of one outside the inventory. It offers no separate score for recognizing that the sentence is too ambiguous to judge confidently. A system used on unfiltered comments could encounter examples similar to the ones excluded during construction. The reported score applies to the retained task, where a prediction chooses from the released categories.

Similarly, the multi-source collection supports a broader range of examples than a Twitter-only resource, but the paper describes a random division of manually labeled data. It does not report a source-held-out test in which training excludes an entire platform and that platform supplies the test examples. Generalization across all three collection sources therefore remains distinct from the cross-corpus result. That result evaluates transfer to EmoPars tweets under the authors' dominance filter, with a label space and sampling policy shaped for this particular comparison.

Finally, the paper's explanation for the difference between ArmanEmo and EmoPars depends on a hypothesis about annotation noise. The authors' process includes participant screening, repeated judgments, and later review. These are concrete differences in construction. The lower score after training on filtered EmoPars is consistent with a difference in labeling quality, but the study does not independently adjudicate matched sets of labels from both resources or quantify their respective error rates. It supports a practical preference for ArmanEmo as a source of training examples in the reported experiment. The stronger claim that label noise on its own explains the performance difference remains an interpretation.

### What came after

Later research citing ArmanEmo takes up Persian emotion detection from two directions. One asks how to assess the explanations classifiers give for emotion judgments. The other puts emotion-related work next to a broader range of subjective tasks in Farsi. The citing records identify these questions and the papers' scope. They leave the details of any reuse of ArmanEmo's sentences, labels, or splits unspecified.

The case study on faithfulness moves from the correctness of an emotion label to the relationship between that label and the explanation accompanying it. Those are distinct questions. A classifier can predict the category selected by annotators, while its explanation still needs to be assessed on its own terms. The distinction is particularly relevant to ArmanEmo's error analysis, where a sentence can suggest several plausible feelings or appear to trigger an answer through a particular word. The later paper's title identifies Persian emotion detection as the setting in which it studies faithfulness. Its citation connects ArmanEmo's classification problem to work on [faithful explanations in Persian emotion detection](https://md.research.elamur.ai/free/en/papers/mehrazar-2026-can-llms-faithfully-explain-themselves/).

The Farsi survey considers subjective tasks more broadly and joins that survey with an evaluation. Its scope situates emotion detection among tasks where the construction of a reference answer depends on human judgment. ArmanEmo gives a concrete example of choices such an evaluation must make. Its annotators have a route for uncertainty, its released labels define a single-answer task, and its experiments depend on how labels are aligned and filtered. The connection supported by the citation is to that broader survey and evaluation of subjectivity. The record does not state which of ArmanEmo's experimental settings, if any, the survey reproduces. [Exploring Subjective Tasks in Farsi](https://md.research.elamur.ai/free/en/papers/rooein-2026-exploring-subjective-tasks-farsi-survey/)

## Cite

Cite as Hossein Mirzaee, Javad Peymanfard, Hamid Habibzadeh Moshtaghin and Hossein Zeinali. 2025. ArmanEmo: a Persian dataset for text-based emotion detection. Language Resources and Evaluation.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1007/s10579-025-09817-4](https://doi.org/10.1007/s10579-025-09817-4) · [arXiv 2207.11808](https://arxiv.org/abs/2207.11808)

```bibtex
@inproceedings{mirzaee2025armanemo,
  title = {{ArmanEmo: a Persian dataset for text-based emotion detection}},
  author = {Hossein Mirzaee, Javad Peymanfard, Hamid Habibzadeh Moshtaghin and Hossein Zeinali},
  booktitle = {Language Resources and Evaluation},
  year = {2025},
  doi = {10.1007/s10579-025-09817-4},
  eprint = {2207.11808},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1007/s10579-025-09817-4}
}
```

> 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)
