---
title: "A Dataset and BERT-based Models for Targeted Sentiment"
description: "A Turkish Twitter dataset and BERT classifiers show how marking a named target helps distinguish sentiment about it from the tone of a tweet."
canonical: "https://research.elamur.ai/free/en/papers/mutlu-2022-dataset-bert-based-models-targeted/"
---
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/mutlu-2022-dataset-bert-based-models-targeted/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / A Dataset and BERT-based Models for Targeted Sentiment Analysis on Turkish Texts

# A Dataset and BERT-based Models for Targeted Sentiment Analysis on Turkish Texts

Paper · 2022 · Mustafa Melih Mutlu and Arzucan Özgür

**Authors:** Mustafa Melih Mutlu and [Arzucan Özgür](https://md.research.elamur.ai/free/en/authors/arzucan-ozgur/) · **Year:** 2022 · **Venue:** Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2022.acl-srw.39/)
- [PDF](https://aclanthology.org/2022.acl-srw.39.pdf)
- [DOI 10.18653/v1/2022.acl-srw.39](https://doi.org/10.18653/v1/2022.acl-srw.39)

## Summary

A tweet can sound pleased while reporting a failure. In one example from Mutlu and Özgür’s study, a Turkish Twitter user is relieved to have a break from notifications after WhatsApp goes down. The annotators give the tweet a positive label overall and a negative label for WhatsApp. A classifier that only predicts the mood of the whole message has no way to express both judgments. Targeted [sentiment analysis](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) asks a more specific question. Given a piece of text and something it mentions, does the text express positive, negative or neutral sentiment toward that thing?

The authors build a dataset of 3952 Turkish tweets collected around 6 companies and brands. Native Turkish speakers label each retained tweet for both overall sentiment and sentiment toward a designated target. The labels differ in 21% of the dataset. These cases give the authors a way to test whether a classifier can recover the sentiment about the named target when the mood of the surrounding message would lead it to a different answer. The dataset also supports ordinary sentence-level sentiment classification because it preserves that separate judgment.

The experiments start with BERTurk and vary how the classifier receives and uses information about the target. The simplest targeted version changes the training labels and keeps the usual sentence-level input and output. The other versions put a special token on either side of the designated name. They then classify sentiment using either the usual sentence representation, the representation at the opening marker, or a representation pooled across the marked span. On the full test set, the pooled version achieves the highest macro F1 against the target labels, at 0.669. The baseline trained on overall sentence labels from the same dataset reaches 0.591.

On the evaluation subset where the labels disagree, the version that reads the opening marker leads at 0.459 macro F1. The same-dataset sentence baseline scores 0.256 there, and all targeted variants score higher than both baselines. The change in ranking matters. The pooled version gives the strongest result across the full test set, while the opening marker gives the strongest result on the cases where the distinction between the two labeling tasks is decisive. Each tweet is annotated for a single selected target, so the experiments establish how well these methods classify a supplied target. They leave open how to find and label all the targets in a message.

## Deep dive: A Dataset and BERT-based Models for Targeted Sentiment Analysis on Turkish Texts

A Turkish Twitter dataset and BERT classifiers show how marking a named target helps distinguish sentiment about it from the tone of a tweet. · about 31 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

#### A sentiment label needs a referent

An overall sentiment label answers a practical question about the tone or evaluation expressed in a passage. It becomes less informative when someone needs to know which thing attracted praise or criticism. Consider the authors’ motivating example of a customer who likes a brand’s phones and dislikes its laptops. Both attitudes belong to the same passage. A positive label can capture the praise, and a negative label can capture the criticism, but either answer on its own leaves the reader unable to tell what the customer thinks of each product. The target supplies the missing referent.

Opposing judgments about products are one reason to ask for a target label. The WhatsApp example illustrates another. The tweet contains a reported event, an interruption to the service, and a favorable reaction to one consequence of that event. The service is the target. The author’s relief helps explain the overall tone, while the reported interruption accounts for the negative judgment about the service in the annotations. The classifier needs to use the words that express sentiment in light of what they are about. Detecting that the writer is pleased would be an incomplete analysis of the example.

For a target-sensitive task, the same expression can carry different weight depending on what has been designated. An adjective in a sentence may describe the product under discussion, another product mentioned for comparison, or the situation that followed an event. There is a distinction between finding sentiment-bearing language and deciding which entity that language concerns. The paper attaches the second question to a particular target and asks the classifier to predict the corresponding polarity. That changes what counts as a correct answer even when the text supplied to the classifier stays the same.

The authors motivate the task through the amount of opinion expressed in online writing and the interest in those opinions among researchers, businesses and governments. At the level of a collection, an overall sentiment label can summarize whether messages sound favorable or unfavorable. Someone interested in a particular brand has a more specific information need. They want to know how the messages describe that brand, including cases where it appears in a broader story. Searching for tweets that mention the brand narrows the collection. The classification step still has to determine what the tweets say about it.

The distinction affects how a dataset can be used. A collection can contain many mentions of a brand and still support only sentence-level classification if its labels describe the writer’s general tone. In a tweet where the two judgments happen to agree, either label supplies the same training answer. The difference becomes visible in a tweet where they diverge. The paper treats that divergence as a reason to collect two judgments deliberately, with instructions that define the scope of each. The labels then support a comparison that ordinary sentence-level annotation alone could not provide.

#### What earlier approaches tried to represent

In the literature the authors review, an early difficulty was deciding which parts of a sentence provide evidence about a target. Hand-built features and rules supplied ways to relate the target to surrounding words. Such methods depended on a choice about what linguistic evidence to represent. Recurrent approaches learned representations from sequences, and the paper reports improvements over earlier methods in that line of work. One cited example applies a recursive network to target-dependent classification on Twitter. [Adaptive Recursive Neural Network for Target-Dependent Twitter Sentiment Classification](https://md.research.elamur.ai/free/en/papers/dong-2014-adaptive-recursive-neural-network-target/)

Other architectures organized the context explicitly around the target. The approach by Tang and colleagues, as described in the paper, represents the text to the left and the text to the right using separate recurrent networks and combines the resulting information. A target can have telling context on either side. Giving the two sides separate routes into the classifier lets both contribute to the judgment. [Effective LSTMs for Target-Dependent Sentiment Classification](https://md.research.elamur.ai/free/en/papers/tang-2016-effective-lstms-target-dependent-sentiment/)

The attention-based recurrent methods reviewed by the authors address another part of this problem. They learn how to connect individual words to the target, so the classifier can draw more strongly on some parts of the sentence than on others. This matters when the message contains several possible sources of evaluative language. The mechanism gives the classification step a way to use the target in deciding which contextual evidence is relevant. The paper cites this approach in its account of aspect-level sentiment classification. [Attention-Based LSTM for Aspect-Level Sentiment Classification](https://md.research.elamur.ai/free/en/papers/wang-2016-attention-based-lstm-aspect-level/)

The next part of the authors’ account is the [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/). The original Transformer uses self-attention in its encoder and decoder. Self-attention lets a representation at a position incorporate information from elsewhere in the input. BERT uses a bidirectional Transformer encoder, which gives each position access to context on both sides. That property makes several readout choices plausible for classification. A final representation at a special sentence position can carry information from across the input, and so can a final representation at a position close to the target. [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/), [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/)

The authors place their work alongside earlier applications of BERT to sentiment tasks. The cited work includes an approach that builds an auxiliary sentence for aspect-based analysis and another that applies BERT to end-to-end aspect-based analysis. These are examples of using a pretrained encoder for tasks whose outputs concern particular aspects of the input. Mutlu and Özgür draw the immediate idea for their input and output design from a different task, where the positions of named entities also matter. [Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentence](https://md.research.elamur.ai/free/en/papers/sun-2019-utilizing-bert-aspect-based-sentiment/), [Exploiting BERT for End-to-End Aspect-Based Sentiment Analysis](https://md.research.elamur.ai/free/en/papers/li-2019-exploiting-bert-end-end-aspect/)

#### Why build another Turkish dataset?

The paper describes English as the language most studied for sentiment analysis. It also cites earlier work indicating that methods that perform satisfactorily in English can behave differently on Turkish. The immediate bottleneck here is the availability of labeled examples. Even a Turkish collection that supports overall sentiment classification may lack the target-specific judgments needed to train and assess the task. Manual labeling adds time and effort, especially when annotators must make a separate decision about the scope of each label. This is the resource constraint the study addresses within the broader problem of [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/).

There was already Turkish work relevant to the task. Köksal and Özgür’s BounTi collection contains tweets about pre-defined universities, with human judgments of sentiment toward those institutions. They used the collection to adapt BERT for Turkish Twitter sentiment. BounTi therefore supplies a precedent for collecting tweets around named entities and labeling them with attention to those entities. Its institutional domain also gives the authors a reason to distinguish it from an evaluation on tweets about companies and brands.

The new collection is designed to support two views of the very same messages. The sentence labels allow the authors to train a conventional classifier on the study’s own material. The target labels allow them to train a classifier for the more specific question and score both kinds of predictions against the same target judgments. A comparison across unrelated corpora would mix the difference in task with differences in topic, writing and annotation. Collecting both labels on each tweet gives the study a way to examine task differences within a shared body of text.

### The method, step by step

#### What goes in and what should come out

The paper first defines targeted sentiment analysis as the problem of associating each selected target in a document with its sentiment. A target is an entity of interest in the text. The text can mention other entities, and the formal task allows several targets. In the experiments, the annotation and the classifier input refer to a single designated target in each tweet. The operational problem is therefore to produce a polarity label for that target. The more general definition also covers documents for which several target–sentiment pairs would be needed.

The authors describe a document using the words it contains.

```
D = {w₁, …, wₖ}, k ∈ ℤ⁺
```

Here `D` denotes the document. The `w` symbols denote its words. The subscripts `₁` and `ₖ` identify the first and last positions shown, and `…` stands for the intervening words. The braces enclose the displayed collection. The equals sign gives the definition of `D`, and the comma separates it from the condition on `k`, the number of words. The membership sign `∈` means that `k` belongs to `ℤ⁺`, the set of positive integers. The superscript `⁺` specifies positive integers.

The definition distinguishes the entities mentioned in the document from the words used to express them.

```
E = {e₁, …, eₗ}, l ∈ ℤ⁺
```

`E` is the collection of entities in `D`. Each `e` denotes an entity, with `e₁` and `eₗ` at the ends of the displayed enumeration. The index at the end is `l`, the number of entities. The ellipsis stands for the intervening entries, and the braces contain the collection assigned to `E` by the equals sign. The condition after the comma uses `∈` to require `l` to belong to `ℤ⁺`, the positive integers.

The targets form a selection from those entities.

```
T = {t₁, …, tₘ}, tᵢ ∈ E, m, i ∈ ℤ⁺
```

`T` is the target collection defined after the equals sign. Each `t` is a target. The first and last entries shown are `t₁` and `tₘ`, and the ellipsis within the braces stands for the targets between them. `m` is the number of targets and `i` indexes a particular target. The condition `tᵢ ∈ E` says that the indexed target belongs to the document’s entity collection. The final condition puts both the target count `m` and the index `i` in `ℤ⁺`, the positive integers. The commas separate entries or conditions according to their position.

The output convention is a pair for each target under consideration.

```
(sᵢ, tᵢ)
```

The parentheses enclose an ordered pair. The comma separates the sentiment `sᵢ` from the target `tᵢ` to which it applies. The common index `i` ties the sentiment to that target’s position in `T`. In the dataset, `sᵢ` takes the value positive, negative or neutral. An overall sentence label uses the same class names, with the sentence as the scope of the judgment.

This definition helps explain what a target marker can add to a classifier. The written name is already part of the document, and the experimental input can give the encoder an explicit indication that this particular span is the target. If the tweet also mentions another entity, that mention can remain in the context without receiving the same designation. The target signal is useful precisely because the word sequence and the choice of what to evaluate are separate parts of the task.

From Turkish tweets to target sentiment predictions The steps in order.

#### Collecting and labeling the tweets

The authors gather public Turkish tweets through the official Twitter API. They search separately for each of 6 selected company and brand targets. The resulting dataset contains 3952 tweets with timestamps spanning January 2020 through June 2020. Searching by target gives the authors a way to connect each retrieved tweet to a designated subject for annotation. The published task inherits that selection. A target is a company or brand the collection was built around, even when the tweet also has other topics or names.

The [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) produces an overall label and a target label for each retained tweet. Both use positive, negative and neutral. An annotator making the overall judgment considers the sentence as a whole. For the target judgment, the annotator asks how the message presents the selected entity. The common scale keeps the outputs comparable. When the labels disagree, a reader can interpret the disagreement as a change in the object of evaluation, within the boundaries of the annotation scheme. The scheme gives each scope a single recorded polarity.

The Coca-Cola example shows how both labels can agree even though the annotator is asking different questions. The writer expresses a favorable assessment of the drink’s taste. That evaluation concerns the designated brand and supplies the overall tone of the message, so both labels are positive. The WhatsApp example separates those roles. The service outage supports a negative label for WhatsApp, while the writer casts the respite from notifications in favorable terms, leading to a positive sentence label. The examples show why the dataset needs separate annotation fields even when many rows ultimately contain the same value in both fields.

The tweets are labeled independently by native Turkish speakers, one of the authors and a volunteer. The paper reports inter-annotator agreement of 0.855 using Cohen’s κ, a statistic for agreement on categorical judgments that accounts for the agreement expected by chance. When the annotators disagree, they revisit the item. The authors retain tweets after agreement and remove those with unresolved disagreements. As a consequence, the labels used in the experiments reflect an agreed judgment after the review procedure. The statistic and the selection procedure describe different aspects of the annotation. The coefficient quantifies agreement, while the review step determines which disputed items enter the released collection.

The paper reports negative sentiment as the largest class and says that negative tweets outnumber positive and neutral tweets for every selected target. Its reported proportions for the collection are 19% positive, 58% negative and 23% neutral. The authors suggest that people who have a bad experience may be more inclined to post about it. The collection provides the observed distribution. Explaining the behavior behind that distribution would require evidence beyond the class counts.

The authors randomly divide the dataset into a training portion of 65%, a test portion of 20% and a validation portion of 15%. They keep the class distributions of the portions similar to those of the full collection. The training examples supply the text and labels from which a classifier learns. The validation portion is a separate part of the split, and the main scores are reported for the test portion. The labels attached to each tweet make it possible to train for one sentiment question and evaluate against the answer to the other without gathering a separate set of test messages.

#### Preparing the text and identifying the target

The preparation procedure is adapted to the source material. The paper describes tweets containing slang, acronyms, informal grammar and Twitter-specific characters. The authors delete URLs and account mentions. For hashtags, they strip the hash sign and keep the text that follows it. This preserves hashtag wording that can express sentiment and also preserves names that occur in hashtag form. Removing the whole hashtag would sometimes discard either the entity being evaluated or part of the evidence for the label.

The unmarked representation sends the prepared tweet to BERTurk without inserting target indicators. There can still be a name in the input, just as in the original tweet. The input itself gives the encoder no explicit span designation. A classifier trained on target labels can learn that particular names or surrounding constructions frequently matter, and its predictions reflect the supervision it has seen. The architecture gives it the same kind of tweet input used for sentence classification.

The marked representation brackets the designated target with `[TAR]`. In the WhatsApp example, one `[TAR]` goes immediately before the name and another immediately after. In the Coca-Cola example, the markers surround the full name. The same symbol serves at both boundaries. Its position in the input distinguishes the opening occurrence from the closing one. The markers add information about the role of the name without replacing the name or removing the rest of the message from the encoder’s view.

The authors add `[TAR]` to BERT’s tokenizer and resize the vocabulary. The change allows the tokenizer to handle the bracketed string as a special token, in the same general way that it recognizes `[SEP]`. This is important at two points in the system. The encoder receives an explicit boundary symbol, and the classifier can identify the output position corresponding to that symbol. A marker that broke up into ordinary text pieces would lack the same direct correspondence. The operation is part of [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/).

The design comes from earlier work in [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/). Baldini Soares and colleagues tested ways of representing entities for relation extraction. Their study, as Mutlu and Özgür describe it, compared different input and output combinations and found its strongest results with entity boundary markers and the representations at the opening markers. Relation extraction asks about the relationship between entities, while the present experiments classify sentiment about a selected entity. Both use the position of an explicitly identified span as a possible place to read contextual information. [Matching the Blanks](https://md.research.elamur.ai/free/en/papers/soares-2019-matching-blanks-distributional-similarity-relation/)

#### Choosing the representation to classify

After BERT processes the tweet, its last layer provides a contextual representation at each token position. A representation is a vector of numerical features that the final classifier can use. The paper tries different ways of choosing the vector that will be passed to the sentiment classification layer. All of them receive information through the same kind of contextual encoder. They differ in which position or group of positions provides the final features for the decision.

The first approach reads `[CLS]`, the classification token at the beginning of the input. Its final representation is used as a summary for classifying the sequence. The authors use this readout for both baselines and for the unmarked targeted variant. They also use it in a marked variant. In that last case, the markers can affect the contextual representation of `[CLS]` even though the classifier reads no marker output directly. This creates a comparison in which the target is made explicit at the input while the choice of output position is preserved.

The next approach reads the representation at the opening `[TAR]`. This gives the classifier one vector, as with `[CLS]`, but the vector comes from a position placed beside the designated target. The encoder can bring contextual information from throughout the tweet into that vector. The difference is where the classification layer obtains its features. In the motivating relation extraction work, the starting markers supplied useful output positions. The sentiment experiment asks whether an analogous choice is effective when the label concerns what a tweet says about a single target.

The remaining approach uses max pooling over the token outputs for the marked target, including the two `[TAR]` positions. Max pooling takes the largest value for each feature across the vectors in that span. Different features in the resulting vector can therefore come from different positions. The operation reduces a span that may contain several tokens to a vector suitable for the final classification step. The individual token representations have already been contextualized using the tweet. The pool is restricted to target-related positions, while the features at those positions can reflect clues elsewhere in the message.

In all versions, the final classification layer uses softmax. It turns the class scores into a distribution over the sentiment options, giving the classifier a way to compare positive, negative and neutral for the task it was trained to answer. What changes across settings is the supervision or the representation entering that last step. The objective of the target-trained settings is to predict the target label from the corresponding input. For the conventional sentence baseline trained in the study, the expected output is the sentence label.

#### How the named settings fit together

T-BERT is the simplest targeted setting. It uses the plain tweet, reads `[CLS]` and trains on target labels. This is the counterpart to the in-domain sentence baseline, whose input and readout follow the same pattern and whose supervision comes from the overall labels. The relationship between the two settings makes it possible to ask what can be gained by changing the training question while keeping the classifier’s view of the text the same.

T-BERT marked keeps the target supervision and the `[CLS]` readout, and adds `[TAR]` to the input. Comparing it with T-BERT addresses whether specifying the target in the token sequence helps when the final decision still uses the ordinary classification position. Its output can respond to the markers only through the encoder. The classifier receives the same type of sequence representation as before.

T-BERT marked -TS and T-BERT marked -MP both use the marked input. The `-TS` setting reads the first `[TAR]`, and the `-MP` setting uses max pooling across the marked span. Together with T-BERT marked, they let the reader compare different readouts while keeping target annotation and explicit marking in place. The naming describes the source of the output features, which is distinct from the target markers both settings receive.

The study uses BERTurk as the base for its training. Adapting a pretrained encoder to use labeled examples for a task is [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). The authors weight classes inversely to their frequency to reduce the influence of the uneven class distribution. In this setup, a rarer class receives more weight than a more frequent class during training. This choice concerns the learning procedure. The evaluation has its own treatment of class frequency through the metric the authors select.

For the reported training settings, the batch size is 24, meaning that a batch contains that many training examples. The optimizer is AdamW, which updates the parameters during training. The reported weight decay is 0.1, the learning rate is `1e − 5`, and the warm-up setting is 300 steps. Weight decay regulates parameter updates, the learning rate controls their scale, and warm-up governs the start of the learning-rate schedule. These settings describe the common training setup for the authors’ variants. The architectural comparisons center on the labels, boundaries and readouts rather than on varying those optimization settings.

The authors release tweet identifiers and labels, keeping the full tweet text out of the public release in accordance with Twitter’s terms. The identifiers associate the judgments with the original messages, and the labels supply the two kinds of sentiment annotation. The distinction matters for anyone reading the dataset as a research contribution. The work contributes judgments about the messages as well as an experimental comparison of ways to use them.

### Experiments and results

#### What the baselines predict

Both baselines are applied to the study’s target sentiment evaluation. The in-domain baseline is trained on the new dataset with sentence sentiment as its objective. It uses unmarked input and reads the `[CLS]` representation. Its score answers a specific question. If a classifier learns to predict the overall label from this collection, how often, as measured by macro F1, do its predictions support classification of the designated target? Using the new dataset for this baseline keeps the kinds of tweets and the training source close to those of the targeted settings.

The other baseline is the earlier BounTi classifier. It likewise uses a sentence-level `[CLS]` readout. It was adapted on Turkish tweets about universities, whose labels were assigned with sentiment toward those universities in mind. In the present comparison it is used as an existing sentiment classifier on a new set of targets. Its training history matters for interpreting the result. A score on company and brand tweets reflects a change in the entities and material being classified as well as the lack of an explicit target marker in the new input. The in-domain baseline is the closer comparison when the question is what target supervision changes.

The authors score predictions against the annotated target labels using macro F1. F1 balances precision and recall. For a particular sentiment class, precision asks how many predictions of that class are correct, and recall asks how much of the class in the annotated data the classifier recovers. Macro averaging gives the positive, negative and neutral class scores equal weight. Given the prevalence of negative labels, this weighting is consequential. A classifier benefits from recovering examples of each class instead of having its aggregate performance determined chiefly by the class with the most examples. This is the role of the chosen metric in the paper’s [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/).

#### Results on the full test set

The first comparison uses the full test portion and treats the target annotation as the reference for every prediction. This includes tweets where the overall and target labels coincide as well as tweets where they differ. The full set gives the headline measure for the dataset as assembled. Its distribution includes ordinary cases in which a salient opinion concerns the designated target and cases in which the rest of the message supports a different overall judgment.

Target sentiment macro F1 on the full Turkish Twitter test set Every targeted variant exceeds both baselines, and pooling the marked target span gives the highest score.

**The numbers**

| System or setting | macro F1 |
| --- | --- |
| BounTi | 0.498 |
| Sentence baseline | 0.591 |
| T-BERT | 0.610 |
| T-BERT marked -TS | 0.653 |
| T-BERT marked | 0.659 |
| T-BERT marked -MP (this paper) | 0.669 |

The highest full-test result is 0.669 for T-BERT marked -MP. T-BERT, which is trained for the correct task but reads an unmarked tweet, scores 0.610. It ranks lowest among the targeted variants and still exceeds both baselines. The sentence baseline trained on the same collection reaches 0.591, and BounTi reaches 0.498. The in-domain baseline’s position between BounTi and unmarked T-BERT shows why it is useful to include both comparisons. A conventional classifier trained on the study’s own data gives a stronger reference point for assessing the proposed changes.

With the markers present, `[CLS]` gives 0.659 and the opening marker gives 0.653. The authors describe these results as close. The tabulated order is worth preserving because the opening-marker readout is the strongest in the second evaluation. On the full test set it is the pooling variant that leads, followed by the marked version that uses the usual classification token. The full-test results support adding markers across all the tested readouts and give more mixed evidence about which output position to prefer.

#### Results when the labels call for different answers

The second evaluation focuses on tweets whose overall and target labels differ. The paper reports that disagreement occurs in 21% of its dataset. On an agreeing tweet, an accurate prediction of the overall label also matches the target annotation. On a disagreeing tweet, even a perfectly recovered overall label would be the wrong answer to the target question. Selecting by disagreement therefore makes it possible to see how the same systems behave when the scope of the requested judgment changes the reference answer.

Target sentiment macro F1 on Turkish tweets with differing labels All targeted variants lead the baselines, and reading the opening target marker ranks highest.

**The numbers**

| System or setting | macro F1 |
| --- | --- |
| BounTi | 0.233 |
| Sentence baseline | 0.256 |
| T-BERT | 0.401 |
| T-BERT marked | 0.428 |
| T-BERT marked -MP | 0.444 |
| T-BERT marked -TS (this paper) | 0.459 |

T-BERT marked -TS leads this comparison at 0.459 macro F1. The pooled readout reaches 0.444, and the variant that marks the target but reads `[CLS]` reaches 0.428. The unmarked T-BERT result is 0.401. Even this last setting exceeds both sentence baselines, which score 0.256 for the one trained on the new dataset and 0.233 for BounTi. The gap between the sentence and targeted settings on these examples is the clearest evidence in the study that the task changes once the scope of sentiment matters to the correct answer.

Every system scores lower on the disagreement evaluation than on the full test set. The targeted settings preserve a relative advantage, while their absolute scores show that there are still many difficult decisions in this group. The selected tweets can involve examples such as the outage message, where favorable and unfavorable cues describe different parts of a situation. The comparison groups such examples by their labels. The paper does not separately give a score for each linguistic reason the two labels might differ.

The designs leading the evaluations thus answer distinct empirical questions. Max pooling gives the highest macro F1 for the full test distribution of the study. The opening marker gives the highest macro F1 when evaluation concentrates on disagreement between the labels. A reader interested in the targeted task can use both facts. The full-set result shows how a design performs across the dataset, and the disagreement result shows how it fares when predicting the tweet’s overall tone would fail to recover the reference judgment.

### What the ablations show

The paper offers component comparisons through its classifier variants and a diagnostic comparison through the disagreement subset. The component comparisons change selected parts of the training or architecture. The diagnostic changes which examples are scored. These comparisons support different inferences. A comparison of readouts can tell a reader which feature source worked better with a given input. A comparison of evaluation sets shows where a complete system’s performance changes, with the linguistic and label distribution of the examples changing together.

#### Changing the training labels

The closest comparison for understanding supervision is the sentence baseline versus T-BERT. Both use unmarked text and take their output from `[CLS]`. The in-domain baseline learns from the overall labels, and T-BERT learns from the target labels. T-BERT scores higher in both evaluations, with the ordering especially informative on the disagreement subset. The variant has access to the same kind of text representation as the baseline and is trained to treat a different judgment as correct. A gain is therefore possible before the authors add any architectural means of identifying the target span.

What unmarked T-BERT learns from that supervision is an open question. Many tweets were collected because they mention the designated brand and may give the classifier cues to which entity the label concerns. The target-trained version can exploit patterns in those examples without receiving boundary markers. Its score establishes the value of target supervision in this setting. The paper does not measure how often the classifier internally identifies the intended name, or how frequently it relies on wording correlated with the labels in this particular collection.

The BounTi result is less controlled for this purpose. Its annotations and training corpus already concern a set of institutions, and it is applied here to different named entities. Its two evaluation scores provide context for what an existing Turkish sentiment system achieves on these tweets. To isolate the contribution of the training label as far as the study’s design allows, the appropriate comparison uses the new dataset for both sides.

#### Adding boundaries to the input

T-BERT and T-BERT marked are a closer pair for the effect of explicit target marking. Both are supervised by target sentiment and read `[CLS]`. T-BERT marked also receives the brackets. It scores higher on the full test set and on the subset with conflicting labels. This comparison supports an input effect. A classifier can benefit from an explicit indication of which words name the target even when it makes the final decision from a sequence-wide representation.

The account of how that might work follows from the architecture. Because the markers participate in contextual encoding, their presence can make the final representation at `[CLS]` contain different information about the same prepared tweet. The improvement is consistent with `[CLS]` using the supplied target cue. The experiment measures the quality of the resulting sentiment decisions. It gives no direct record of which word-to-word relations the encoder relied on in a particular prediction.

Both direct target readouts also beat unmarked T-BERT in both evaluations. These comparisons change the input and the readout at the same time, so their gains combine the effects of the two choices. The marked `[CLS]` variant is important for interpreting them. It establishes a reference with the same marked input, allowing the performance of the opening-marker and pooled readouts to be compared after the input change has already been made.

#### Reading from the sentence or the target span

On the full test set, pooling over the target span gives the best score among the marked settings. The opening marker falls slightly below the marked `[CLS]` setting on the tabulated values. The paper’s broader suggestion that reading target-related outputs helps has a qualified interpretation in this comparison. One direct readout leads the ordinary classification position, while the other has a close score on the opposite side. These results give evidence for the pooled design on the full test distribution.

On the disagreement subset, both direct target readouts score above marked `[CLS]`. The opening marker leads the pooled span. Because all these variants see explicitly marked targets and train from target sentiment, the ranking can be tied more closely to the choice of representation used by the classifier. Under this evaluation condition, putting the decision at one contextualized target boundary works better than making it from the aggregated span or the standard classification token. The evidence is the reported ranking on this group of examples.

The comparison leaves room for several explanations. Max pooling can combine useful feature values from the name and both boundaries, which may help across a varied set of tweets. The opening-marker representation can concentrate useful context at a single target-specific position. Those properties describe the readouts. The paper supplies aggregate scores, so it cannot determine whether particular words, certain target lengths or specific sentiment classes account for the change in rank. The architectural descriptions explain what information could reach the classifier, and the test results show how the complete variants performed.

#### What changes when overall sentiment is a misleading shortcut

The disagreement subset examines the issue that motivated collecting two labels in the first place. In the full dataset, sentence and target sentiment agree in 79% of the tweets. In that part of the dataset, learning sentence sentiment can yield correct target labels as a consequence of the label agreement. A full-test result includes these successes. A targeted system can also use the same evidence as a sentence classifier when a message is chiefly an evaluation of the brand, as in the favorable Coca-Cola example. Full-test success is real under the study’s scoring rule, but the reference label alone does not identify which route led to it.

The disagreement evaluation removes that particular ambiguity from the correct answer. A prediction that matches the overall gold label will fail against the target gold label in every included item. The sizable drop for the in-domain sentence baseline is consistent with the role of agreement in its full-test score. The drop for the targeted variants is also informative. The authors suggest that even target-trained classifiers may still be influenced by the general sentiment of the sentence. Reading from explicitly marked positions helps relative to the baselines, while the lower scores indicate the difficulty of the selected examples.

The subset comparison does not hold everything else constant. Which tweets are included depends on the two labels, and the selected tweets can differ in other respects as well. The distribution of sentiment classes or the kinds of constructions used to express opinions could contribute to the observed change. The paper gives the aggregate macro F1 for the subset. It does not use that comparison to quantify a separate effect of each property of the tweets. Its most direct result is how the classifiers perform on a group where the distinction between label scopes changes the expected answer.

### Limitations

#### Limits the authors identify

The authors restrict each annotation to a single target. A tweet can contain other possible targets, and its evaluation of the selected one can depend on what it says about another. A comparison is a natural example. If a writer prefers one alternative, interpreting the attitude toward either alternative can require understanding the relationship between them. The paper’s markers identify the selected name, and the dataset supplies a label for that name. It leaves the other potential target judgments unrecorded, so it cannot test a system’s ability to recover a complete set of attitudes for that tweet.

This is a limit on both what is learned and what can be scored. The formal definition permits multiple pairs for a document, while the experimental data provide only the designated pair. The encoder may use other names as contextual information, but the classification layer is asked for a polarity associated with the supplied target. The authors identify examples with multiple targets, especially targets carrying different sentiments, as a direction for future investigation. They also propose expanding the collection with more tweets where the target and overall labels disagree.

The amount of label agreement is another limit the authors emphasize. Since 79% of the dataset has identical labels, the full test can make a conventional sentiment method look more capable at target classification than the disagreement cases suggest. The problem extends to interpreting targeted classifiers. Their ability to score well in the full set does not, on its own, establish how consistently they separate sentiment about a target from the overall tone. The additional evaluation addresses part of that issue, and the authors treat the fall in their targeted systems’ scores as a reason to consider residual influence from sentence sentiment.

The authors judge the classifiers’ predictions to require human review before use. This assessment is consistent with the stronger designs’ scores on the cases most demanding of target discrimination. The task can turn on cues that describe different components of the same event, and a misclassification can reverse the interpretation of what a message says about a brand. The recommendation concerns confidence in the resulting predictions. The research comparison supplies a basis for ranking the tested approaches on the dataset, within that limit.

The release also has a stated boundary. It contains tweet identifiers and labels in keeping with the terms under which the tweets were obtained. The authors say the annotators have no affiliation with the companies targeted in the collection. That observation addresses a specific potential conflict of interest. The labels remain the judgments of the annotators working with the paper’s categories, target selection and agreement procedure.

#### Limits that follow from the experimental design

The sampling frame is public Turkish tweets retrieved for selected brands and companies over a specified period. That supports a result about the distribution represented in the collection. It gives limited evidence about a deployment in another domain, a later period or a different style of writing. The annotation asks about the same kind of pre-defined target that guided collection. An evaluation in which the system must interpret arbitrary topics, identify previously unspecified entities or classify text drawn from another source would test capabilities beyond the paper’s setup.

The split is described as random, with similar class proportions across its portions. That is a reasonable design for estimating performance on held-out examples from the same collection. It leaves a different generalization question open. The paper gives no separate result for companies or brands held out from training, and no future period is evaluated as a separate test condition. The reported scores are consequently evidence about new examples from the sampled material. They do not establish how much of the improvement would transfer when names or time periods are deliberately separated.

The agreement procedure favors tweets for which the annotators can arrive at a common judgment. That helps the experiment use a clear reference label for each retained item. It also limits what the measurement can say about persistent disagreement, including cases that resist a single label under the categories the paper uses. The agreement statistic summarizes consistency at the level the paper reports. Separate agreement measurements for each label scope or individual class would be needed to determine whether, for example, target labeling was harder to agree on than sentence labeling.

The distributions and the metric also need to be read together. The study’s class percentages show that the collection is uneven, and macro F1 gives each class an equal contribution to the reported score. That addresses class dominance in the aggregate metric. The score alone does not say which sentiments the classifier confuses or which brands account for most errors. A higher macro F1 can coexist with weak performance on a particular class or target. The reported comparisons give aggregate rankings for the evaluation groups, with those more detailed error patterns left unresolved.

The disagreement subset is defined by human labels. That makes it a useful diagnostic, because membership directly identifies the cases in which the two tasks require different answers. It is not an independently observed category that a classifier can know at prediction time. In an application, the overall and target labels would generally be unknown when the tweet is received. The result for the opening marker therefore provides a comparison under a label-defined evaluation condition. It does not demonstrate a way to detect that condition in advance and route incoming tweets to the readout that led there.

The leading readouts are also close enough that their ordering should be interpreted as the ordering of the reported scores. The paper reports point estimates and does not provide variation across training runs or uncertainty intervals for these results. It describes some settings as close. The comparison shows that the measured preference between the opening marker and pooling depends on the evaluation group. Establishing how stable that preference is under a different split, different initialization or different category mixture would require additional measurements.

Finally, the architecture comparisons test particular combinations. The experiment with marked and unmarked `[CLS]` gives the clearest view of the boundary cue. The three marked versions compare ways of reading the encoder when that cue is already present. The study does not independently test every ingredient of the pooled representation, such as how much of its performance comes from the words of the name and how much comes from the boundary tokens. The evidence is strongest at the level of the complete choices the authors compare. Marking the target improves the matched `[CLS]` design in both evaluations, and the preferred readout varies with the test condition.

### What came after

[Turkish Delights: A Dataset of Turkish Euphemisms](https://md.research.elamur.ai/free/en/papers/biyik-2024-turkish-delights-dataset-turkish-euphemisms/) cites the paper in later work on a Turkish dataset. Its subject is euphemism, whereas Mutlu and Özgür study the polarity expressed towards a designated entity. The connection that can be established is a citation between Turkish dataset studies. Whether the later work used the tweet annotations, adapted the target markers or drew on the paper for background remains open.

## Cite

Cite as Mustafa Melih Mutlu and Arzucan Özgür. 2022. A Dataset and BERT-based Models for Targeted Sentiment Analysis on Turkish Texts. Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2022.acl-srw.39](https://doi.org/10.18653/v1/2022.acl-srw.39)

```bibtex
@inproceedings{mutlu2022dataset,
  title = {{A Dataset and BERT-based Models for Targeted Sentiment Analysis on Turkish Texts}},
  author = {Mustafa Melih Mutlu and Arzucan Özgür},
  booktitle = {Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop},
  year = {2022},
  doi = {10.18653/v1/2022.acl-srw.39},
  url = {https://doi.org/10.18653/v1/2022.acl-srw.39}
}
```

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