Elamur Research

A versatile framework for resource-limited sentiment articulation, annotation, and analysis of short texts

Paper · 2020 · Vuk Batanović, Miloš Cvetanović and Boško Nikolić

Summary

A short comment can praise a film, criticize its effects, and still amount to a recommendation. A different comment may simply ask where to find the film. Both are awkward cases for a system that asks readers to label every comment as positive or negative. Yet collecting a separate set of human judgments for every version of the task can be expensive, especially for low-resource languages. The authors address this problem by making each sentiment annotation usable at several levels of detail. Their scheme records which way a comment leans, whether it expresses an opinion, and whether that opinion is clear, mixed, or ambiguous. A separate mark records sarcasm.

The authors developed their rules while jointly annotating SentiComments.SR, a publicly released collection of 3490 Serbian movie comments. They then asked experienced and novice annotators to work independently on smaller collections of movie and book comments. This gave them a way to measure what detailed instructions contribute and how much extra time they require. On the movie verification corpus, the novice pair with full instructions reached a Krippendorff’s alpha of 0.814 for four-class sentiment, compared with 0.697 for the pair given class definitions alone. The full instructions also took more time to use. The paper proposes Annotation Cost-Effectiveness, or ACE, to compare the gain in agreement with the loss in annotation speed. Its judgment varies by task, annotator experience, and collection.

The classification experiments show what can be learned from the resulting labels. In stratified cross-validation on SentiComments.SR, combining word-based features with averaged word embeddings gave weighted F-measures of 0.783 for polarity, 0.885 for subjectivity, 0.655 for four-class sentiment, and 0.586 for six-class sentiment. The strongest multilingual system, XLM, reached 0.793, 0.887, 0.686, and 0.627, respectively. The scores were close on the binary tasks, with clearer separation on the more detailed classifications. Sarcasm was marked in 114 comments, too few for the authors to draw confident conclusions about automatic detection. The framework thus demonstrates both the value of collecting several kinds of judgment together and the importance of checking how much evidence each resulting task actually has.

Deep dive: A versatile framework for resource-limited sentiment articulation, annotation, and analysis of short texts

A Serbian short-text sentiment framework uses one set of annotations to study polarity, subjectivity, mixed opinions, and sarcasm. · about 36 minutes to read

The problem and its context

What a single sentiment label has to carry

Polarity is the direction of an evaluation, ordinarily positive or negative. A binary polarity task is useful if the aim is to estimate whether people broadly approve of something. The paper points to social media monitoring and market research as settings where such a summary can be enough. Short comments, however, regularly force a choice between preserving what a reader understands and returning the simple answer an application expects. A reader might see clear praise alongside a specific criticism, recognize criticism in a superficially friendly remark, or find that either interpretation is plausible because the tone is uncertain.

One response is to add a neutral category. The difficulty is deciding what neutral means. A factual statement can contain no opinion, while a comment with equally prominent praise and criticism can contain plenty of opinion. Both may occupy the middle of a polarity classification, for different reasons. Treating them as one class makes sense only if the application wants that particular grouping. The same issue arises with a rating scale, which adds a way to express strength. A middle rating might stand for little or no sentiment, or it might stand for strong judgments that counterbalance one another. The paper discusses this issue in connection with earlier work on sentiment rating scales.

Aspect-based sentiment analysis takes a different approach by assigning judgments to particular things mentioned in a text. It can preserve the difference between a reader’s reaction to a film and their reaction to its special effects. It still requires an interpretation of the sentiment directed at each aspect. A remark that promises an unprecedented viewing experience can plausibly be a recommendation or a warning. Identifying the film as the target leaves the ambiguity in place. Likewise, an aspect label alone gives little guidance on whether to take apparently complimentary language literally. The paper discusses this alternative with reference to aspect-based sentiment analysis.

The authors see practical costs in asking for every distinction that linguistic analysis could make. As the required judgment gets more elaborate, annotators need more instruction and more opportunities to agree on difficult examples. The resulting classes also define what a classifier must learn from the annotated texts. Each finer distinction therefore has a cost at two points in the project, first when people apply it and again when it becomes a prediction target. A framework for short comments has to give annotators somewhere to put genuine uncertainty while keeping the decision process manageable.

Two kinds of resource shortage

The paper uses resources in two senses. The first is the supply of language technology. A project might lack a reliable tokenizer, a part-of-speech tagger, a tool for recovering dictionary forms, or software for finding relationships between words in a sentence. Even if a tool exists for a language, the authors’ experiments make a further distinction between having it at all and having one adequate for informal writing. A cost-conscious method must take account of which tools can actually handle the texts under study.

The second shortage concerns people and funding. A supervised text classification experiment needs examples with known labels to learn the task and judge predictions. A single dataset can take substantial work to prepare, particularly when annotators need to be trained and difficult cases need discussion. If researchers collect independent datasets for polarity, subjectivity, and sarcasm, they repeat part of that work. The authors also argue that crowdsourcing is less practical when a project has a smaller pool of suitable native speakers to draw on. They develop their detailed rules for a small group able to spend time learning the task.

The paper describes growing interest in multilingual and cross-lingual NLP as another response to scarce resources. Even where a multilingual system supports the target language, researchers still need human judgments in that language to assess how it performs. Translation into a better-resourced language introduces a different dependency. The paper cites earlier work on the risk that translation errors and cultural differences can shift the sentiment of a passage. The concern matters especially for comments whose interpretation turns on tone or on a distinction between the words used and the attitude conveyed.

The annotation schemes the authors build on

The paper describes earlier approaches ranging from binary decisions and ordered scales to labels on syntactic trees and richer frameworks informed by linguistic theory. In short-text collections assembled through crowdsourcing, the authors identify a recurring preference for positive, negative, and neutral categories, with much of the interpretation left to individual contributors. For some datasets, examples on which annotators cannot reach a majority are removed. That practice simplifies the final classification problem. It also narrows the resulting dataset by excluding some of the comments for which a richer scheme would be most informative. The paper cites the ASTD Arabic tweet dataset in its discussion of this approach.

Mohammad’s work is the closest precedent the authors identify for designing short-text annotations around known trouble spots. It discusses rhetorical questions, quotations, success from opposing perspectives, and texts that express different attitudes towards different targets. Its simpler scheme distinguishes favorable, unfavorable, and sarcastic language, as well as language containing both favorable and unfavorable elements or neither. These categories make some hard examples easier to place. The Serbian study puts more emphasis on procedural guidance and gives annotators an explicit place for ambiguity. It also highlights the act a speaker performs by making an utterance, since the sentiment a single word seems to convey can misrepresent that of the statement as a whole.

A newswire scheme from Abdul-Mageed and Diab took subjectivity seriously but defined it through a different question. It marked internally held attitudes and other states that cannot be directly verified, including those attributed to people mentioned in an article. That makes sense for a task concerned with what a news sentence reports. For a comment corpus aimed at recovering the commenter’s own stance, a favorable opinion attributed to someone else can be part of an otherwise factual report. The paper’s comparison illustrates how the intended object of annotation determines the class that an identical sentence receives.

The Arabic work also provides examples of how speech acts can enter a guideline. Later rules from Abdul-Mageed and Diab considered whether requests were direct or softened when assigning their sentiment. The Serbian framework normally treats a standalone request as carrying no expressed opinion. Al-Twairesh and colleagues, working with Saudi Arabic tweets, gave indeterminate sentiment its own category and assigned mixed opinions to another. The Serbian scheme puts these phenomena in the same category, then records a directional lean. The authors’ comparison therefore centers on the situations each category includes, since matching class names on their own can disguise substantial differences.

Prior Serbian work had already provided a balanced, document-level collection of movie reviews. The paper also describes a multilingual Twitter study that included Serbian data and found low annotator agreement for that language, and a Serbian Twitter study that evaluated ways to handle negation. The new project addresses a different unit, the short reader comment. It uses movie discussions as the development setting because the authors regard the movie domain as challenging for sentiment analysis. Book comments provide a second setting in which to examine the annotation rules. Across these choices, the motivating question is whether a single effort can produce useful judgments for several tasks while making the additional labor visible.

The method, step by step

Collecting comments and deciding what an item contains

The authors gathered visitor comments from a Serbian movie-review website. Their initial anonymized collection contained 4660 comments. Each received an identifier reflecting its movie and its position in the discussion tree. The working collection was restricted to short Serbian texts. To apply the length filter, the authors first counted tokens using whitespace, so a space-separated piece of text counted as a unit for that preliminary decision. They dropped items beyond their chosen upper bound and removed comments written in other languages. The resulting SentiComments.SR collection contained 3490 items.

A discussion-tree identifier made it possible to preserve the origin and position of a comment. For sentiment judgments, the authors chose the individual comment as the entire item. Longer comments had been removed, leaving gaps in some conversations, and the authors wanted a procedure applicable to comments without trustworthy surrounding context. They shuffled the items before annotation so that reading one would be unlikely to supply the missing context for another. Annotators could use cues within a comment, including the order and tone of its statements. Their judgment concerned what that comment conveyed on its own.

From Serbian comments to sentiment classification experiments

The steps in order.

From Serbian comments to sentiment classification experimentsStep 1: Collect, anonymize, and filter short comments1. Collect, anonymize, and filter short commentsStep 2: Keep original text and prepare proofed copies2. Keep original text and prepare proofed copiesStep 3: Label sentiment and mark sarcasm3. Label sentiment and mark sarcasmStep 4: Verify agreement and measure annotation speed4. Verify agreement and measure annotation speedStep 5: Derive task labels from the shared annotations5. Derive task labels from the shared annotationsStep 6: Compare preprocessing and train classifiers6. Compare preprocessing and train classifiersStep 7: Evaluate predictions on stratified folds7. Evaluate predictions on stratified folds

Giving one label several uses

The annotation asks two linked questions. The first is what kind of sentiment a reader can identify. The second is which direction the whole comment should take if a downstream task requires a positive or negative answer. For a plainly favorable or unfavorable opinion, the label is +1 or -1. These labels also cover comments with a predominant judgment under the authors’ composition rules. The numeral in the label is a category name. The annotation does not assign stronger praise a larger value.

The M labels, +M and -M, cover mixed or ambiguous sentiment. A mixed comment gives a reader some affirmative and some critical material, such as praise for the film alongside criticism of its effects. In an ambiguous comment, the uncertainty concerns which interpretation the speaker intended. A remark about the uniqueness of a film can fall into this category if the wording supports either admiration or criticism. In both situations the annotator selects a direction using the relative prominence of the judgments or the reading that seems more natural.

The NS labels, +NS and -NS, cover comments whose author expresses no opinion under the rules. A reader may still pick up a directional cue. An interested question can receive the positive sign, while a question expressing confusion or disbelief can receive the negative sign when the wording stops short of an evaluation. The signs let these annotations take part in a forced-choice polarity experiment. What they measure for these items is the lean assigned under the guidelines.

Sarcasm adds a suffix, s, to the appropriate sentiment label. The annotator labels the opinion conveyed by the sarcastic language and then adds the mark. The scheme regards sarcasm as expressing the speaker’s attitude, so only +1, -1, +M, and -M can take it. The mark applies when any part of the comment is judged sarcastic. This keeps information about sarcasm available even if a later experiment only needs to know, for instance, whether the comment leans positive or negative.

Each experiment reads the same underlying annotation in a prescribed way. A polarity task keeps the sign. A subjectivity task keeps the distinction between NS and the opinion-bearing labels. The four-class task has a class for clearly positive sentiment, one for clearly negative sentiment, one for mixed or ambiguous sentiment, and one for no expressed sentiment. It folds the two M labels together and does the same for the two NS labels. The six-class task keeps each signed category separate. A sarcasm task needs only the presence or absence of s. This design determines what counts as an error. Predicting -M for an item labeled +M gives the right four-class judgment and the wrong six-class judgment.

Developing a consistent way to read a comment

Two annotators developed and applied the scheme together on the main collection. During the first pass, they familiarized themselves with the language of the comments and manually corrected typing errors and missing diacritics. They retained the original versions for a later comparison. They also left deliberate word elongation in the proofed text because repeated letters or letter sequences can carry emphasis. In effect, a proofed copy corrected some surface irregularities while preserving another irregularity considered relevant to sentiment.

The second pass assigned labels where the category could be chosen confidently. The third tackled the deferred comments. Difficult cases gave the annotators specific reasons to discuss and refine the initial instructions. The final pass checked consistency across earlier decisions and added sarcasm marks. The completed guidelines describe 21 principles, with examples. Several principles concern how to combine statements. Others govern cases where an opinion appears through a speaker’s tone, a relation to something already said, or an apparent departure from the literal meaning.

The annotators judged opinions across the whole comment even when some sentences were about the reviewer, the discussion, or another film. The key exception concerned events and characters within the story. Pity for a film character can provide evidence about what a viewer thought of the film, but it need not count as a criticism alongside praise for the direction. The authors illustrate this with a comment that reacts sympathetically to a character’s suffering while plainly admiring the film. The label represents the viewer’s favorable assessment.

When a comment contained several statements, the annotators considered the statements separately before arriving at an overall label. If any part of the comment clearly expressed the speaker’s opinion, the presence of some factual material did not make it an NS item. When judgments of opposite directions concerned different aspects or viewpoints, the annotators used M and then decided which attitude was more prominent. An opinion about the work as a whole tended to carry more weight than one criticism of a detail, although several specific judgments could outweigh a general remark.

The rules also account for how successive phrases can change the meaning of an evaluation. The authors give a case where the speaker appears to deny that a director is talented, then uses a much stronger term of praise. The second statement makes the earlier wording part of an emphatically favorable judgment. In contrast, if a viewer calls a film entertaining and then complains that it feels familiar, both judgments can remain in force. When the evidence for the two sides is otherwise balanced, the guidelines give somewhat greater weight to the later statement. Reversing the order can therefore change the sign while leaving the item in the mixed category.

A single clause can also express competing sentiments. The paper gives the example of a speaker who thinks a film deserved more attention than it received. The speaker values the film and registers disappointment in its reception at the same time. The example receives an M label, signed in the direction of the more prominent attitude as judged by the annotators. This is why the decision depends on what the speaker evaluates, and how, even when the sentence looks too short to contain separate positive and negative sections.

Comparisons introduce another decision about focus. If the speaker is mainly discussing one film and ranks it above another, the superiority of the film in focus supplies the positive judgment. If the same film is ranked below the other, the focus receives a negative judgment. Sometimes the comparison is only implied, as when a reader describes one film briefly and goes on to recommend a similar one. In that situation the recommendation can carry its own sentiment. The annotators use the same composition rules to decide how much weight to give each part of the comment.

Authorship governs whether a quoted or reported opinion enters the calculation. A commenter may acknowledge that others praised a film and then explicitly reject their judgment. The label follows the commenter’s criticism. A quotation can reveal the speaker’s own stance when the comment endorses or disputes it, and a speaker quoting an earlier remark of their own can carry their earlier opinion into the present comment. A quoted opinion whose relationship to the speaker remains unspecified is treated as information about what someone said.

Agreement and disagreement call for particular care because the comment may carry little evidence of what is being agreed with. A bare statement of support can earn +M, while unexplained disagreement can earn -M. The M acknowledges that the underlying opinion is underspecified. Once the speaker names an idea and clearly expresses approval, a polar label can be appropriate. Confirmation and denial of a factual point are handled through the NS labels. The label thus depends on whether the commenter endorses an opinion or verifies a fact.

Questions, requests, and conventional expressions of courtesy show why a word that suggests interest or warmth is insufficient evidence of a personal evaluation. A wish to see a film conveys intent, and the reader may have yet to form a view of the film. A plain expression of interest, a plea, or a suggestion generally takes +NS when it stands by itself. The rules similarly distinguish thanks or apologies used as social formulas from comments that express a more definite attitude. Regret usually supplies negative sentiment, though a speaker can use it to indicate how much they would have valued an experience.

Tone sometimes provides the decisive clue. A question challenging whether another participant paid attention can turn an otherwise factual exchange into a negative comment. Capitalization, repeated punctuation, or a deliberately elongated word can reinforce a reading already suggested by the text. Laughter on its own is treated as compatible with no expressed sentiment. In context, it may signal delight or ridicule. The authors handle emoticons in a similar spirit. A symbol associated with disappointment can make an otherwise opaque reaction intelligible, while a smiling symbol alongside an obvious reproach can belong to a sarcastic reading.

For sarcasm, the annotators looked for cases in which the literal interpretation was implausible, a rhetorical question carried an evident criticism, or the written tone strongly suggested an ironic intention. Their examples also include a favorable use. A commenter playfully asks a studio to make an average film so competitors have a chance, conveying appreciation for the studio’s work. Most sarcastic examples in the corpus conveyed negative sentiment, but the label design accommodates this favorable case. Where sarcasm seemed very likely and the sentiment reading retained uncertainty, the scheme allowed a signed M label with the suffix.

Checking independent agreement

The authors used a separate design to measure independent consistency because the original annotators had worked together on SentiComments.SR. They collected a movie verification set from other Serbian review sites and a book verification set from one of those sites. The original pair and four additional graduate students each annotated the verification comments independently. The new annotators had no previous annotation experience. Two received the full guidelines with examples. The other two received only explanations of the categories and used their own judgment on particular linguistic phenomena.

The initial group, abbreviated IG, had developed and used the rules on the main movie collection. The experimental group, EG, had the detailed instructions and some time to study them. The control group, CG, worked from the brief class descriptions. Everyone annotated the movie verification set before doing the book set. The comparison between EG and CG puts detailed instructions alongside definitions alone. The performance of IG provides a separate view of what is achievable by annotators with substantially more experience of this particular scheme.

The authors measured agreement within pairs and between groups. Simple percentage agreement describes how frequently the selected categories coincide. Krippendorff’s alpha accounts for chance agreement and is the main statistic used to interpret the results. The paper uses 0.667 as the threshold for tentatively acceptable agreement and 0.8 as the threshold for reliable agreement. It computes agreement separately for each reading of the labels. Agreement about the side of a binary polarity split can remain high while agreement about whether a comment is sarcastic or mixed differs markedly.

Combining agreement and speed in ACE

The authors’ cost measure addresses a decision faced by an annotation project. Detailed rules can make labels more consistent while reducing the number of texts an annotator completes in an hour. ACE compares the relative change in those quantities. Its quality component begins with the fraction of the possible improvement in alpha that was achieved by the instructed group.

ΔA₁ = ((1 − αCG) − (1 − αEG)) / (1 − αCG) = (αEG − αCG) / (1 − αCG)

Here αCG is the within-group Krippendorff’s alpha for the pair using class definitions alone, and αEG is the corresponding alpha for the pair using the detailed rules. The value 1 is the maximum alpha and the target indexed by the subscript in ΔA₁. Subtracting either alpha from 1 gives that group’s chance-corrected disagreement. The numerator is the improvement in agreement, and the denominator is the control group’s disagreement. The ratio measures how much of the original gap to perfect agreement the new approach closed. It reaches 1 when αEG reaches 1, provided the baseline has room to improve.

The paper also rewards progress toward the thresholds that change how an agreement level is interpreted. If the baseline lies below the reliability threshold, the following quantity measures how far the instructed group moves towards it.

ΔA₀.₈ = (min(αEG, 0.8) − αCG) / (0.8 − αCG)

The symbol ΔA₀.₈ is the relative reduction in the gap to reliable agreement, defined here by an alpha of 0.8. The function min takes the smaller of the experimental alpha αEG and the target. The baseline alpha αCG is subtracted in both parts of the ratio. The denominator is the original gap. The numerator is the distance covered, capped at the target. This term gives full credit for reaching the threshold while leaving any further improvement to the term measured against perfect agreement.

The same construction applies to the lower threshold when the baseline is below it.

ΔA₀.₆₆₇ = (min(αEG, 0.667) − αCG) / (0.667 − αCG)

Here ΔA₀.₆₆₇ measures the fraction of the gap from the control alpha αCG to tentative acceptability that the instructed group closes. The threshold is 0.667. The function min caps αEG at that threshold, so movement past it is credited through the other applicable targets.

The composite quality term uses the baseline’s position to determine which targets enter the average.

ΔA = {
  (ΔA₁ + ΔA₀.₈ + ΔA₀.₆₆₇) / 3   if αCG ≤ αEG and αCG < 0.667
  (ΔA₁ + ΔA₀.₈) / 2            if αCG ≤ αEG and 0.667 ≤ αCG < 0.8
  ΔA₁                           if αCG ≤ αEG and αCG ≥ 0.8
  ΔA₁                           if αCG > αEG
}

The symbol ΔA is the overall relative improvement in annotation agreement. The terms with subscripts measure progress toward perfect, reliable, and tentatively acceptable agreement, respectively. The divisors 3 and 2 are the numbers of applicable targets in the first and second cases. The control and experimental alpha values are αCG and αEG. The symbols <, ≤, ≥, and > give the ordering conditions for choosing the applicable line. If the instructed group’s alpha is lower, only the term measured against the theoretical maximum is used, and it registers a decrease. If the control group is already at or above a threshold and the instructed group improves on it, only higher targets matter.

The efficiency component compares how quickly the two groups work.

ΔE = (SCG − SEG) / SCG

Here SCG is the control group’s annotation speed, SEG is the experimental group’s speed, and ΔE is the relative loss of speed when using the instructions. The speeds are averages in texts annotated per hour. A positive ΔE means the instructed group completed fewer texts per hour. The unit assumes that the texts counted are broadly comparable in length, a condition the authors consider plausible for an organized annotation project.

Finally the two components are combined.

ACE = ΔA / ΔE

ACE is Annotation Cost-Effectiveness, ΔA is the relative improvement in agreement, and ΔE is the relative loss in efficiency. The decision boundary is 1. With the expected slowdown, a score above it means the relative agreement gain exceeds the relative throughput loss. Inspecting the components matters when the signs change. A negative score can reflect poorer agreement during a slowdown, or better agreement accompanied by faster work. The same formula was also used to compare the experienced initial group with the control group, substituting the initial group’s alpha and speed for the corresponding experimental values.

Turning the annotated comments into classification inputs

The classification experiments begin with text preparation. Because Serbian uses both Cyrillic and Latin scripts, the authors transliterate Cyrillic comments into Latin script. They use the Serbian ReLDI tokenizer for tokenization, which divides the string into units for further processing. They compare original text with the manually proofed version and test two further normalizations. One reduces a repeated character sequence to a single occurrence and adds the special token CHAR_REP, preserving a signal that an expressive repetition occurred. The other maps emoticons to positive, negative, or ambiguous groups using a dictionary.

The paper also tests ways of reducing the number of distinct written forms that the classifier must learn. Serbian’s rich morphology means that related forms of a word can have separate counts in a small collection. Stemming groups forms by reducing them to a shared stem. Lemmatization seeks to map them to their dictionary forms. The comparison includes several Serbian stemmers, variants of the BTagger and other lemmatizers, and tools developed for Croatian, a closely related language. The Croatian stemmer by Ljubešić and Pandžić was the most useful option in the reported linear experiments.

Negation marking gives the linear classifier separate evidence for words used in the scope of a negation. The authors test a prefix attached to words after the negator, varying the scope from the following word to the sequence ending at punctuation. They use rules drawn from earlier work on Serbian tweets, and the paper traces the basic prefix technique to Pang and colleagues. The procedure approximates a local linguistic relationship with cues available in the text, which suits the authors’ setting because an adequate parser for the informal register was unavailable. Pang and colleagues’ sentiment classification study

The simplest representation is a bag of words, in which a classifier uses features tied to individual words in the comment. It can be extended with n-grams, or short sequences of adjacent tokens, and with TF-IDF, which adjusts the contribution of a term using its frequency in the item and across documents. The set of classifiers includes logistic regression, a linear support vector machine, and both the Complement and Multinomial variants of Naïve Bayes. For binary tasks the authors also try NBSVM, which combines word evidence from Naïve Bayes with a support vector machine. They implement the main linear classifiers using Scikit-learn, with LIBLINEAR for logistic regression and the linear support vector machine. Wang and Manning’s NBSVM study

The embedding representation uses a separate supply of unlabeled Serbian text. The srWaC web corpus started at 555 million tokens. The authors report roughly 470 million tokens and a vocabulary of about 3 after stripping out punctuation and non-Serbian words and lowercasing the text.8 million entries. They train word2vec skip-gram embeddings with gensim. An embedding is a vector learned from the contexts in which a word occurs. Averaging the word vectors gives each comment a representation of fixed size, which the authors feed to a linear support vector machine. A joint representation gives the classifier both the word-based features and the averaged vectors. Word2vec skip-gram

The authors also evaluate pretrained multilingual transformers. For this approach they use multilingual BERT, multilingual DistilBERT, and the masked-language version of XLM. All support Serbian. The cased multilingual BERT they use has 12 layers, 12 attention heads, and a representation dimensionality of 768. DistilBERT retains that head count and dimensionality with 6 layers. XLM has 16 layers, 16 attention heads, and a dimensionality of 1280. The authors use Hugging Face’s Transformers implementations through the Simple Transformers interface. BERT · DistilBERT · Transformers

In this branch, fine-tuning adapts the pretrained system to a specific prediction task using labeled Serbian comments. The authors keep letter case and begin with a single epoch, a pass through the training data, to compare text preparation settings. A learning rate of 4e-5 and batches of 8 are used in these runs. Batch size is the number of examples processed together for a training update. The learning rate controls the scale of parameter updates. They then train longer on the manually corrected comments and compare the classifiers across the derived sentiment tasks.

Experiments and results

Which data answer which question

SentiComments.SR supplies the training and evaluation examples for automatic prediction. Its 3490 comments are unevenly distributed across the classes. Clearly polar comments are common, with +1 especially prominent. The no-sentiment category also leans towards the positive sign, while the positive and negative sides of the mixed or ambiguous category are more evenly represented. Of the 114 sarcastic comments, around 10% received an ambiguous or mixed base label. Most were negative. Sarcastic items account for around 3.27% of the collection, making this prediction task especially sensitive to the small supply of examples.

The movie verification collection contains 464 comments from review sites other than the source of SentiComments.SR. The book verification collection contains 173 comments. These sets preserve the separate judgments made by the annotators. They are used to study agreement and labor. Automatic classification results all come from the jointly labeled movie collection. Thus a reported book result concerns human annotation, and a reported classifier score concerns held-out movie comments.

For the classifier comparison, the authors use 10-fold stratified cross-validation. Each fold is held out in turn, and stratification aims to maintain similar class proportions across folds. Within the relevant training folds they use nested 5-fold stratified cross-validation to select parameters for the linear classifiers. In particular, they tune the cost parameter C for SVM, NBSVM, and logistic regression, and consider 0.25 and 0.5 for NBSVM’s beta parameter. The separation between parameter selection and the outer evaluation is important when comparatively few labeled comments are available.

The main metric is the class-frequency-weighted F-measure. F-measure balances precision, the proportion of a classifier’s assignments to a class that are correct, with recall, the proportion of that class’s actual examples it recovers. Weighting gives more influence to classes with more examples. The authors chose this approach because they wanted class frequencies in the corpus to matter to the aggregate result. For sarcasm they instead measure F only for the sarcastic class. Success on the common class would otherwise dominate the overall view of a task focused on finding the rare cases.

How consistent the annotators were

On the movie verification set, binary polarity was comparatively easy to agree on. The initial pair achieved an alpha of 0.929, the new pair with instructions reached 0.861, and the pair working from class definitions alone reached 0.887. All were within the reliable range. The same three groups showed a different pattern on subjectivity, with alphas of 0.896, 0.795, and 0.725. Detailed guidance appears more valuable once the task asks exactly what counts as an opinion.

For four-class movie sentiment, the experienced pair reached 0.934, the instructed new pair 0.814, and the control pair 0.697. On the six-class version, their respective alphas were 0.892, 0.750, and 0.679. The cross-group comparison also favored a shared procedure. For six-class sentiment, the experienced and instructed groups had an inter-group alpha of 0.801. The experienced and control groups reached 0.687, and the instructed and control groups reached 0.678. The detailed guidelines were thus associated with closer judgments even across groups that had very different experience with the framework.

Within-pair agreement on sarcasm in the movie verification corpus

The experienced pair agreed most consistently, and the instructed newcomers agreed more consistently than the control pair.

Within-pair agreement on sarcasm in the movie verification corpusCategory definitions only: 0.131Category definitions only0.131New annotators with full guidelines: 0.628New annotators with full guidelines0.628Experienced annotators with full guidelines (this paper): 0.829Experienced annotators with fullguidelines (this paper)0.829
The numbers
System or settingKrippendorff’s alpha
Category definitions only0.131
New annotators with full guidelines0.628
Experienced annotators with full guidelines (this paper)0.829

Sarcasm highlights the difference between raw agreement and chance-corrected agreement. The control pair’s raw agreement on the movie set was 0.974 as displayed in the paper, alongside its alpha of 0.131. Both annotators could make the same decision on most comments while agreeing much less consistently on the small set of examples they considered sarcastic. The instructed pair’s alpha of 0.628 was substantially higher, though it still fell below the paper’s tentative-acceptability threshold. The experienced pair exceeded the reliability threshold on this task.

The book set, which everyone annotated second, showed a different pattern. For subjectivity, alpha was 0.929 for the experienced pair, 0.889 for the instructed newcomers, and 0.520 for the control pair. On six-class sentiment the corresponding values were 0.924, 0.832, and 0.517. The instructed newcomers achieved 1.000 within-pair alpha on sarcasm, and their agreement with the experienced group on that task was 0.859. These values characterize agreement on this collection. Interpreting them requires remembering both the shorter collection and the experience the newcomers had gained during the movie round.

What the additional agreement cost

On the movie verification corpus, the experienced group averaged about 77 texts per hour, the instructed newcomers about 52, and the control group about 133. On the book verification corpus, the corresponding speeds were about 87, 58, and 138 texts per hour. The experienced pair moved through both collections faster than the newly instructed pair while retaining high agreement. The authors interpret this as evidence that familiarity makes the rules quicker to apply. The control pair, whose task involved less consultation of rules, had the highest throughput on both collections.

ACE treats this slowdown as worthwhile when the change in alpha is large enough on its relative scale. On movie polarity, ACE was 0.883 for the experienced group against the control and -0.378 for the instructed newcomers against the control. The negative value comes from lower agreement together with slower annotation. The newcomers’ scores on movie subjectivity and six-class sentiment were 0.975 and 0.663, respectively. Their four-class score of 1.138 and sarcasm score of 1.227 cleared the decision boundary. For the experienced group on the same set, four-class sentiment scored 2.116 and sarcasm 2.219.

On the book collection all label interpretations cleared the boundary for both groups using detailed guidance. The instructed newcomers’ ACE was 1.517 for polarity, 1.592 for subjectivity, 1.527 for four-class sentiment, 1.525 for six-class sentiment, and 1.725 for sarcasm. The experienced group’s book ACE was 2.379 for polarity and 2.614 for sarcasm. The authors use these patterns to argue that the relative value of detailed guidelines depends on who applies them, what they are asked to distinguish, and how well an unguided pair would otherwise agree.

Comparing classifiers on the same comments

The linear bag-of-words baseline achieved a weighted F-measure of 0.782 for polarity and 0.871 for subjectivity. Replacing the word features with average embeddings gave 0.783 and 0.873, respectively. The best joint representation reached 0.783 for polarity and 0.885 for subjectivity. The embedding-only representation was somewhat weaker on the multiclass tasks than the word-only one, while the joint representation produced the strongest multiclass results among the linear systems. It achieved 0.655 for four-class sentiment and 0.586 for six-class sentiment.

Four-class sentiment on SentiComments.SR in stratified cross-validation

XLM achieved the highest weighted F-measure, followed by the joint linear representation.

Four-class sentiment on SentiComments.SR in stratified cross-validationLinear with bag-of-words features: 0.64Linear with bag-of-words features0.64Linear with averaged word embeddings: 0.628Linear with averaged word embeddings0.628Linear with joint word and embedding features: 0.655Linear with joint word and embeddingfeatures0.655Multilingual BERT on corrected text: 0.635Multilingual BERT on corrected text0.635Multilingual DistilBERT on corrected text: 0.634Multilingual DistilBERT on correctedtext0.634XLM on corrected text (this paper): 0.686XLM on corrected text (this paper)0.686
The numbers
System or settingWeighted F-measure
Linear with bag-of-words features0.64
Linear with averaged word embeddings0.628
Linear with joint word and embedding features0.655
Multilingual BERT on corrected text0.635
Multilingual DistilBERT on corrected text0.634
XLM on corrected text (this paper)0.686

All the transformer values in the chart use corrected comments and the training setting reported as Epochs = 3. At that setting, XLM also reached a weighted F-measure of 0.793 on polarity and 0.887 on subjectivity. Multilingual BERT reached 0.785 and 0.879, respectively. DistilBERT reached 0.772 and 0.883. The linear system with joint features was close to the strongest transformer on both binary tasks, and the ordering among the other transformers depended on the task.

Six-class sentiment on SentiComments.SR in stratified cross-validation

XLM leads on the full label set, with multilingual BERT next and the joint features strongest among the linear settings.

Six-class sentiment on SentiComments.SR in stratified cross-validationLinear with bag-of-words features: 0.566Linear with bag-of-words features0.566Linear with averaged word embeddings: 0.557Linear with averaged word embeddings0.557Linear with joint word and embedding features: 0.586Linear with joint word and embeddingfeatures0.586Multilingual BERT on corrected text: 0.604Multilingual BERT on corrected text0.604Multilingual DistilBERT on corrected text: 0.576Multilingual DistilBERT on correctedtext0.576XLM on corrected text (this paper): 0.627XLM on corrected text (this paper)0.627
The numbers
System or settingWeighted F-measure
Linear with bag-of-words features0.566
Linear with averaged word embeddings0.557
Linear with joint word and embedding features0.586
Multilingual BERT on corrected text0.604
Multilingual DistilBERT on corrected text0.576
XLM on corrected text (this paper)0.627

Keeping all six categories requires preserving the sign distinctions within the M and NS groups as well as identifying the underlying type of judgment. The weighted scores are lower on this task than on the four-class task across the reported settings. XLM has the highest score in both charts. On six-class sentiment the joint linear representation ranks above DistilBERT at the reported corrected-text setting. The paper’s broader advantage for the transformer family comes from the best observed results, and the within-family differences are relevant when choosing among the actual systems tested.

The authors also tried predicting sarcasm using the linear classifiers. The available positive examples left them without a stable basis for comparing settings, so they stopped that branch of the classification experiments. This is a different outcome from the annotation comparison. Human agreement improved with experience and instructions, while the resulting main corpus still offered comparatively few sarcastic comments from which a classifier could learn.

What the ablations show

Which kinds of text preparation helped

The preprocessing comparisons provide the paper’s evidence about which changes are helpful for a given representation. For bag-of-words classifiers, the authors examined basic text cleanup before testing morphology, negation scope, feature weighting, and longer token sequences. They looked at the overall pattern across classifier types as they chose settings. An apparent gain for one classifier accompanied by losses for others carried less weight as a basis for recommending a shared preprocessing choice. The resulting claims concern recurring effects across the tested systems.

The word-based systems generally benefited from manual proofreading and from normalizing repeated characters, emoticons, and word forms. The same groups of changes improved the averaged-embedding setup. For both representations, the most useful stemmer was the Croatian one from Ljubešić and Pandžić. In the word-count case, this is consistent with reducing the number of separate features for related forms. In the embedding case, the result concerns the tested pipeline for making a comment vector. The comparison supports the value of the stemmer in that pipeline, with the observed task and corpus supplying the boundaries of the claim.

The character repetition procedure is designed to preserve an important property of the original text. A very emphatic form and its ordinary spelling can share a normalized word while the special token retains evidence of emphasis. Emoticon normalization similarly maps several forms to a smaller number of groups. These changes are suited to a feature representation that would otherwise give each surface variant its own identity. Their measured value is for the package of operations studied. The reported comparisons give stronger grounds for keeping the tested cues in that setting than for ranking every individual spelling or punctuation pattern by importance.

Negation marking varied in usefulness across tasks. That makes the choice of scope important to interpretation. Prefixing a whole stretch up to punctuation can cover more of a phrase affected by negation, and it can also mark words whose contribution falls outside that local relationship. The paper’s results support examining the scope in relation to the classification task. Similarly, TF-IDF produced inconsistent effects, while higher-order n-grams tended to hurt. Adding specific local phrases gives a classifier more ways to represent a comment, but the corpus offers limited evidence for learning which longer sequences recur with a particular label.

What separate feature families contribute

The linear comparison keeps the broadly similar evaluation setting while changing what evidence the classifier receives. Word features can preserve direct evidence that a particular term occurred. Averaged embeddings can carry information about the kinds of words appearing in the comment, including words encountered in the larger unlabeled corpus. The averaging operation also compresses distinct words into a single vector. The fact that embedding features alone worked about as well or less well overall, and improved the best results when combined with word features, supports complementary use of the representations in this setting.

The authors also tried different ways of producing those embeddings. Preliminary experiments favored skip-gram over the alternative Continuous Bag-of-Words formulation. In another preliminary comparison, fastText gave similar classification performance and was slower to train, so the subsequent experiments used word2vec. Increasing the embedding dimensionality and the context window helped within the settings tried. These checks explain how the authors arrived at their chosen embedding representation. They offer a local comparison of training options on the sentiment tasks at hand. fastText subword representations

Why stemming has different effects after pretraining

For each transformer the authors compared original transliterated text, manually proofed text, proofed text with repetition and emoticon normalization, and a stemmed version of that last input. Each setting was first tested for a single epoch, with results averaged over five runs using different random seeds. This comparison is especially useful because the version that works best with word features can be tested directly as input to a system that learned from ordinary running text.

With XLM, polarity had a weighted F-measure of 0.739 on original text, 0.788 on corrected text, 0.779 after the additional character and emoticon normalization, and 0.760 after stemming, all in the single-epoch SentiComments.SR evaluation. On four-class sentiment, XLM gave 0.647 on corrected text and 0.618 in the stemmed setting. Proofing usually helped relative to the original spelling, though the size of the effect varied. Character and emoticon normalization typically changed the results little relative to leaving the corrected forms in place. Stemming was more consistently unfavorable in this transformer comparison.

The authors relate this pattern to the kind of text encountered during pretraining. The word-based systems benefit when different inflections and spelling variants share an explicit feature. A pretrained system already has a way to represent patterns among word forms and contexts. Removing inflections changes the input it encounters at fine-tuning time. The study observes the result of that change through the classification scores, while the contribution of any particular morphological cue remains open.

Training duration was another controlled change. On corrected SentiComments.SR text, the authors increased the length of fine-tuning beyond the first pass and reported the comparison at Epochs = 3. XLM reached 0.686 on the four-class task there, compared with 0.647 for its single-epoch corrected-text setting. Increasing the duration again to five epochs gave no consistent further benefit across the experiments. This bounds the study’s practical finding to the training settings and data it examined.

What the guideline comparison isolates

The verification experiment holds the basic label definitions available to all annotators and changes the amount of procedural guidance the new annotators receive. For movie polarity, basic definitions were enough for the control pair to attain reliable agreement. For subjectivity, the multiclass labels, and sarcasm, the instructed newcomers agreed more consistently than the control pair. This pattern fits the kinds of choices the instructions were written to resolve, including whom a quotation represents and when an apparent contradiction reflects mixed sentiment.

The shift to book comments offers further evidence about using the same document across domains. The experienced pair retained reliable agreement. The instructed novices improved while the control pair generally had more difficulty. The authors attribute this to the usefulness of common rules and to experience gained in the movie round. Domain and practice changed together, since everyone annotated the corpora in the same order. The comparison establishes the pattern observed under that sequence. It leaves the size of each contribution unresolved.

ACE brings out a distinction that agreement alone leaves implicit. For movie sarcasm, the instructed newcomers gained enough on the measure to offset their slowdown even though their chance-corrected agreement remained below the tentative threshold. For movie polarity, their guidance was associated with both slower work and lower agreement. A favorable ACE value measures the size of a change relative to its cost. The agreement statistics still determine where the resulting annotations stand in absolute terms.

Limitations

Boundaries identified by the authors

The authors emphasize that readers sometimes need the surrounding exchange to understand a short comment, especially when they are judging sarcasm. The decision to shuffle and isolate the comments makes the annotation task reproducible under conditions where earlier replies may be missing. The resulting labels concern the attitude inferable from the individual text under the guidelines. A label based on the full conversation could change when an earlier comment makes the target or tone clear.

The authors also recognize a tradeoff between detailed guidance and the practicality of collecting labels. A committed group can learn a long set of instructions and gain experience applying them. A crowdsourcing project may require rules that can be understood and used with much less preparation. The paper’s own timing comparison shows the initial burden on new annotators. Its ACE comparisons concern measured throughput under the study’s arrangement, and the authors found that similar earlier papers gave too little timing information to compare efficiency directly.

A shortage of sarcastic examples limited evaluation of automatic sarcasm detection. The authors also encountered persistent convergence problems with XLM-RoBERTa, so the transformer scores characterize systems that could be compared in their setup. More broadly, the authors point out that multilingual pretraining supports only a limited range of languages. Their strong linear baselines matter for projects in languages outside that coverage. They leave additional domains, further languages, and a Serbian-specific pretrained system to future research. XLM-RoBERTa

What follows from the experimental design

The framework supports a particular interpretation of sentiment. The sign of +NS or -NS is a directional judgment made when the comment expresses no opinion under the instructions. Applications interested in overt praise and criticism would get a different set of examples if they used the four-class reading, which keeps the no-sentiment class intact. The same issue applies to M. A reader might want to distinguish uncertainty about tone from clear evidence of competing opinions. Both feed the study’s mixed-or-ambiguous class, so their separate prevalence and classification difficulty remain open.

Agreement measures consistency with a coding convention. The main collection was jointly annotated by the pair that developed the procedure. The verification sets show how independently working pairs used it on different comments, including annotators encountering it for the first time. They supply direct evidence for those particular pairs. Generalizing the same agreement levels to a larger pool of annotators would require a broader study. The fixed movie-to-book order also leaves open how the same pairs would have performed if books had been their first experience with the framework.

The annotation part reaches both movie and book comments, while classifier evaluation reaches only the main movie set. The verification datasets serve their purpose through separate judgments and have no single jointly chosen target label for each comment. The results therefore give evidence for applying the guideline in the book domain and for classifying held-out movie comments. Automatic transfer between sources or domains remains a separate empirical question. The classifier scores also apply to short comments retained by the filtering procedure, so conclusions about longer reviews require a separate evaluation.

Weighted F-measure reflects the mix of labels in SentiComments.SR. An aggregate score can give relatively little influence to a rare class, and similar aggregate scores can arise from different combinations of precision and recall by class. Consequently, the narrow separation among the leading systems on binary polarity and subjectivity should be read as a comparison on the paper’s chosen aggregate metric. The displayed values establish the observed ranking under that evaluation. They give a limited basis for judging which differences would recur in another sample or which classifier would best serve an application concerned primarily with an uncommon judgment.

ACE also embodies choices about what counts as cost and what counts as benefit. Its cost component is annotation throughput. Time spent developing the instructions, preparing annotators, resolving disagreements, or proofreading texts can matter to the total budget even when per-hour labeling rates are available. Its quality component gives extra credit for movement toward the specified alpha thresholds. That choice suits a project that uses those thresholds to interpret consistency. A project that puts a different value on reaching them would be making a different cost-effectiveness decision.

The ratio works most directly in the situation studied here, where an instructed pair trades speed for agreement. Equal throughput makes its denominator zero. A baseline with perfect agreement leaves no gap for the relative improvement term to measure. The paper itself discusses sign changes that can complicate interpretation when instructions speed up the work or reduce agreement. In each case the underlying alpha values and timing measurements carry information that a single ratio cannot express on its own.

What came after

Automated stance detection in complex topics and small languages cites the paper in a study of immigration-related stance in polarizing news media. Its subject brings the problem of working in small languages to a task organized around a particular issue. The distinction matters in light of the Serbian framework’s treatment of different targets within a comment. A person can express a favorable reaction to one participant or argument while taking an unfavorable stance on the issue being studied. The established connection is the citation and the shared concern with interpreting attitude in small-language settings.

Is Sentiment Banana-Shaped? Exploring the Geometry and Portability of Sentiment Concept Vectors also cites the study. Its stated focus is the geometry and portability of vectors that represent sentiment. That focus concerns how a sentiment distinction is represented, while the Serbian experiments provide an instance of defining several distinctions through human judgments and testing how readily different classifiers recover them. The citation connects these questions. Reuse of SentiComments.SR, its guideline procedure, or ACE by either later study remains unconfirmed.

Cite

Cite as Vuk Batanović, Miloš Cvetanović and Boško Nikolić. 2020. A versatile framework for resource-limited sentiment articulation, annotation, and analysis of short texts. PLoS ONE.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1371/journal.pone.0242050

@inproceedings{batanovic2020versatile,
  title = {{A versatile framework for resource-limited sentiment articulation, annotation, and analysis of short texts}},
  author = {Vuk Batanović, Miloš Cvetanović and Boško Nikolić},
  booktitle = {PLoS ONE},
  year = {2020},
  doi = {10.1371/journal.pone.0242050},
  url = {https://doi.org/10.1371/journal.pone.0242050}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/batanovic-2020-versatile-framework-resource-limited-sentiment/