Elamur Research

Developing Cross-lingual Sentiment Analysis of Malay Twitter Data Using Lexicon-based Approach

Paper · 2019 · Nur Imanina Zabha, Zakiah Ayop, Syarulnaziah Anawar et al.

Summary

An opinion on Twitter can begin in one language and end in another. For a dictionary-based system, the switch matters whenever the words that convey the opinion fall outside the vocabulary it can search. Zabha and colleagues investigate this problem for Malaysian tweets, where a writer may use Malay and English in the same message. Their approach to cross-lingual sentiment analysis pools existing dictionaries for both languages and uses them to decide whether a post is favorable, unfavorable or neutral.

The system starts with public tweets returned for a subject or hashtag. After cleaning the text in R, it assigns +1 to each favorable word it recognizes and -1 to each unfavorable match. Other words contribute 0. Adding these values gives a score for the tweet. In a film example, horrible and the Malay word mahal, meaning expensive, both count against the film. In a post about reading, suka, which expresses liking, and favourite both count in favor. The words can contribute to the same decision wherever the writer switches languages.

In the #Malaysia example, the authors requested 1000 tweets, received 100 and retained 57 after cleaning. They compared the classifier with a native Malaysian speaker’s judgments. The performance table lists 0.554 for accuracy, 0.478 for precision, 0.733 for recall and 0.578 for F1. The class associated with recall is unclear. The paper introduces its metric equations in connection with the positive class, then interprets the reported recall as a measure of how readily the system recognizes neutral posts. The table gives one recall value without a class label or the underlying counts.

The authors also plot the automatic results of searches about abuse, the GST and SST tax systems, and LGBT-related discussion. These examples show what an analyst can get from a subject search. The comparison with a reader is the study’s evidence about label quality. The authors identify slang, abbreviations and dialect as difficulties for a lookup based mostly on standard forms. The examples establish that the two dictionaries can supply evidence within the same tweet. How frequently their combination improves a decision, and how well it works on particular varieties or mixtures of language, remain open questions.

Deep dive: Developing Cross-lingual Sentiment Analysis of Malay Twitter Data Using Lexicon-based Approach

Zabha and colleagues combine Malay and English sentiment dictionaries to classify Malaysian tweets and compare the labels with a reader’s judgments. · about 34 minutes to read

The problem and its context

A search finds the discussion before the classifier reads it

To follow reactions to a public issue, an analyst can start by entering its name into a Twitter search. The returned material may include someone recounting what happened, someone objecting to it, and someone praising a response. All of them can use the same search term. The term gives the analyst a way into the discussion, and the language around it carries the attitude. The paper is concerned with that second part of the job. It asks how far a vocabulary of favorable and unfavorable expressions can take an analyst from a set of search results to an account of the attitudes those results contain.

The authors place the task in the context of social media monitoring. They describe companies using online discussion to see what is being said about products, brands and subjects of interest. Governments and other organizations are also among the intended audiences for the kind of analysis the authors envisage. Their motivation draws on a survey that put Malaysian internet penetration at 76.9% and a separate estimate of 19.05 million social media users in Malaysia. These are figures about the setting in which they wanted a tool to be useful. The empirical task concerns the public tweets the authors could retrieve and prepare for classification.

A word associated with an attitude can be much more informative about sentiment than the topic name. An ordinary noun can identify a subject without passing judgment on it. An evaluative expression can tell a reader whether the writer approves, objects or finds something disappointing. In a tweet that moves between languages, the topic and the evaluation may come from different vocabularies. The writer can also use words from both vocabularies to develop the same judgment. Each of these possibilities makes the practical reach of a sentiment dictionary depend on the language choices inside the message.

The authors refer to mixed usage as Bahasa Rojak. For their task, the immediate consequence is that choosing a dictionary on the basis of one visible stretch of a tweet can exclude evidence from another stretch. A familiar English expression may coexist with the Malay words that carry the evaluation. Equally, a Malay description may be followed by an English judgment. At the level of the lookup, the relevant question is whether the form that expresses the attitude is among the entries the classifier checks. A single shared lookup gives the system a way to consider forms from either language whenever they occur.

Available vocabulary and everyday writing

The paper describes Malay as under-resourced for this application. In its discussion of low-resource languages, the relevant shortages are standardized polarity vocabularies and publicly available classifiers. A polarity vocabulary records whether an entry expresses a favorable or an unfavorable attitude. The authors describe English as having a better supply of resources for this purpose, including resources that deal with informal forms and emoticons. Their design starts from the Malay vocabulary that was already available and asks how it can be used alongside an English resource.

Coverage of a language and coverage of the ways its speakers write are separate questions. A Malay dictionary can contain the full spelling of a word a writer uses in shortened form. Unless the shorter spelling has an entry or the preprocessing expands it, the classifier is still missing the word at the point of lookup. A dialect expression can pose a similar problem even when its spelling accurately reflects the writer’s usage. Readers familiar with the dialect can use their knowledge of the expression and of the surrounding message to understand it. A lookup depends on the forms it has been given.

The paper also mentions emoji and emoticons among the features that complicate social media sentiment analysis. This is part of the broader reason a vocabulary designed around standard written words may see only some of what a reader sees. The limitation starts before the arithmetic. The classifier has to be given something it can treat as evidence, whether a recognizable word or a usable representation of another expression. The authors’ central intervention expands the number of languages from which a recognizable word can come. Their discussion of informal writing identifies a further problem within that expanded vocabulary.

Polarity also sets the level of detail the system is designed to deliver. Favorable and unfavorable judgments can arise from different feelings, and a neutral post may simply report an event. The study aims to distinguish broad directions of attitude at the level of the tweet. Earlier Malay work on emotions, discussed in the paper, asks a related question at a different level of detail. This distinction matters when interpreting an application such as the search about abuse. Calling language unfavorable and attributing a particular emotion to its author are separate acts of interpretation.

How the paper situates dictionary methods

The authors describe two main routes to sentiment classification. One uses supervised machine learning. Examples with known labels are divided into material for learning the classification rule and material for testing it. The input to that rule consists of features, meaning properties of the text that the procedure can use as evidence. An individual word is one possible feature. Which features are retained matters especially when the texts vary considerably in how they express similar attitudes.

The paper illustrates this route with research on film reviews using Naïve Bayes, Maximum Entropy and support vector machines. It describes individual-word features in that comparison and notes that the researchers saw scope for examining how a text fits together through discourse analysis, finding where its attention is directed, and tracing references through coreference resolution. Those suggestions concern relationships a reader can recognize across a sentence or a longer passage. They help explain the difference between observing the vocabulary in a text and judging how that vocabulary is being used.

The Malay film-review research discussed by Zabha and colleagues also compared supervised classifiers. In that work, the researchers described the material as noisy and treated the choice and reduction of features as consequential. A follow-up explored selecting features with a procedure inspired by an artificial immune network. The relevance to the Twitter study is the shared problem of deciding which parts of irregular text to use. In supervised classification that choice can affect what is learned during training. In a dictionary system it affects which forms will be available to match and count.

The other route begins with an inventory in which polarity has already been assigned to words or phrases. The authors describe this approach as unsupervised at the level of classifying the new text. A tweet can be scored by consulting the inventory without learning a fresh decision rule from labeled tweets for the topic under study. The preparation of the inventory is a separate matter and can involve judgments or statistical procedures of its own. In their discussion of earlier work, the authors associate supervised methods with the benefit of strong training data and a possible loss of performance when the domain changes. They present a lexicon as easier to bring to a new domain and acknowledge the potential cost in accuracy.

The related lexicon research in the paper covers several ways of thinking about evidence. A phrase-level study asks first whether a phrase expresses an attitude at all, then determines its direction if it does. Pattern-based work can use recurring expressions to find what people say about particular features of products. Opinion Observer, the source of the English vocabulary used in the study, comes from this product-analysis line. The distinction between finding an opinion and finding the thing it is about is already present in that background. Zabha and colleagues use the vocabulary in a procedure whose output describes the polarity of an entire tweet.

The place of the bilingual dictionary

Earlier applications described in the paper include lexicon-based analysis of selected Malay Facebook posts and work on Twitter discussion of low-cost airlines. The authors characterize the purpose-built vocabularies of these related applications as small. They also distinguish their own proposal from an emotion classification task and from Malay sentiment work using the Malay Review Corpus. The input they want to handle is a collection assembled through a Twitter search, where opinions about the same subject may be expressed with either language or both.

The paper also acknowledges earlier work on acquiring and analyzing a sentiment lexicon for English and Malay. Zabha and colleagues’ choice is to take available inventories for the two languages and place their entries in categories that the same calculation can use. The two resources carry over polarity decisions made during their construction. The study then gives those decisions a common role in processing new posts. By keeping the calculation simple, the authors make it possible to show directly what happens when a word from each resource is found in the same message.

The method, step by step

From a query to words the system can check

An analyst supplies a subject or hashtag, and the system calls a Twitter search function in R. The paper illustrates this with a generic subject search configured to request 1500 tweets. That illustration describes the setting for a request. The material used by the classifier depends on the results Twitter makes available. The paper describes its input as tweets from public accounts written by Malaysians. Once retrieved, those messages become individual items for scoring. The topic name identifies a collection, and the system assigns a score to each tweet within it.

The authors place preprocessing, the lexicon and sentiment calculation at the center of the system. Human judgment is brought in for the subsequent assessment. The joined dictionary and the prepared tweet text are the two inputs required at the point of lookup.

From retrieved tweets to a comparison with human judgments

The steps in order.

From retrieved tweets to a comparison with human judgmentsStep 1: Retrieve public tweets for a subject or hashtag1. Retrieve public tweets for a subject or hashtagStep 2: Prepare the retrieved text in R2. Prepare the retrieved text in RStep 3: Pool favorable and unfavorable entries across both languages3. Pool favorable and unfavorable entries across both languagesStep 4: Match each tweet’s words to the pooled entries4. Match each tweet’s words to the pooled entriesStep 5: Add the signed contributions within each tweet5. Add the signed contributions within each tweetStep 6: Assign polarity labels and plot their distribution6. Assign polarity labels and plot their distributionStep 7: Compare automatic labels with the reader’s judgments7. Compare automatic labels with the reader’s judgments

A tweet arrives with features that can get in the way of interpreting its words as dictionary entries. The paper mentions URLs, account names, timestamps, special characters, extra spaces and hashtags. It also lists abbreviations, emoticons and common words among the material the authors encountered in preparing the data. R functions are used to clean the tweets. The description establishes the purpose of this stage and the kinds of text it faces. It gives no ordered recipe that would tell a reader exactly what happens to every item named in the list.

The scoring examples show what the procedure needs from tokenization, the division of text into units that can be checked individually. In the examples, those units are words. A word that is grouped with adjacent punctuation may be harder to look up unless the preparation step makes the intended form available. Expanding an abbreviation poses a different challenge. Expansion requires recognizing which word the shortened form stands for. Standardizing the boundary around a word and recovering an unstated part of that word solve different problems for the dictionary.

Hashtags have a particular role at the point of collection. A hashtag can be sufficient reason for a tweet to enter the search results. Once the tweet has arrived, the treatment of that hashtag is a text preparation decision. A hashtag that signals the subject gives useful retrieval information even if it contributes no polarity. The paper makes the retrieval use concrete in its #Malaysia example. It leaves the scoring treatment of hashtag text unspecified. The same distinction applies more generally to the information attached to a tweet and the word forms that actually enter the addition.

The collection stage also determines how many items are available for analysis. A reader can understand the rule for scoring a tweet independently of how the tweet was obtained. To understand an aggregate plot, however, the path into the collection matters. Only text returned for the query and retained in preparation can be counted in the final display. The request setting, the returned collection and the prepared input therefore refer to different points in the procedure.

Giving the dictionaries a shared form

The English vocabulary comes from work associated with Opinion Observer. In describing how that resource was developed, the paper discusses the identification of sentence polarity and the use of association mining to find recurring features. Association mining searches for items or combinations that recur together. The paper also describes heuristic pruning, which uses rules to discard some of the candidates. Its account connects recurring nouns and noun phrases with observations that can reveal favorable and unfavorable opinions about features.

These details concern the development of the English resource. At the point when Zabha and colleagues classify tweets, the resource supplies words grouped by polarity. The Twitter procedure uses the vocabulary that resulted from those earlier decisions. Searching for a tax or a social issue does not require inducing product features again. The resource can be applied immediately, with the practical assumption that its entries will still offer useful evidence when the topic changes.

For the Malay inventory, the authors describe a WordNet-based construction procedure. The idea is to use information about meanings and relationships such as synonymy when judging polarity. The paper also describes a Naïve Bayes check in its account of how the Malay entries were rated. The resulting Malay inventory supplies signs that the Twitter system can use directly. The prior construction of an entry and the decision made later about a tweet are different operations. The latter uses the signs already available in the dictionaries.

The merger is organized by polarity. Positive words from each language go into the favorable group, and negative words from each language go into the unfavorable group. An English and a Malay entry in the same group therefore have the same effect when matched. The described scoring path can proceed without first identifying the language of the whole tweet. It needs a form to look up and a way to obtain the sign associated with that form. There is also no translation stage in this path. The shared categories make the original words usable together.

The authors give examples of forms left outside the polarity groups, including function words and ordinary nouns for people, objects and activities. This illustrates what 0 means at the point of lookup. A form outside the two groups adds no directional evidence. It may be an everyday word used only to name a subject, or it may be an expression that a reader understands as evaluative but that the inventory lacks. The rule responds in the same way in either case. An unmatched form gives no indication by itself of why the lookup came up empty.

Merging by polarity also makes the quality of the lexical decisions important. A word can influence the total only once the system can match it. After that, its effect depends on the sign associated with it. A previously unavailable form can therefore supply useful evidence when its entry fits the usage in the tweet. If a form is used with a different meaning or attitude, the lookup still has the polarity stored for the entry. The paper describes the grouping and the scoring, while leaving possible conflicts between entries unspecified.

Adding the contributions

The authors call their procedure term counting. Beginning with the words made available for a tweet, the system gives a favorable match +1 and an unfavorable match -1. A word with neither kind of match gives 0. It then adds the contributions. The paper writes out the sums for particular examples. In general notation, that operation is:

S(t) = ∑ᵢ p(wᵢ)

Here t denotes the prepared tweet and S(t) its sentiment total. The equals sign states that the total is given by the expression on its right. The symbol ∑ calls for addition across the positions considered, with i identifying a position and wᵢ the word there. The function p denotes the polarity lookup. Its value p(wᵢ) is +1 for a word in the favorable group, -1 for one in the unfavorable group and 0 for an unmatched form. Parentheses indicate the input to the score or the lookup.

The contribution is attached to the word as encountered in the tweet. The rule counts recognized terms, so the total can grow when more of the matched words point in the same direction. Each match of a given sign has the same weight. The computation has no further parameter for how emphatic the word is or where it appears in relation to the others. With the set of matched words fixed, changing their order leaves the addition unchanged. This makes it easy to pool evidence that appears on either side of a language switch.

In the film example, horrible enters with -1. The price judgment expressed by mahal also enters with -1, while the surrounding words contribute 0. The authors show the arithmetic in the order in which the words occur:

(0) + (0) + (0) + (-1) + (0) + (-1) = -2

Each parenthesized number is the polarity contribution of the word at that position in the example. Here 0 marks an unscored word, and each -1 marks an unfavorable match. The plus signs between the parentheses instruct the reader to add the contributions, and the equals sign gives the resulting tweet score, -2. The matched English judgment and the matched Malay judgment reinforce each other in the same calculation.

The reading example places Malay liking alongside an English expression of preference. The scorer finds suka and favourite, with a favorable value for each. In that example, the paper gives:

(0) + (+1) + (0) + (0) + (0) + (+1) + (0) = +2

The parentheses again enclose the contributions in word order. Here +1 is the signed weight of a favorable match and 0 marks each remaining word. The plus signs between terms call for addition, and the equals sign identifies the total, +2. The example requires both entries to obtain the sum shown. Since each recognized cue already points in the same direction, the worked calculation illustrates the accumulation of evidence more directly than it illustrates a change of category.

From a signed total to a label

The directional rule treats totals on the positive side of 0 as favorable and totals on the negative side as unfavorable. The counting description initially speaks of the directional categories, while the implementation also allows a neutral label. In the human comparison the middle category is called objective. Within the arithmetic, 0 is where the recognized terms supply no net direction. That can happen because the tweet contains no matched evaluative words or because the recognized favorable and unfavorable contributions balance.

The difference between those cases is meaningful to a reader. A plain report may warrant an objective label. A writer may also state an opinion entirely through a form the classifier misses, or voice approval of one aspect of an issue while criticizing another. What these cases can share is the score available for the automatic decision. The lexicon stage has reduced them to the same net count even though their linguistic content differs. The middle category in the output therefore needs to be read in light of what the lookup could see.

A more distant score from 0 indicates an imbalance between the counts of recognized favorable and unfavorable words. A tweet that makes its point with a single familiar evaluative expression and a tweet that accumulates several familiar expressions can differ in their totals. The paper uses those totals to assign categories and generate a bar plot. It gives no calibration relating the distance from 0 to a probability of being right or to the strength of feeling a reader would assign to the tweet.

The R implementation brings the operations together and produces the graphical output after calculating tweet sentiment. Its tweet-level decision rule comes from the inherited polarity entries and their fixed contributions. The described procedure has no stage in which the manual tweet labels are used to fit weights before the comparison. The earlier construction of the lexicons provides the information needed for scoring, and the native speaker’s judgments provide a reference against which to assess the resulting labels.

How the human comparison is organized

A native Malaysian speaker manually assesses the tweets used for the comparison. This is annotation in the sense that a reader assigns a category which can be compared with the category produced by the classifier. The paper uses a contingency table, a grid in which each cell represents a pair of labels. The reader’s judgment determines the row, and the automatic judgment determines the column. When the two labels agree, the count falls on the diagonal. Other cells distinguish the kinds of disagreement.

The paper denotes agreed positive items by Tₚ, agreed objective items by Tₒₒ and agreed negative items by Tₙₙ. For disagreements, it uses E with subscripts identifying the human and automatic labels in that order. The letters p, o and n stand for positive, objective and negative. For instance, Eₒₙ is the count of items the reader judged objective and the system assigned to the negative category. Reading the first label as the reference makes it possible to distinguish that error from assigning a neutral label to something the reader judged negative.

The paper names accuracy, precision, recall and F1, and introduces its equations with reference to the positive category. The definitions below express overall agreement and the usual positive-class measures in terms of the comparison the authors set up. The reported table gives metric values without a populated grid, so the expressions also show which information would be needed to check a calculation or to settle its class interpretation.

A = (Tₚ + Tₒₒ + Tₙₙ) / N

A is overall accuracy across the categories, and the equals sign gives its definition as a share of the compared tweets. The parenthesized numerator sums the agreement counts Tₚ, Tₒₒ and Tₙₙ using the plus signs. The slash indicates division by N, the total number of tweets in the comparison, including disagreements. This is the all-category reading of accuracy. It answers how frequently the two labels coincide.

P = Tₚ / (Tₚ + Eₒₚ + Eₙₚ)

P is precision when positive is the class of interest. Tₚ counts matches between a human positive and an automatic positive. Eₒₚ counts human-objective items called positive by the system, and Eₙₚ counts human-negative items called positive by the system. The plus signs and parentheses combine all entries in that automatic-positive column. The equals sign and the slash specify precision as the agreed positives divided by that column total. The question begins with what the system called positive and asks how much of it the reader also called positive.

R = Tₚ / (Tₚ + Eₚₒ + Eₚₙ)

R is recall for the positive class. The numerator Tₚ still counts agreed positives. In the denominator, Eₚₒ stands for human-positive items assigned to objective, and Eₚₙ stands for human-positive items assigned to negative. The plus signs add those errors to the agreed positives, and the parentheses group the complete reader-positive row. The slash divides the agreed count by the whole row, as specified by the equals sign. This question starts with what the reader called positive and asks how much of it the system found.

F1 = (2 × P × R) / (P + R)

F1 is the harmonic mean of P, precision, and R, recall. The equals sign defines it using the product of the two measures, scaled by the constant 2. The multiplication signs make that product, and parentheses group it in the numerator. In the denominator, the plus sign adds precision and recall, with parentheses grouping the sum. The slash divides the scaled product by that sum. The measure reflects the balance between precision and recall, so a high value on either measure alone is insufficient for a high combined score.

The class named in these calculations determines which errors are relevant. For recall of objective judgments, the starting set would be the reader’s objective row, and the successful cases would be agreements on objective. This is a different question from how well the system recovers the reader’s favorable assessments. The structure of the paper’s table can accommodate both. The interpretation of a published score still depends on knowing which row or combination of rows was used.

Experiments and results

Collection size and the unit of comparison

The concrete collection example uses #Malaysia as the query. The authors set the request to 1000 tweets. Twitter returned 100, and preprocessing yielded 57 clean tweets. The authors relate the limited retrieval to Twitter restrictions that allowed them to obtain recent tweets. These figures describe the intended size of the request, the response actually received and the material left after cleaning. The 1500 in the generic method example is a search setting in a separate illustration.

The reductions at retrieval and cleaning have different implications. A restriction at retrieval affects which messages can be seen by the study. The cleaning stage acts on the messages the search actually returned, and the number remaining tells the reader how much usable material came out of that stage. The classifier could agree or disagree with a reader only on items included in the comparison. The collection counts therefore describe the available input and should be interpreted independently of the performance scores.

The result table describes an evaluation on English and Malay tweets and appears with the account of the #Malaysia search and the native speaker’s assessment. The paper gives a single set of performance measures. It provides neither a separate training and test split for the collected tweets nor a breakdown of the evaluation by language composition. The procedure uses dictionaries prepared in earlier work, and the human judgment supplies the reference for the comparison. The reported evaluation consequently concerns agreement on the material examined, with English and Malay considered together.

A tweet is the item assigned a category. This means a post in which nearly every word is Malay and a post that combines the languages more extensively each supply an item for evaluation. The paper’s collection description leaves their relative frequency unknown. The headline figures cannot be read as a score for tweets with language switches specifically. The ability to score those tweets is visible in the word examples. Measuring agreement for them would involve distinguishing them within the evaluation.

Agreement with the native speaker

The proposed method’s reported accuracy is 0.554 in the comparison with manual judgments on the English and Malay tweets. That is the performance table’s measure of agreement. The authors characterize their accuracy as middling and suggest that the vocabulary’s difficulty with informal forms is part of the explanation. The example collection is small after cleaning, which the authors also identify as a reason for limited confidence in the observed result.

For the same evaluation, the reported precision is 0.478 and the reported recall is 0.733. As the positive-class definitions illustrate, precision and recall can differ substantially because they start from different collections of items. Precision starts with what the system labeled positive. Recall starts with what the reader labeled positive. A system can retrieve much of a class as judged by a reader while including many additional items under that label. That is a possible pattern when recall is higher than precision for the same class. The published numbers alone leave the composition of the errors unknown.

The paper’s own interpretation introduces a separate issue. The methods discussion refers to the positive category in introducing the equations. The results discussion treats the recall figure as evidence that the system can recognize neutrality. The performance table prints 0.733 as recall without specifying a class in the row. There is also no populated contingency table from which to identify the calculation. The safest reading is to retain 0.733 as reported recall and leave open which class it describes. Reading it as evidence about a particular row of the comparison would require information the paper does not give.

The reported F1 for the evaluation is 0.578. The authors call the result adequate and give the scale as 0.0 to 1.0, with 1.0 representing perfect performance. F1 combines the precision and recall being evaluated. A value given without an explicit class or averaging convention offers limited insight into performance on the individual categories. It leaves open, for example, whether favorable reactions and objective reports were equally easy to recognize. Those questions require support from per-category results or counts.

The native speaker’s judgments provide the sole numerical point of comparison for the proposed method. The paper’s account of supervised and lexicon-based predecessors supplies research context, with no run of those classifiers on the evaluated tweets. It gives no English-only, Malay-only or default-label score for the same items. The evaluation measures the combined system against the reader. Quantifying the advantage of the bilingual vocabulary would require comparison scores for alternative settings on the same material.

The worked scores on a common scale

The paper prints signed term counts for its film and reading examples. These are two input settings for the same procedure. Their different subjects and cues make it possible to see the meanings of the opposite signed totals. The chart orders the values so that a higher score indicates more favorable net vocabulary. The stars identify outputs of the authors’ bilingual system.

Signed term-counting scores for the two worked tweet examples

The same bilingual lookup yields an unfavorable total for the film and a favorable total for reading.

Signed term-counting scores for the two worked tweet examplesFilm example, pooled dictionaries (this paper): -2Film example, pooled dictionaries (thispaper)-2Reading example, pooled dictionaries: +2Reading example, pooled dictionaries+2
The numbers
System or settingsigned sentiment score
Film example, pooled dictionaries (this paper)-2
Reading example, pooled dictionaries+2

The scale here answers what direction the automatic evidence takes within each example. It is distinct from the agreement scales in the performance table. The reading example comes higher because its recognized terms are favorable. The film example goes below 0 because the recognized terms are unfavorable. The cases have different texts and serve to demonstrate the scoring operation. They give no estimate of differences in classification quality between dictionary settings.

The examples illustrate a useful feature of the implementation. A score can be traced to the words that produced it. For the film tweet, the unfavorable result combines a judgment about the film with an expression about its price. The reading result combines enjoyment and preference. Both examples show that the system registers the cues jointly. They also foreshadow a limit of the output: facets of an experience can differ, while the term count gives them a shared total for the tweet.

The searches on public issues

The paper presents further searches to demonstrate the system in use. The authors search Kes Dera, concerning cases of abuse, and interpret the plot as showing negative reactions. They describe the discussion in terms of anger. The automatic output concerns favorable, unfavorable and neutral polarity, while the interpretation as anger comes from the authors’ reading of the subject and the result. The distinction matters because negative expressions can convey several attitudes and can have different targets even within a collection devoted to the same issue.

For the tax examples, the authors examine searches concerning Goods and Services Tax, or GST, and Sales and Services Tax, or SST. They describe the GST output as mixed and the SST output as more negative by comparison. The display allows the reader to compare the shapes of the assigned sentiment distributions. Each distribution comes from the posts retrieved for its own query. The paper gives no separate evaluation figures for the tax searches that would show how frequently a native reader would agree with the individual decisions behind either plot.

The LGBT-related search gives another example of a distribution. The authors describe the favorable and unfavorable outputs as balanced. A result of this kind can be useful to an analyst inspecting the material, particularly as a way of seeing what the classifier did with the returned posts. Its interpretation depends on what is being evaluated in the individual messages. A tweet may use an unfavorable term in relation to a response, an event or a person within a discussion. The scoring procedure produces a direction for the tweet without assigning it to one of those targets.

These demonstrations extend the range of subjects on which the system is shown operating. A new query supplies a different collection, and the calculation still returns a distribution that can be plotted. The evidence about correctness comes from the comparison with manual assessment. The examples about public issues show the output an analyst can inspect. The paper does not attach to those examples the kind of labeled comparison that would support a claim about their respective classification accuracy.

What the ablations show

The paper reports no formal ablation and develops its analysis through worked word counts, examples of difficult language forms, an overall comparison with a reader and displays for several topics.

What can be learned from individual matches

An ablation would change a component of the procedure while keeping the evaluation material fixed. For instance, the same tweets and reference labels could be used to compare the proposed dictionary merger with a version that looked up words in just one of its sources. The paper’s examples let the reader inspect a much narrower matter. In the film example an entry originating in each language enters the unfavorable total. In the reading example the two sources make favorable contributions. Each case establishes that the second vocabulary can affect the score of an individual tweet.

Category changes are a separate outcome. Each illustrated pair of cues agrees in sign. With the rest of the example unchanged, either recognized cue would already point in the direction of the final category. The teaching value of the examples is that they make the joint evidence visible. Evidence about improved decisions would have to include cases in which a cue added by the second dictionary changes what the system predicts and a reference judgment shows whether that change is correct. The paper gives no tally of such cases.

The clean collection is also smaller than the retrieved collection in the #Malaysia example. That observation locates a change in the quantity of data at the preparation stage. It supplies no paired assessment of the labels that would have been obtained before and after a particular cleaning operation. A filtering step can affect which tweets are evaluated, and a change within an individual tweet can affect which terms match. Distinguishing those effects would require tracking the retained tweets and their word forms across versions of the procedure.

What the difficult examples diagnose

One example in the evaluation discusses someone going to an interview to gain experience. The authors provide the intended reading of the dialectal message. The English forms give familiar clues about the situation, and the dialectal wording carries information about what is happening. This shows the distance between recognizing some pieces of a mixed utterance and understanding the whole message. The example identifies a kind of linguistic knowledge that is available to a local reader and can be absent from the polarity inventory.

Another example uses abbreviated forms in a message about having disliked playing a game earlier. The authors give the expanded wording. A compressed form can obscure the word that expresses liking, the material that reverses the direction of that attitude, or both. Expansion and correct interpretation are therefore distinct steps. If the word for liking becomes recognizable, the scored vocabulary still has to account for the negative expression in which it occurs. The illustration shows where errors could enter. It supplies no original and expanded pair of automatic scores from which to measure the effect of expansion.

The authors’ example in Chinese makes a different point about vocabulary scope. The proposed resources are for Malay and English, and the range of writing encountered in Malaysia extends beyond those resources. A dialect form, an abbreviation and an expression in another language can all be absent from the lookup, while the underlying reasons differ. Lumping them together as unmatched words is sufficient for calculating the total. Diagnosing why the resulting score disagrees with a reader requires recovering the distinction between them.

What the comparisons leave unresolved

The reader-versus-system grid could distinguish an unwanted positive label from a missed positive judgment, and it could show whether a missed positive was classified as neutral or negative. Those distinctions would help connect errors with how the system treats language. A neutral assignment could arise from an absence of recognizable evidence or a balance of recognized cues. An opposing directional label indicates that the signed evidence seen by the procedure pointed the other way. The table in the paper defines the cells but gives no counts for these individual paths.

The GST and SST plots offer a comparison in which the classifier remains the same and the input collection changes. That makes them informative about the visible output of two related queries. It gives the opposite kind of comparison from a component ablation, where the input would be held fixed and the classifier would change. The paper’s observations about the tax results consequently describe what was returned and classified under each query. They do not isolate a contribution from bilingual lookup, cleansing or any particular lexical resource.

Limitations

Limits stated by the authors

The authors identify slang, dialect and short spellings as important weaknesses. The dictionary entries are standardized, and the classifier depends on finding forms it recognizes in the prepared message. For a reader, understanding an abbreviated word can involve seeing how it fits into the sentence and drawing on ordinary usage. A valid dialect form can also be intelligible to someone familiar with that variety while remaining outside a standard vocabulary. Combining languages increases the set of available entries. It retains the dependence on coverage within each language.

The authors point to these language difficulties when discussing their accuracy and precision. Their examples give that explanation a concrete basis, but they provide no error breakdown showing how many incorrect decisions arise from each difficulty. The proposal at the end of the paper is to extend the vocabulary with slang, shortened forms, dialect expressions and stop words. The authors leave that extension for future work. Its effect on coverage and agreement therefore remains to be measured.

The authors also identify the limited amount of clean material as a constraint on confidence in the results. The large difference between the number requested and the number returned for #Malaysia arose before scoring. The preparation of the tweets then reduced the collection further. The observed performance describes the resulting material. The authors have a comparatively small collection on which to assess the system, and the paper gives no corresponding sentiment measurements for the material outside it.

The paper deliberately focuses on the two languages for which it combines resources. Its example in another language is a reminder that the geographic scope of the application is broader than the lexical scope of the method. Furthermore, the presence of Malay and English does not by itself determine whether a tweet can be interpreted successfully. The useful polarity must appear in forms those particular lexical resources and preprocessing decisions make accessible.

Limits of the performance evidence

The reported result measures the full pipeline. From it, a reader cannot apportion the agreement to the Malay resource, the English resource or the preparation of the tweets. The film and reading examples show that both sources are used inside individual calculations. A beneficial contribution to the evidence in those examples is compatible with several outcomes across an evaluation collection. Added entries may change some decisions, reinforce others without changing the label, or affect a score in a way that conflicts with the human label. The paper supplies no comparison that estimates the frequency of these outcomes.

The absence of class counts also matters independently of the recall ambiguity. Overall accuracy gives each compared tweet the same weight. When the reference labels occur with different frequencies, common categories can account for much of that measure. Precision and recall respond to the composition of the relevant column and row. The paper’s symbolic table gives the structure needed to ask about prevalence and error types. The performance values leave open whether one category is particularly common, which categories are frequently confused and how the system would compare with predicting a common label each time.

The paper’s positive-class framing and later neutral interpretation point to different ways of using recall. Someone interested in finding favorable reactions would want to know what share of the reader’s positives the system retrieves. Someone interested in separating opinions from straightforward reporting would want the corresponding information on objective judgments. The published 0.733 gives no secure answer to either class-specific question on its own. It is also insufficient to support a general claim of trustworthiness across topics or language varieties. That would require knowing which predictions the measure represents and the conditions under which they were assessed.

The reference assessment comes from a native Malaysian speaker. Familiarity with the language makes the reader a useful comparator for the kind of writing the system is meant to handle. The paper supplies no account of independent judgments by additional readers, agreement between annotators or detailed instructions for difficult cases. A sentence with both praise and criticism, for example, can be interpreted through its dominant attitude, its concluding stance or the coexistence of competing judgments. The paper leaves open how such cases were resolved in the manual labels.

An exact reproduction would require more detail than the high-level description supplies. The authors identify the search mechanism, the sources of the lexicons and the signs used in scoring. To recreate the decisions on the same material, a reader would also need the particular returned tweets and enough information to repeat the changes made to their text. The paper lists phenomena encountered in preprocessing and gives the count after cleaning. It leaves questions such as the precise treatment of emoticons, the order of transformations and the resolution of potential conflicts in lexical entries unanswered.

Limits of the polarity rule

The lookup score has no separate representation for the target or scope of an opinion. If a tweet discusses the price of seeing a film and the quality of the film, those assessments can be useful for different decisions. They can still appear in the same sum. If they have opposite signs, their contributions can cancel. A reader may see a clear recommendation concerning one aspect and a complaint concerning another. The procedure yields an overall direction, or a neutral assignment if the contributions balance.

Negation illustrates a related limitation. A word for liking can occur inside an expression of dislike. The contribution of a matched word is fixed by its dictionary membership. What surrounding words contribute depends on their own entries, and the described rule gives no mechanism for making the contribution of the liking word conditional on the negative expression around it. Recovering standard forms can expose clues to the system. Correctly composing those clues into an attitude is a further task.

The same issue applies to patterns that indicate where the author’s main judgment lies. Consider a tweet that acknowledges a favorable feature and then gives a criticism that shapes the author’s overall view. A reader can use the relationship between those clauses to decide how to label the text. Term counting adds their recognized evaluations without a special role for the conclusion, and a change in word order alone has no effect on the sum. This consequence follows from the scoring rule. The authors do not measure how frequently it leads to an incorrect decision in their collection.

The magnitude of the score is also tied to the amount of recognizable wording. The rule reported in the paper sums the contributions without describing a length normalization. A concise statement and a more elaborate statement can express much the same attitude with different numbers of dictionary matches. Reading the magnitude as an estimate of emotional intensity would require a separate comparison with intensity judgments. The experiment instead uses categorical labels, and the worked values show net lexical evidence.

Limits of the public-opinion interpretation

A plot is first a description of the automatic labels assigned to the posts the search returned and cleaning retained. A search by keyword or hashtag can miss people discussing the subject in other terms. A public-account search also gives no access to private discussion. The paper’s recent-tweet restriction further narrows the material. None of these aspects of collection is measured by accuracy against a reader. Even exact agreement on every evaluated item would describe the items available to the comparison.

Tweets and people are different units for a claim about public opinion. A person may write several messages on a topic, another may write none, and the plots count the classifier’s outputs for posts. The paper gives no analysis of distinct speakers or a sampling design that would map the returned records onto a population. Reading the GST, SST or other plots as a measure of what Malaysians generally think would require information about who had an opportunity to be included and how the returned posts relate to those people.

There is also a difference between negative wording in a topical collection and disapproval of the topic itself. A search about abuse can retrieve a negative description of what happened, condemnation of a person’s response or criticism of how the event was reported. The labels supplied by the system describe the direction of the terms it recognized in each tweet. Inferring what those terms evaluate requires reading the message and identifying its target. The topic plots consequently support claims about the classifier’s treatment of the retrieved discussion, with broader interpretations dependent on evidence the study does not collect.

What came after

No later study is identified as testing or extending this classifier. The direction documented by the authors is their plan to broaden what the dictionary can recognize, including slang, shortened spellings, dialect vocabulary and stop words. The published experiments stop before that extension. They establish a way to count favorable and unfavorable cues from Malay and English together and leave the accuracy of a broader inventory as an open empirical question.

Cite

Cite as Nur Imanina Zabha, Zakiah Ayop, Syarulnaziah Anawar, Erman Hamid and Zaheera Zainal Abidin. 2019. Developing Cross-lingual Sentiment Analysis of Malay Twitter Data Using Lexicon-based Approach. International Journal of Advanced Computer Science and Applications.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.14569/ijacsa.2019.0100146

@article{zabha2019developing,
  title = {{Developing Cross-lingual Sentiment Analysis of Malay Twitter Data Using Lexicon-based Approach}},
  author = {Nur Imanina Zabha, Zakiah Ayop, Syarulnaziah Anawar, Erman Hamid and Zaheera Zainal Abidin},
  journal = {International Journal of Advanced Computer Science and Applications},
  year = {2019},
  doi = {10.14569/ijacsa.2019.0100146},
  url = {https://doi.org/10.14569/ijacsa.2019.0100146}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/zabha-2019-developing-cross-lingual-sentiment-analysis/