Elamur Research

Sentiment Analysis for Low Resource Languages: A Study on Informal Indonesian Tweets

Paper · 2016 · Tuan Anh Le, David Moeljadi, Yasuhide Miura et al.

Summary

A stream of Indonesian tweets brings together personal reactions, questions, reposts, advertisements, and fragments of stories. Before a system can sort those messages by sentiment, someone has to decide which ones should receive a polarity judgment at all. This study tackles that decision alongside a practical problem for sentiment analysis: a large supply of informal writing can coexist with a small supply of examples that people have had time to label. The authors use Indonesian Twitter to investigate what a supervised classifier can learn under that constraint, a familiar situation in work on low-resource languages.

In their study, the authors manually assigned labels to 4,000 tweets gathered during February and March of 2016. Each post received a single category. They used positive, negative, and neutral for eligible messages in Standard Indonesian or Colloquial Jakartan Indonesian, and provided other categories for out-of-scope language varieties, retweets, publicity, informational posts, and miscellaneous material. The polarity categories accounted for 1,005 tweets, of which 569 were neutral. An accurate system therefore had to recognize several kinds of posts in addition to making judgments about approval or disapproval.

The system split each tweet into tokens and represented them with word embeddings learned from Indonesian Wikipedia. These are numerical descriptions of words derived from the text in which they occur. A token that could not be found in the vocabulary received an all-zero vector. The authors also built a text normalizer that could shorten repeated spellings, replace listed informal expressions with standard Indonesian wording, and turn some emoji descriptions into Indonesian words. They compared a convolutional neural network, which can detect local patterns in the sequence, with a long short-term memory network, which carries information forward as it reads.

The highest reported cross-validation accuracy across the full label set was 73.22%, obtained with long short-term memory and the normalizer turned off. The convolutional classifier reached 69.92% without the normalizer and 65.45% with it. The paper reports different sentence totals for those convolutional runs, and it gives no run combining long short-term memory with normalization. The scores rank the configurations the paper reports, while the reason for the lower score with normalization remains open. The authors considered the system inadequate for many practical applications. They observed that their annotator worked faster when starting from its suggested labels, an observation they report without a timed comparison.

Deep dive: Sentiment Analysis for Low Resource Languages: A Study on Informal Indonesian Tweets

A study of how to classify sentiment and other message types in informal Indonesian tweets, and how text normalization affected the reported accuracy. · about 36 minutes to read

The problem and its context

A public stream supplies text faster than people can label it

The authors begin from a feature of Twitter that made it attractive for research. Its public interface let researchers collect messages people had written in the course of ordinary activity. The paper describes substantial Twitter use in Indonesia and singles out Jakarta as an especially active city. For a team interested in how people express opinions in Indonesian, this meant that obtaining material for study was feasible. Reading enough of it and making reliable decisions about what each message expressed were separate jobs.

The platform's 140-character limit at the time encouraged brevity. A post might refer to another user, use a hashtag to mark a topic, and leave the event or conversation behind a reaction unstated. The words available for classification could be only a small part of what the intended reader knew. A short response to a friend, for instance, can be easy for that friend to understand because both people know what prompted it. An annotator who sees the response on its own has to work with a narrower set of clues.

Even a self-contained post can express several judgments. The paper illustrates this with a person who approves of a product and objects to what it costs. Each opinion has an intelligible target, and the two point in different directions. A single category assigned to the entire post cannot retain the link between each judgment and its target. The authors make the problem tractable by assuming that an eligible tweet has one main sentiment, which can be positive, negative, or neutral. That assumption turns the task into text classification.

There is also a decision about eligibility. A tweet can relay a claim, reproduce someone else's words, or offer a product for sale. Its language can contain praise or criticism while its role in the collection is better described by one of the other categories the authors define. Conversely, a question can serve as a neutral example when it belongs to the targeted varieties and fits the polarity part of the scheme. The distinction depends partly on what the message is doing. Scanning its words for approval or disapproval would address only part of the job.

These choices shape the manual work. The authors say that new slang, ambiguity, and missing context made decisions difficult. A person assigning labels has to resolve those uncertainties well enough to give the classifier examples of the intended distinctions. The paper's resource problem thus includes the labor of deciding what a label should mean in practice and applying it to individual messages. Raw text provides material for that process. The labels that result are a separate resource produced by linguistic annotation.

The Indonesian of conversation and the Indonesian of reference prose

The paper describes Indonesian as a Malayic language with roles that range from national institutions to everyday communication among speakers from different communities. It distinguishes a standard, high variety, associated with such settings as schooling, government, religion, and mass media, from lower varieties used in ordinary interaction. The authors devote particular attention to Colloquial Jakartan Indonesian. In the linguistic work they discuss, it is a prestigious everyday variety in Jakarta and has been gaining a wider role in informal communication.

Regional languages add another dimension. People can use a regional vernacular with family or within a community and Indonesian in other settings. The paper also describes a setting where Indonesian, a regional Malay variety, and a local language coexist. This gives some background to a choice that otherwise might seem odd in the annotation scheme. A tweet can be part of ordinary communication in Indonesia and still belong to a variety outside the study's categories for polarity. The collection filter operates on a platform label. The annotation rules make a more specific choice about the language to be analyzed.

Informal Twitter writing brings features of speech into a written medium and gives writers further ways to play with form. The authors identify abbreviations, expressive interjections, foreign words, blends that combine material from different languages, emoji, and emoticons. Their examples include yg, a shortened spelling of yang, and bsk, used for besok, meaning tomorrow. These are cases where a reader familiar with the convention can recover a longer word from relatively few letters. To a system that looks up exactly what was written, the short form is a separate item.

Other departures from standard writing are expressive. In yahhh, the extra letters give a reader a way to imagine the delivery of the particle. Written laughter has its own variants, such as wkwk. The paper also gives examples of words made from Indonesian and foreign material. One is gamon, built from an expression about failing to move on. Familiarity with either language supplies only some of what a reader needs. The rest comes from recognizing how the writer has put the pieces together.

Some examples use a familiar-looking word in a way that a standard vocabulary entry would give little reason to expect. Semangka ordinarily names a watermelon. In the paper's example of wordplay, the same form serves as a shorthand for an expression of encouragement. The form kuy illustrates a different device: the letters of yuk, an invitation to do something, appear in reverse order. For computational lookup, these mechanisms present different challenges. A familiar form can yield a vector associated with its ordinary use, while an unfamiliar reversal can produce a failed lookup. Recovering a vector and recovering the intended reading are separate outcomes.

Indonesian word structure presents additional opportunities for variation. The paper describes prefixes, suffixes, combinations of affixes, and reduplication, in which material is repeated as part of forming a word. Such distinctions belong to morphology. In tweets, reduplication can be written with the digit 2 in place of the repeated material. Writers can also attach an element where a standard rendering would separate it, or insert a space where the written items would normally be joined. Recognizing the intended parts of the expression can require more than treating every stretch between spaces as a complete word.

A thank-you message analyzed by the authors shows these features occurring together. The writer uses an everyday expression of thanks, abbreviates an address term and a band name, and writes about prayers using doa2nya. The prayer response includes the stretched spelling aminnnn. An emoticon appears in the same message. The paper gives a standard Indonesian rendering of the post, showing how many independent decisions a reader makes in getting from the original wording to a more conventional written form. For the classifier, each such decision has a concrete consequence: it can change which items the system finds in its vocabulary.

Earlier work used visible clues to build training collections

In the paper's account of earlier Indonesian research, Aliandu framed the task around positive, negative, and neutral labels. Emoticons helped locate messages likely to carry a particular sentiment. A typed face can be a convenient cue during collection because it is easy to search for and can correlate with the kind of expression a researcher wants to study. The authors associate this strategy with Pak and Paroubek's work on collecting Twitter data for opinion and sentiment research. Twitter as a Corpus for Sentiment Analysis and Opinion Mining

Aliandu compared a support vector machine with Naive Bayes. The features described in the paper included term frequency and TF-IDF. Term frequency uses how frequently a term occurs in the text being represented. TF-IDF also takes account of the term's distribution across texts, so a relatively distinctive term can carry more weight. In the present study the classifier receives learned numerical representations in an ordered sequence. The earlier work helps explain where this choice fits among the ways researchers had already turned tweet text into features.

Wicaksono and colleagues, as described by the authors, addressed the extraction of opinion tweets as well as their classification by polarity. They used an opinion lexicon and clustering to build a seed collection. A lexicon supplies words associated with opinion, while clustering groups examples by similarities. A classifier then helps obtain further training instances from unlabeled tweets. The paper presents their comparison against corpus construction based on emoticons. Both approaches use observable properties of posts to address the scarcity of directly labeled examples.

The Indonesian tweet study starts its supervised stage with human judgments and assigns categories to several kinds of messages a stream can contain. It also uses a large collection of text that bears no tweet labels. That material comes from Wikipedia and provides evidence for learning word vectors. The two collections make different contributions. The manually classified messages show which decisions the system is meant to learn. The encyclopedia text provides the numerical vocabulary through which the classifier sees much of their wording.

The method, step by step

Collect the messages and give each selected tweet a target

A Python script using Tweepy listened to Twitter's public stream and kept tweets with the language code id. Over February and March 2016, the authors report collecting 900 thousands of tweets with that code. They selected 4,000 to label by hand, a choice they attribute to limited resources. The stream code was a practical intake criterion. It gave the team a way to collect likely Indonesian material before anyone read the individual posts and decided how they fit the study.

The supervised examples pair the text of a tweet with its assigned category. The category becomes the target during training and the answer against which a prediction is checked during evaluation. To prepare the text side of this pair, the team assembled two additional resources. It processed 1,694 emoji definitions for the normalizer. It also obtained 61,374,640 Indonesian tokens from Wikipedia for training the word representations. A token is an item identified by dividing a text into units for processing. A word, punctuation mark, or other sign can occupy such a position, depending on how the text is divided.

From collected tweets to predicted categories

The steps in order.

From collected tweets to predicted categoriesStep 1: Select tweets carrying the Indonesian language code1. Select tweets carrying the Indonesian language codeStep 2: Label the selected messages by hand2. Label the selected messages by handStep 3: Prepare and tokenize each tweet3. Prepare and tokenize each tweetStep 4: Rewrite tokens when normalization is enabled4. Rewrite tokens when normalization is enabledStep 5: Look up vectors learned from Indonesian Wikipedia5. Look up vectors learned from Indonesian WikipediaStep 6: Use zero vectors for missing vocabulary entries6. Use zero vectors for missing vocabulary entriesStep 7: Train on labeled examples and predict held-out labels7. Train on labeled examples and predict held-out labels

This arrangement lets the system draw on knowledge of words from a much larger source than the annotated tweets. Training the word representations requires Indonesian text. Training the classifier requires examples of the target decisions. Emoji descriptions serve a narrower purpose still. They give one branch of the text preparation procedure a way to express a visual sign in words before lookup. The material used for each purpose enters the procedure at a different point.

Define what the classifier can say

The polarity choices are POS for positive, NEG for negative, and NEU for neutral. For tweets written in either Standard Indonesian or Colloquial Jakartan Indonesian, the authors apply these labels. Their positive example conveys pleasure at seeing something. The negative example rebukes someone for acting as though they can give orders. The neutral example asks how to register with a group. These examples show the kinds of whole-message judgments expected of the annotator. The registration question has an intelligible purpose without expressing the sort of approval or disapproval illustrated by the other two.

The retweet class, RET, captures a different property. The example in the paper repeats a short remark that calls something interesting. Its wording could matter in a sentiment analysis of the remark itself. For the study's tweet label, its status as a retweet is the defining feature of the example. Similarly, an advertisement receives ADV. The paper illustrates the class with a post offering a desktop computer and giving specifications. Those details can make the post recognizable as an offer even when the tweet contains little language that a reader would call either favorable or unfavorable.

INF is used for informational material. The authors include examples of an article title about caring for a phone screen, a date and time, a quotation, and part of a story. This category covers a range of forms. An item can point the reader toward advice, record when something happened, circulate a saying, or continue a narrative. The registration question used to illustrate NEU helps clarify what is at stake. Assigning the broad label requires more than deciding that a tweet contains or requests information in some sense. The scheme distinguishes among the kinds of message functions represented by these examples.

The scope of FOR, whose name expands to foreign, is defined for this experiment. It covers languages such as English, Standard Malay and regional Malay varieties, regional varieties of Indonesian, and vernaculars including Javanese and Sundanese. The code identifies cases outside the two varieties admitted to the polarity categories. A text can carry clear affect for readers who know its language and still receive FOR. Finally, XXX collects other cases. An example consisting largely of expressive strings of letters shows the sort of material that can be assigned to this residual category.

These choices result in a label inventory that combines language scope, polarity, and message type. The implementation has 8 output dimensions, corresponding to the labels. It returns a single decision even if several descriptions could apply to the same post. A quoted compliment, for example, presents both a recognizable favorable expression and a reason to classify the message by its form. The paper gives concrete decisions in the annotation examples. It leaves the complete order for resolving these kinds of overlap unspecified.

Decide what reaches the tokenizer

The authors describe adjustments to the tweet text before dividing it into tokens. Links beginning with https are removed, as are user references beginning with @. This strips the destination address and the handle from the text while allowing the words around either one to continue through the pipeline. Topic indicators beginning with # are kept because they might supply useful features. Their ultimate contribution still depends on what units emerge when the text is split and which of those units can be represented.

In the authors' preparation procedure, spaces are also inserted between emoji to make their boundaries easier for the software to recognize. A run of adjacent signs can provide several opportunities for lookup when the signs are presented separately. The method uses the default word tokenizer from NLTK 3. Its role is to find the units that subsequent operations handle. This operation, called tokenization, is what lets the procedure visit the items in a tweet one at a time.

The paper describes the cleanup around the tokenizer in its account of the normalization pipeline. The results identify configurations by whether they use the normalizer, and the exact allocation of every preliminary adjustment across those configurations is left unspecified. Tokenization and conversion to vectors are still needed to form the input of a classifier without the normalizer. The reported switch concerns whether the normalizer is used. There are no separate rows in the evaluation for the handling of links, the preservation of hashtags, or the spacing around signs.

Some of the preparation choices have implications beyond polarity. A handle can help a human identify a reply or recognize a formula for addressing another user. A link can suggest that the post points to an article or an offer. The cleaned text can retain words describing an article or a product, even when it loses those particular structural clues. Because the target labels include message type, the question of what to retain arises for several reasons. The authors specify their treatment of these strings without estimating their contributions individually.

Normalize spelling and replace some informal expressions

Once the tweet has been tokenized, the normalizer can apply rules to particular word forms. One rule removes the attached element written nya or the shortened variant ny. The paper glosses the element in connection with definiteness. Other rules deal with reduplication and repetition. A word repeated with a hyphen can be reduced to its base form. A form ending in the digit used to indicate reduplication can undergo a similar reduction. The rules also shorten excessive runs of letters and recurring pairs of letters.

The prayer example shows how more than one rule can apply. Removing the ending from doa2nya gives doa2; removing the written marker of repetition leaves doa. The final spelling can be searched for in the vocabulary as an ordinary word. The operation has also removed the information conveyed by the attachment and the explicit marker of repetition. In another example, hahahahah becomes haha. Some evidence of laughter remains in the shortened form, while the amount of repetition is no longer represented by the rewritten token.

A further example in the paper changes mannaaaa to mana. From the standpoint of vocabulary matching, the change offers a direct path from an elongated spelling to a conventional one. From the standpoint of classification, the longer version may have contributed information about tone. Whether the reduction is helpful depends on the availability of a vector for each form and on how much of the message's function is conveyed by the stretching itself. The procedure performs the rewrite before the classifier can use those distinctions.

The rules cover recurring patterns, while a dictionary covers particular forms the authors identified in tweets. They collected 376 frequent informal entries and associated them with standard Indonesian equivalents. Where a short form is derived from a longer expression, the dictionary can record the expansion as well. For blg, the longer form is bilang, and the standard replacement given is berkata. For mager, the fuller expression is malas gerak, and the replacement is malas bergerak. The difference between the fuller form and the standard equivalent matters. One explains where the informal form came from. The other supplies material for the downstream lookup.

Some entries require an explanation in several words. Peje, which comes from pajak jadian, is the authors' example of an expression without a simple formal counterpart. It concerns the money someone spends treating friends after officially starting a relationship. A phrase describing that custom can contain familiar words even if the short original expression is absent from the learned vocabulary. Such a substitution also changes the sequence. A compact expression can occupy a single position before the substitution and several afterward, because the replacement is tokenized again.

The resulting series of standard words is an attempt to make informal content accessible to the same lookup procedure used for ordinary prose. A table of spelling correspondences gives the system a way to rewrite recurring cases without interpreting the entire tweet. Its scope is accordingly local. A clever reversal or a playful use of an ordinary word may require evidence from the surrounding message. A short string also can have different readings in different settings. For the lookup procedure described in the paper, finding a dictionary entry is the condition that triggers an informal-to-standard replacement.

Give emoji a possible representation in words

For emoji, the authors assembled English descriptions and used them as a starting point for generating Indonesian text. The list can contain several descriptions of the same sign. The paper illustrates this with a direction symbol whose descriptions refer to the lower right and the southeast. Each word in a description is checked through WordNet in NLTK. When the word can be found in Princeton WordNet and Indonesian equivalents are available, the procedure can use the corresponding Indonesian words.

This gives a sign a path into the classification input. Once the description has supplied Indonesian words, those words can be looked up like the surrounding text. The step is conditional at both stages. The sign needs a definition in the compiled resource, and the words of that definition need suitable translations to make it through the procedure described. Even then, the resulting Indonesian tokens need entries in the word-vector vocabulary if they are to be represented by something other than zeros.

An emoji description tells the procedure something about the conventional identity of the sign. What the writer is doing with the sign is a further question. A description of a direction can be perfectly accurate without indicating anything about the writer's attitude. Even an emoji with an emotional description can accompany different kinds of utterances. Accordingly, the method supplies word features derived from the sign. Any usefulness for assigning the tweet label has to come through learning from the labeled examples.

The paper distinguishes emoji from emoticons made with text characters. It discusses both as features of informal writing, and an emoticon appears in its annotated linguistic example. The authors describe the implemented special handling in terms of emoji and leave explicit use of emoticons to future work. A sign such as :) can thus illustrate the linguistic problem without having a dedicated conversion procedure in the system the paper evaluates.

Turn each prepared token into a vector

The authors converted Indonesian Wikipedia articles to text with Python and used word2vec to learn representations. Each entry in the resulting vocabulary has a vector whose coordinates come from the use of words in that corpus. When the classifier sees a tweet, the system looks up its prepared tokens one by one. This is how material learned from encyclopedia prose enters the tweet experiment. The word-vector method is the earlier work the paper cites from Mikolov and colleagues. Distributed Representations of Words and Phrases and their Compositionality

If the lookup succeeds, the position receives the vector for the entry. If it fails, that position receives an all-zero vector of the same width. The zero vector is a practical way to keep the numerical input well formed. It gives all failed lookups the same representation. An unknown abbreviation and an unknown interjection can occupy different positions in the sequence, but their vectors alone give the classifier no basis for telling which string was present at either position. Evidence from neighboring items can still make the whole tweet classifiable.

The paper describes the size of the tweet input with a product.

n × m

Here n is the maximum number of word positions allotted to the tweet. The symbol m represents the width of each word vector, measured in numerical coordinates. The multiplication sign × combines the number of positions with the number of coordinates assigned to each position. The product gives the total dimension of the tweet input. The ordering of the positions matters because it preserves the order of the items presented to the classifier.

The authors use the following dimensions.

72 × 200 = 14400

The assumed maximum tweet length is 72 words. Each learned word vector has 200 dimensions. The sign × multiplies those quantities, and the sign = equates their product with 14400, the stated number of coordinates in the input for a tweet. The formula describes the size of the representation. The paper specifies how an unknown vocabulary item is encoded, while the rules for filling unused positions in shorter tweets or handling a sequence longer than the assumed maximum receive no comparable detail.

Normalization can affect what occupies those positions in several ways. A dictionary replacement can let the system look up a known word in place of an unknown one. Removing a suffix can give it a base form while dropping a distinction in the original. Expanding a slang expression or an emoji description can insert more tokens and change the context of the tokens on either side. These are consequences of preparing an ordered numerical input. The paper leaves open how frequently each kind of change occurred in the evaluated tweets.

Learn the relationship between text and label

The authors used Python and Theano to implement the classifiers. A convolutional neural network, or CNN, can look for patterns across nearby positions. A learned detector can respond to a useful local configuration of word features wherever it occurs in the text. A long short-term memory network, or LSTM, reads the positions in sequence and maintains a state that is updated as it goes. Information retained in that state can influence how later parts of the tweet are processed.

Both approaches offer plausible ways to exploit the representation. A short expression may be recognizable through neighboring words. A longer message can require keeping track of information introduced earlier. Those examples explain the general difference between the classifier families. The particular configurations are specified at the level of the input, output, software, and architecture names. The paper gives no account of the individual features learned by the convolutional network or the information retained by the recurrent state on particular tweets.

Training connects a tweet's numerical representation to the decision a person assigned it. The labeled examples can teach the network patterns associated with positive language, but training also rewards distinctions such as recognizing an advertisement or a post outside the targeted varieties. The format gives each label the same role as a possible output. It does not impose a first-stage decision about message type followed by a separate polarity decision. The classifier learns to choose among the alternatives in the common label set.

To evaluate the systems with a small labeled collection, the authors use cross-validation. This divides the available data into groups, called folds, that take turns providing held-out examples. Their setting is as follows.

k = 10

The symbol k denotes the number of folds, and = specifies its value as 10. For each test rotation, one fold is used to check predictions, while the other 9 groups supply training material. In another rotation a different group is held out. The authors state that they average the test accuracies to obtain the final accuracy for a configuration. The procedure lets the limited set of labeled examples contribute to testing as well as training across separate rotations.

Experiments and results

What counted as a correct prediction

The target in the evaluation is the human-assigned label for the entire tweet. A prediction is accurate when it matches that label. A correct guess of ADV is counted under the same metric as a correct guess of POS. This makes accuracy a measure of agreement on the classification problem the authors defined, which includes categories for material outside the polarity task. The reported result has to be read against that full inventory.

Of the 4,000 tweets described in the annotation section, 1,005 were assigned to the polarity categories, a share the authors describe as about 25%. They report 569 neutral items. The remaining polarity assignments were divided roughly evenly between positive and negative, according to their description. These figures concern the manually labeled collection. Within that collection the opportunities to get a neutral tweet right were more numerous than those for either of the two directional categories individually.

The score can reflect success on any part of this mixture. A classifier may be effective at recognizing the wording of sales offers, and those correct decisions help its overall accuracy. It might also make frequent errors on short, negative replies. The aggregate can accommodate both patterns. Since the paper gives no accuracy measure restricted to polarity-labeled tweets, it supplies no separate score for distinguishing approval, disapproval, and neutrality on those items alone.

There is another distinction involving questions that illustrate different classes. The tweet asking how to register has a neutral label. The advice title serves as an example of informational content. Correct classification can therefore require learning different decisions for two texts that are both related to finding out how to do something. The paper's metric considers the assigned category decisive. It gives no partial credit for correctly recognizing an aspect of the text when the predicted category differs from the annotator's.

The configurations and their reported accuracy

The CNN with normalization disabled is the common internal point of comparison. The paper gives another CNN run with the normalizer in use, and it gives an LSTM run with normalization disabled. These configurations allow the reader to see how the reported result changes with the normalization setting within the CNN family and how the classifiers rank when described as running without normalization. There is no result for an LSTM with the normalizer enabled.

Accuracy by classifier and normalization setting on Indonesian tweet cross-validation

The LSTM without normalization leads the reported configurations, and the CNN with normalization scores lowest.

Accuracy by classifier and normalization setting on Indonesian tweet cross-validationCNN without normalization: 69.92CNN without normalization69.92CNN with normalization: 65.45CNN with normalization65.45LSTM without normalization (this paper): 73.22LSTM without normalization (this paper)73.22
The numbers
System or settingaccuracy %
CNN without normalization69.92
CNN with normalization65.45
LSTM without normalization (this paper)73.22

For the full-label cross-validation task, the results table gives the unnormalized LSTM 73.22% accuracy. The abstract and conclusion state the score for this configuration as 73.2%. The CNN without the normalizer is reported at 69.92% accuracy on the task. The CNN with the normalizer is reported at 65.45%. The ordering places the best result among the runs with the normalizer off, while the paper's experiment with turning it on is confined to the CNN.

The study gives no majority-label baseline on the tweet collection. Such a baseline would assign the same frequent label to every test tweet and show how much accuracy can come from the distribution alone. There is also no result for a frequency-based classifier trained and tested on these labels. The paper's discussion of earlier classifiers and methods for collecting training data helps explain the research context. Its reported configurations provide the direct comparisons available for this experiment.

The authors describe their system as a potential starting point for subsequent Indonesian research. In that sense, the study provides a baseline built from word vectors and a neural classifier on a concrete annotation task. How informative the figure would be for another system would depend on matching the evaluation, including the kinds of tweets selected and the decisions counted as correct. A published accuracy from another set of tweets provides a result for that other task and collection procedure.

How to read the other columns

Alongside accuracy, the results table has columns labeled Matched, Sentences, and STD. The CNN without the normalizer has 3,440 under Matched and 4,920 under Sentences. The CNN with the normalizer has 2,898 under Matched and 4,428 under Sentences. The LSTM without the normalizer has 3,440 under Matched and 4,428 under Sentences. The natural reading of the first heading is a count of decisions that matched the labels. The paper leaves the accounting for these counts and sentence totals unspecified.

Those entries create an important ambiguity. The two runs that compare the CNN with and without the normalizer have different totals under Sentences. So do the two runs that compare architecture with normalization off. The Sentences totals in all configurations also differ from the stated size of the manually labeled collection. The paper does not explain whether the table counts evaluation items, a different unit produced by processing, or some other set of records. The reported values give too little information to establish that a comparison used identical held-out tweets in each configuration.

The paper's stated evaluation procedure is to compute accuracy on each held-out group and average the resulting scores. Conceptually, an average across groups gives each group a contribution to the reported result. Pooling decisions before calculating accuracy gives each included decision a contribution. The two ways of summarizing results answer related questions, and their relationship depends on the group sizes and on what enters the counts. The table offers neither the individual fold scores nor a definition linking its sentence counts to the averaging procedure. Quoting its accuracy column directly preserves the reported result without assuming a relationship among the columns.

Under STD, the table gives 1.87 for the CNN without the normalizer, 2.12 for the CNN with it, and 1.39 for the LSTM without it. In context, this column indicates a spread associated with each setting's accuracy, although the table leaves the calculation implicit. The LSTM row combines the highest reported accuracy with the smallest entry in that column. The individual test results and a statistical comparison are absent. The table therefore leaves open how consistently one configuration scored above another across test rotations and what the spread represents beyond the reported summary.

Assistance with the labeling work

The authors report an observation from using the system themselves. When their annotator was given its output as a starting point, the work went faster than labeling directly. A suggestion can turn the task of generating a category into one of checking the fit of a proposed category. For a straightforward example, confirming a suitable label can require little intervention. An ambiguous message still calls for the reader to consider the alternatives and can require correcting the suggestion.

This observation concerns a setting where someone reads the tweet and can exercise judgment on every decision. It is consistent with the authors' separate assessment that accuracy was insufficient for many practical applications. The practical value of a suggested label can depend on the work it saves, even if an unchecked prediction would make too many errors for a particular use. The paper gives no annotation times or comparison of final annotation quality. Its evidence here is the authors' observation of their annotator's workflow.

The distinction also explains why the supervision problem remains central after the system is trained. The initial labels both define the output and make training possible. Suggested labels can then be used while producing further data, with the annotator still responsible for resolving uncertainty. The reported experience identifies a possible use for the classifier inside that process. The cross-validation experiment measures agreement with existing labels, while the observation concerns the effort required to produce labels with assistance.

What the ablations show

The CNN comparison changes the whole normalization package

The paper compares the CNN with and without the normalizer as a package. It gives no ablations that turn the individual rewrite rules, slang dictionary, or emoji conversion on and off separately. On the full-label cross-validation task, the reported accuracy moves from 69.92% in the CNN setting without the normalizer to 65.45% in the setting with it. The authors interpret this as a failure of their normalizer, at its current stage, to raise accuracy. They suggest that the limited inventory of informal words may partly explain the outcome.

That explanation identifies a mechanism worth distinguishing from other possible effects. Slang absent from both the dictionary and the embedding vocabulary can still become a zero vector after the normalizer runs. A dictionary with wider coverage could give such items recognizable representations. The paper reports the size of the dictionary, but it leaves unmeasured how many held-out tweets contain a listed item, how many replacements find a vector, and how often those changes alter a decision. Those measurements would be needed to connect coverage directly to accuracy.

The rewrites also change material that may already contain usable clues. Shortening hahahahah keeps a conventional sign of laughter and discards its duration in characters. Replacing an informal expression with a standard phrase can give the classifier more familiar words while changing their positions and their immediate neighbors. If a feature relevant to a decision lies in the spelling, in the compact expression, or in how it abuts nearby words, the rewrite may remove that feature. These are consequences of the design. The paper gives no error breakdown that shows which of them occurred in the evaluated decisions.

The emoji treatment creates another possible effect. A sign that would otherwise lack a word vector can contribute translated words through the normalizer. Those words can introduce a recognizable description whose connection with the label depends on context. The normalized CNN result combines any such effects with changes from spelling rules and the informal-word dictionary. A reader cannot assign the reported change in accuracy to the emoji procedure on the basis of the aggregate score.

There is also uncertainty about which cases contributed to the comparison. The difference in reported sentence totals leaves the alignment of the CNN evaluation inputs unclear. The scores establish where the two configurations rank in the paper. Attributing the lower one to the package itself would require knowing how the same evaluation examples were handled across the runs. Attributing it to a particular component would further require a comparison that changes that component while the rest of the system remains fixed.

An architecture comparison with the normalizer off

With normalization off, the LSTM's reported accuracy of 73.22% is higher than the CNN's 69.92%. This identifies the LSTM setting as the strongest of those evaluated. It gives no direct evidence about the mechanism behind that ranking. For example, the recurrent state might offer a useful way to account for a cue early in the tweet when reading a later phrase. A claim that this ability explains the result would need performance on examples that test it. The paper gives aggregate scores, with no matching analysis of such cases.

The same issue applies to the labels. The LSTM could gain through better decisions about message types, distinctions within the polarity subset, or a combination. A breakdown by class could help separate those possibilities. Example-level comparisons could also show how often the classifiers agree and where each makes a distinct error. The paper supplies neither form of evidence. The sentence counts also leave the alignment of the held-out comparisons unresolved.

The effect of normalization on the LSTM remains open. A rewrite that expands a token into a phrase can create a different local pattern for a CNN and alter the sequence through which the LSTM updates its state. The normalized CNN's score gives evidence about the reported CNN setting only. The best LSTM score comes from the setting without the normalizer, and the experiment leaves the other combination untested.

The linguistic analyses elsewhere in the paper describe ambiguity, slang, repetition, and wordplay in enough detail to explain why these comparisons matter. They are analyses of the text and of the annotation problem. The paper gives no evidence tying particular examples to specific classifier errors. Consequently, the most precise conclusion from the comparisons is the reported ordering of settings, together with the authors' hypothesis about limited dictionary coverage and the experimental questions it leaves open.

Limitations

Limits the authors identify

The authors explicitly identify the amount of data they could label as a constraint. The public stream yielded much more material than the team could annotate. Cross-validation makes use of the labeled collection through repeated rotations of the held-out group. The underlying supervision still comes from the hand-assigned labels. For rare forms and difficult kinds of messages, collecting more unannotated text addresses only the first part of the work.

They also describe problems that arose during annotation. Missing context can obscure what a reaction refers to. Ambiguity can make several readings plausible even when the words are familiar. New slang introduces cases in which the reader first has to establish what an expression means. These difficulties affect the reference labels the classifier is evaluated against. The study's assumption of a major sentiment in an eligible tweet gives the annotator a task that can be completed with a single label. It still leaves judgments about which sentiment is major and what to do when the message is elliptical.

The authors identify the normalizer's limited informal vocabulary and propose making the dictionary larger. They also suggest analyzing the errors made by the normalization rules. The two proposals address different questions. A larger dictionary can offer replacements for more expressions. Checking errors can reveal whether a rewrite that already exists is appropriate in the contexts where it is used. The paper reports the current pipeline and its score. It leaves the effects of those proposed improvements for future work.

Dedicated handling of emoticons is also a future direction. The authors had included emoji in the feature preparation they describe, and they planned to make use of emoticons as well. They also propose adding the Indonesian sentiment lexicon Barasa. The paper describes that resource as drawing on WordNet Bahasa and SentiWordNet. It would offer a source of sentiment information beyond the word representations learned from Wikipedia. The lexicon was proposed for future use, with no evaluation on the tweet task reported here. SentiWordNet 3.0

The authors also want to take more account of sentence structure. They refer to linguistic work on distinguishing which sense of a word is active and recognizing expressions whose meaning depends on several words together. Both are relevant to examples from the paper. A familiar word can be used as a playful abbreviation with a different meaning. Separate words in a slang expansion may express an idea only when interpreted as a group. The problems correspond to word-sense disambiguation and multiword expressions.

Negation and question words are additional cues mentioned in that discussion. A negation can change the force of an evaluation, while a question word may help identify the purpose of a message. To pursue more structured features, the authors discuss using an Indonesian tagger that marks word categories and exploring the Indonesian Resource Grammar. They present these as possible extensions to the completed system. The proposed use of a tagger concerns part-of-speech tagging.

The conclusion raises possible cross-lingual extensions using a multilingual resource. The paper presents the Indonesian score as comparable to results from English and Japanese, but it gives no shared evaluation or transfer experiment to establish how the approach would work across languages. Its empirical result concerns the Indonesian tweet task. The authors' assessment of practical readiness is likewise bounded. They considered the system insufficient for many applications and described assistance with annotation as a use they had found feasible in their own work.

Limits apparent from the design and reporting

The study begins with tweets carrying a particular language code during a particular collection period. It then uses a subset small enough for the authors to label. The selection procedure is described in terms of available resources, with no detailed sampling rule. That leaves uncertainty about how well the labeled items represent even the larger stream the authors collected. The study gives no held-out collection from a later period or different source. Its evaluation addresses the reported task and data, leaving generalization to other kinds of Indonesian writing open.

The dialect and language choices narrow what a correct prediction establishes. For tweets in regional languages outside the scope of the polarity categories, a correct FOR decision can show that the system agrees with the study's language boundary. It does not establish that the system can recognize the sentiment expressed in those languages. For a retweet, the correct class can record that a message was forwarded, while leaving the attitude of either the original writer or the person sharing it unspecified. These are consequences of what the labels represent.

Likewise, taking a whole tweet as the unit of sentiment limits what can be recovered. The assumption of a dominant sentiment discards the separate targets in an example that praises a product and criticizes its price. For an application concerned with opinions of the product and opinions of its pricing, those distinctions are central. A single predicted label provides no way to extract them. The score evaluates the simplified output the authors defined and gives no estimate for an analysis in which several judgments within a tweet are recorded.

The annotation examples explain the categories but leave uncertainty at their overlapping edges. An advertisement might contain a testimonial, a quotation might circulate as a retweet, and a question may carry an attitude recognizable only in its exchange. The paper gives no measure of how consistently independent readers would choose the same labels. Nor does it give a complete adjudication procedure for disagreements. As a result, matching a reference label counts as success, while the consistency with which that label would be reproduced by another reader remains unknown.

The distribution reported for the polarity subset makes category-level evaluation particularly relevant. An aggregate score supplies an overall measure of performance on the task, but the study gives no breakdown showing which classes are easier to recognize. A confusion matrix could distinguish, for example, errors that exchange NEU and INF from errors that exchange POS and NEG. Those have different implications for a reader interested in message sorting or in polarity alone. Neither those individual confusions nor a score for each class can be read from the reported accuracy.

The sentence counts create an additional constraint on interpretation. The total stated for manual labeling differs from each sentence total in the results, and the tested configurations do not all have the same total. The paper's description of cross-validation specifies how the training and test roles should rotate, while the results table leaves its accounting unresolved. A reader cannot verify the match between the annotated dataset and the scored items or determine whether a comparison is paired on the same held-out examples. That matters for claims about the cause of a difference between two reported accuracies.

Several details would also be needed to reproduce the result closely. The paper specifies the word-vector source and width, the input dimensions, the output labels, and the names of the software and classifier families. It provides examples and patterns for normalization. The exact classifier configurations, training choices, fold assignments, and handling of tweet lengths around the assumed maximum are given less detail. These gaps affect replication at different stages. A choice about sequence length changes the input, while a choice about training can change how a classifier uses that input.

The embedding lookup imposes limits even if those details are supplied. The vectors are learned from encyclopedia text, while the target data contain expressive spellings, cross-language blends, and particular conventions of a social platform. Unknown tokens become indistinguishable in their numerical representation at the lookup step. Known tokens can also be used in senses that differ from their usual roles in the source corpus. The paper supplies examples that motivate both concerns, with no measured vocabulary coverage or error results organized by form, source language, or register.

Finally, the report of faster labeling leaves both the scale of the gain and its effect on label quality unspecified. A proposed category can save effort when it gives the annotator a suitable starting point. It can also draw attention to one reading of an uncertain post before the annotator has considered the others. Those possibilities follow from the use of suggestions, and the paper observes only faster work in its own setting. The available evidence supports that observation, while a general estimate of annotation speed or consistency would require a measured comparison.

What came after

The 2021 Bengali sentiment study takes up the broad task of classifying sentiment in another language and names a transformer approach in its title. Its citation places the Indonesian experiment among earlier work relevant to that task. The aspect of continuity visible from the two studies is the effort to build a sentiment classifier for a particular language. The Bengali title identifies an architecture different from the convolutional and recurrent approaches evaluated for Indonesian. It leaves the precise use of the Indonesian label scheme, text preparation, and evaluation unspecified. Sentiment Analysis for Bengali

CANDLE, from 2026, cites the study in work on Arabic text. Its title makes noisy-character deduplication the principal task and identifies a CTC-based method with a lightweight encoder. The connection is to one operation inside the Indonesian pipeline. The earlier system shortened stretches of repeated characters so that some informal forms could be represented through a conventional spelling. CANDLE's subject puts the treatment of noisy repetitions at the center of the investigation. The citation establishes the relevance of the earlier work to that topic. It gives no details about whether CANDLE adopts the Indonesian rules or tests its procedure against them. CANDLE

The later works therefore connect to different questions raised by the study. The Bengali paper continues work on sentiment as the output of classification. The Arabic paper addresses a problem that arose on the input side, where repeated characters can make a written form difficult to process. The cited works establish those connections in topic. The available accounts leave open whether either work directly reused the resources or procedure of the Indonesian experiment.

Cite

Cite as Tuan Anh Le, David Moeljadi, Yasuhide Miura and Tomoko Ohkuma. 2016. Sentiment Analysis for Low Resource Languages: A Study on Informal Indonesian Tweets. Proceedings of the 12th Workshop on Asian Language Resources (ALR12).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{le2016sentiment,
  title = {{Sentiment Analysis for Low Resource Languages: A Study on Informal Indonesian Tweets}},
  author = {Tuan Anh Le, David Moeljadi, Yasuhide Miura and Tomoko Ohkuma},
  booktitle = {Proceedings of the 12th Workshop on Asian Language Resources (ALR12)},
  year = {2016},
  url = {https://aclanthology.org/W16-5415/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/le-2016-sentiment-analysis-low-resource-languages/