Sentiment Analysis Using Aligned Word Embeddings for Uralic Languages
Paper · 2023 · Khalid Alnajjar, Mika Hämäläinen and Jack Rueter
Summary
A language can have a dictionary, books and tools for analyzing words while still lacking the labeled examples needed to train a sentiment classifier. The authors investigate that situation for Erzya, Moksha, Komi-Zyrian and Udmurt. They ask whether a classifier trained to recognize positive and negative sentiment in English can make the same distinction in these languages. Their approach uses Finnish as a bridge. English supplies the training labels, while Finnish supplies word representations and a route into the endangered languages through bilingual dictionaries. The study is an experiment in transferring sentiment analysis through word embeddings.
The procedure starts by copying Finnish word vectors to their dictionary equivalents in each endangered language. The authors then adapt the copied vectors using text in the language they represent. Next, they align the resulting vector spaces so that the word representations can be passed through a common sentence encoder. This encoder learns from English examples of sentence similarity. A separate classifier learns to assign positive or negative labels from English sentiment data. At evaluation time, the classifier receives representations built from Finnish or endangered-language sentences.
For that evaluation, the authors use translations of the same books. They label 35 negative and 33 positive Finnish sentences, use the alignment between the books to locate their counterparts, and check manually that the sentiment carries across the translations. On the resulting literary test, accuracy is 0.75 for Finnish, 0.69 for Erzya, 0.63 for Moksha, 0.63 for Udmurt and 0.56 for Komi-Zyrian. The English accuracy of 0.76 comes from the training splits of the English sentiment corpora. It measures performance on a different body of text under different evaluation conditions.
The study demonstrates that a classifier can make sentiment predictions in all the target languages without using their sentiment labels for training. The results also show how uneven that transfer can be. Erzya performs best among the endangered languages, although its augmented dictionary has the fewest translation entries in that group. The experiment evaluates the full procedure on a small selection of parallel literary sentences, so the results leave open which stages contributed most and how well the procedure would work on other texts. The authors make the sentiment corpus and trained resources available through Zenodo.
Deep dive: Sentiment Analysis Using Aligned Word Embeddings for Uralic Languages
The paper tests whether Finnish dictionaries and aligned word embeddings can transfer English sentiment classification to endangered Uralic languages. · about 32 minutes to read
The problem and its context
Working with the resources a language has
A supervised sentiment classifier needs examples that connect stretches of text to judgments about the attitude they express. The specific judgment studied here is polarity. The classifier assigns a positive or a negative label to a sentence. If labeled sentences exist for English, an English classifier can learn that task directly. Applying the same approach separately to Erzya, Moksha, Komi-Zyrian and Udmurt would require sentiment examples in each language. The paper starts from the availability of a different kind of supervision: dictionaries that connect these languages to Finnish.
The authors describe the four languages as definitely endangered under the classification they cite. Their account of resource scarcity covers the quality of the text as well as its quantity. A collection assembled from available sources can contain differences in spelling, variation in how fluently the texts were written, and inconsistencies in character encoding. These problems matter for a system that learns word representations from recurring patterns. If a word appears in several written guises, each guise can receive less evidence. If the collection is small to begin with, the representation of less frequent words and forms is especially dependent on how the text is prepared. The paper treats these as practical conditions of work on low-resource languages.
Its account also identifies resources that already existed. The languages have finite-state tools for analyzing word forms and constraint grammars distributed through the Giella repositories. The paper points to annotated syntactic collections for the languages other than Udmurt, as well as earlier neural work on disambiguation and morphology for some of them. It singles out Erzya for additional tools that include a translation system, a wav2vec speech resource and a Stanza pipeline. The landscape is uneven across languages and tasks. An annotated grammatical resource can help a system analyze an Erzya sentence while leaving open the question of who will supply its sentiment label. The syntactic resources cited by the authors include Universal Dependencies treebanks.
The experiment uses that uneven distribution of resources. Dictionaries supply lexical connections. Finite-state analysis helps bring the words in a book into the form used by a dictionary. Parallel books supply connected sentences for adapting the representations and for constructing the evaluation. English sentiment collections provide examples of the decision the classifier has to make. Each resource answers a different part of the training problem. Treating them as distinct also makes the phrase “without target-language sentiment training” precise. The target languages contribute lexical information and text. Their judgments of positive and negative sentiment are reserved for evaluation.
Why transfer passes through Finnish
A bilingual dictionary tells the system that words across languages can correspond. A word vector supplies a different kind of information. Its numerical coordinates represent patterns learned from the contexts in which a word appears, and the relationships among vectors make it possible to compare words. The paper notes that these relationships can be used to study similarity, analogies and groups of related words. The immediate interest here is whether a representation of a Finnish word can give a dictionary equivalent in another language a useful starting position.
English and Finnish play different roles because the authors have different resources for them. English provides the labeled sentiment collections and the sentence similarity examples used for training. Existing Finnish vectors come from newspaper text, and Finnish is the language paired with the endangered languages in the dictionaries used by the authors. A classifier that learned directly from English word vectors would still need a way to interpret an input sentence assembled from the other vocabularies. A link from the endangered languages to Finnish and a link from Finnish to English give the authors a route for cross-lingual transfer.
Using Finnish as a bridge raises a geometric problem. A vector learned from Finnish text has coordinates whose interpretation comes from the Finnish training process. An independently learned English vector has coordinates whose interpretation comes from the English training process. Even where the words are dictionary equivalents, their coordinates need a common frame before the same downstream computation can use them. For the endangered languages, copying vectors gives them a Finnish starting point, but the subsequent adaptation to their own text can change those vectors. Alignment is a distinct stage because the whole procedure depends on making these representations compatible after they have been prepared.
Earlier approaches to transferring a task
The related work describes ways to share representations across languages without reproducing a full set of labels in each target language. One sentiment study extracted multilingual features and fed them to a bidirectional recurrent classifier. Another used multilingual BERT to classify sentiment in French after training with English, Italian, Spanish and German. These examples show two ways in which multilingual representations had already supported sentiment classification. The Uralic study asks what can be done when the main cross-language resources it can draw on are dictionaries and established word vectors.
The paper also describes earlier work that compared different ways of assigning multiple sentiment labels. In that comparison, RAkEL performed best under the setting that used raw tokens as input. The Uralic study instead defines its output as positive or negative and places its main design effort before the final classification stage. Its question is how to build a representation that an English-trained classifier can use for another language. The authors also cite an assessment of lexicon-based sentiment analysis that questions its suitability for the task in spite of its practical availability for endangered languages. The dictionaries in this study provide translation relationships. The positive and negative supervision enters through the English sentence labels.
The related work extends to other kinds of language analysis. In part-of-speech tagging, the paper describes an approach with a shared recurrent component and another component for language-specific information. Auxiliary training objectives help the system learn both. In cross-language word representation, it describes work that learns transformations in both directions between vector spaces. That approach uses a measure of how unlike the distributions are and a penalty for failing to recover a representation after a trip through the two transformations. Those examples give different meanings to the idea of sharing information across languages. A system can learn shared features inside the task architecture, or it can learn to map existing lexical representations into a space that a downstream task can use.
The authors also discuss SixT+, a translation system whose training combines multilingual pretraining and subsequent adaptation. They describe a system that handles 100 source languages in many-to-English translation, with parallel training data in six languages. The example illustrates the gap between the languages that supply direct training material and the languages a trained system is intended to handle. Its task and resources differ from those of the sentiment experiment. The pretrained representation used in that translation work comes from Unsupervised Cross-lingual Representation Learning at Scale.
The most immediate precedents for the Uralic procedure concern the dictionary itself and the use of dictionary pairs as alignment evidence. The authors draw on an earlier approach to aligning vector spaces and on graph-based dictionary augmentation. Augmentation proposes additional relationships between entries, giving the procedure more possible correspondences than the base dictionaries alone supply. The paper cites earlier work on this kind of lexical resource development, including Enhancing the Erzya-Moksha dictionary automatically with link prediction.
The method, step by step
What travels from English to another language
The authors prepare word representations first, build a sentence representation from them, and train a classifier on top of that. For a target-language sentence, the procedure looks up target-language words and uses their aligned vectors to construct the input to the shared English-trained components. English supplies examples for learning how to represent whole sentences and how to label their sentiment. The dictionaries give the target words a path into the representation those components expect.
There are two senses in which the authors use translation. The first is lexical. They attach a Finnish vector to a corresponding target-language lemma. The second concerns the books, whose sentences already have translated counterparts and have been aligned across languages. The transfer procedure classifies a sentence from its own aligned word vectors. It does not generate a Finnish or English translation of that sentence as an intermediate classification input. The translated books are a data resource for adaptation and for locating comparable examples at evaluation time.
Preparing representations and transferring sentiment from English
The steps in order.
Preparing the books and the existing word vectors
The text used for the Uralic languages comes from the books Finland yesterday and now and Pavlik Morozov. Finnish, Erzya, Moksha, Komi-Zyrian and Udmurt are the languages in which both are available. The Research Unit for Volgaic Languages at the University of Turku aligned their sentences across languages. In this part of the procedure, alignment means locating the stretches of text that correspond in the parallel books. It gives the authors a way to find the Udmurt, Erzya or other counterpart of a Finnish sentence. Vector alignment, which happens later, means mapping numerical representations.
The authors process the books with finite-state tools available through UralicNLP. For present purposes, the important output is a lemma, the form under which a word is grouped for dictionary lookup. An inflected form from a book can then be represented by the vector associated with its lemma. The authors motivate this by the size of the available collections. Requiring a separate well-supported vector for every inflected form would demand more text. Using a common entry lets observations of different forms support the same lexical representation, a use of lemmatization.
This choice brings the text into line with both of the existing sets of vectors. Training for the English resource used lemmatized text drawn from the February 2017 dump of English Wikipedia and the fifth edition of Gigaword. The Finnish vectors from the Language Bank of Finland were trained on lemmatized newspaper text. The connection between the Finnish dictionaries and the Finnish vectors depends on being able to look up corresponding vocabulary items, so having them organized around lemmas is relevant to the first transfer step as well as to the later processing of sentences.
The English and Finnish resources have different vector lengths. The English embeddings start with 300 dimensions per word, and the Finnish embeddings have 100. The authors use principal component analysis, or PCA, to reduce the English vectors to 100 dimensions. PCA expresses the vectors in directions selected for the variation they capture and retains a shorter representation. The reduction gives the two sets of vectors a common length. The bilingual alignment has a separate job. It uses lexical correspondences to establish how the coordinates in one space should be related to those in the other.
The order matters for interpreting the role of English. The experiment uses an existing English lexical resource and changes its dimensionality before the cross-language alignment. The English Wikipedia and Gigaword texts are the origins of the starting vectors. They are distinct from the English sentence pairs used to learn sentence representations and from the sentiment-labeled datasets used to train the classifier. The final procedure therefore draws on English data for several purposes, with different resources supplying the evidence at each stage.
Building target-language word representations
For each endangered language, the authors begin with a GiellaLT dictionary that connects it to Finnish. They add translations predicted with graph-based methods through Ve’rdd. A dictionary of this kind can be viewed as a collection of lexical links. Adding predicted links increases the set of potential correspondences that the procedure can use to associate target-language lemmas with Finnish entries. The paper reports the existing and predicted entries separately, making it possible to see how much the augmentation contributed to the inventory in each language.
For Komi-Zyrian, the dictionary counts are 10,983 base translations and 14,421 predictions, with 25,404 entries in the reported total. For Moksha, the corresponding counts are 36,235 and 3903, with a reported total of 40,138. Erzya has 18,056 base translations and 5018 predictions, with a reported total of 23,074. Udmurt has 36,502 base translations and 6966 predictions, with a reported total of 43,468. These figures count translation entries. Words can appear in more than one entry, and an entry is useful for copying a vector only when the relevant Finnish lemma is available in the vector vocabulary.
The authors create a target-language vocabulary by taking the Finnish vectors and substituting the corresponding target lemma for the Finnish label. A Finnish entry without a translation in the target language supplies no vector for that language. The copied vector gives the target lemma an initial position already informed by co-occurrence patterns in Finnish. At this point, that position comes from the Finnish source word. The stage that incorporates evidence about how the target lemma behaves in target-language sentences follows afterwards.
The paper reports 7,908 initial vectors for Komi-Zyrian, 10,338 for Moksha, 7,535 for Erzya and 9,505 for Udmurt. This count is a more direct description of the starting embedding vocabulary than the dictionary totals. A dictionary can contain an expression that spans several words while the necessary vector vocabulary consists of entries for individual lexical items. The authors point to this kind of mismatch as one reason the dictionary inventory is larger than the resulting vector inventory. The reported procedure does not specify which vectors are kept or combined in every case where a target lemma has multiple Finnish equivalents.
The distinction between a translated entry and a usable vector continues into sentiment classification. The first answers which target-language word might correspond to a Finnish one. The second determines whether there is a numerical input for the sentence encoder to use. A dictionary prediction can add a promising link and still have no effect on an evaluated sentence if the corresponding lemma never occurs in it. Conversely, a usable vector for a word that carries much of a sentence’s sentiment may matter more to classification than many vectors for words that contribute little to the decision. The paper counts entries and vectors without attaching a sentiment value to either.
Updating the vectors from the books
The authors use the lemmatized book texts to adapt the Finnish vectors and the vectors created for the endangered languages. During fine-tuning, the word representations are adjusted according to the words found near them. The procedure also allows words observed in the text to enter the vocabulary. The reported context window is 5, and the reported minimum count for vocabulary inclusion is 5. The window concerns which neighboring occurrences supply training context. The minimum count concerns whether a candidate word is frequent enough to be included.
This is where the method can adjust an inherited representation using evidence from the language to which it has been assigned. The Finnish source vector encodes the contexts observed for a Finnish word in the original source material. A target-language translation will now receive training evidence from occurrences in the target-language books. Because this stage uses the running text and its word co-occurrences, a sentence can contribute to adapting the vocabulary without supplying an explicit positive or negative label. The supervision required for the sentiment decision enters later and comes from English.
After this stage, the paper reports 10,396 vocabulary entries for Komi-Zyrian, 11,877 for Moksha, 9,030 for Erzya and 11,080 for Udmurt. Each reported vocabulary is larger than its counterpart at initialization. Those counts describe which lexical entries are represented after adaptation. They do not indicate whether the positions of copied vectors moved far or little, how good the newly added vectors were, or what share of the sentiment test could be encoded before and after the update. The vocabulary expansion is visible; its independent effect on sentiment is unmeasured.
Finnish is adapted from the books too. It therefore enters the subsequent alignment as a representation that has been exposed both to the source newspaper text and to the Finnish book material. For the endangered languages, the books play a different role. Their vectors started as copies of Finnish entries and can now reflect local co-occurrence evidence. The language-specific updates give the authors a reason to align again after adaptation, even for vectors that initially shared a coordinate system through copying.
Aligning the spaces with bilingual examples
The authors use supervised alignment, where supervision comes from paired dictionary entries. For Finnish and English, the training resources include a Finnish–English dictionary derived from the March 2023 English Wiktionary dump and Finnish–English dictionaries distributed with MUSE. For the endangered languages and Finnish, the authors use the XML dictionaries. The reported procedure aligns Finnish with English first and then aligns the endangered-language vectors with Finnish. The bilingual pairs serve as anchors that identify which lexical representations should correspond across the spaces.
To test the alignments, the paper holds back 20% of the data from Wiktionary and XML. This split is a division of dictionary data. It does not refer to the distribution of sentiment labels, the fraction of book sentences used for classification, or a held-out English sentiment test. The refinement settings also differ by alignment: 20 iterations for Finnish with English and 5 for each endangered language with Finnish. The paper identifies the alignment approach as MUSE, associated with Word Translation Without Parallel Data.
The dictionary pairing is what gives the shared vector coordinates their intended cross-language meaning. If a Finnish word and an English word are translations, their aligned vectors should be useful as comparable input to later computations. The subsequent alignment uses corresponding evidence from the endangered-language dictionaries. The design relies on these relationships being regular enough that a mapping learned from the bilingual pairs can place other vectors usefully as well. A dictionary link supplies evidence about a lexical relationship. Whether the resulting sentence representation preserves the cues needed for sentiment remains an empirical question.
The authors report a special case involving English negation. Stopword removal in the English word resource had excluded no and not. The authors add a training correspondence from not to nt in the Finnish–English alignment data, and report mapping occurrences of the absent forms to nt during the later stages. The intervention shows that entries with major consequences for sentence meaning can disappear through preprocessing. It provides a representation for the forms the authors identify. The paper gives no separate evaluation of sentences affected by the mapping or of how it interacts with wider patterns of negation.
Learning to represent a sentence
The next stage assembles the vectors for the words in an input sentence. An individual vector represents a word or lemma. The sentiment label belongs to the sentence as a whole. The authors begin by averaging the vectors, producing a single vector with the same dimensionality as its inputs. In compact notation, the averaging operation they describe is:
μ = (∑ᵢ∈I vᵢ) ÷ |I|
Here μ is the average vector. I is the set of positions whose word vectors enter the average, and i is an individual position in that set. The sign ∈ means that the position belongs to I. The term vᵢ is the vector at position i, and ∑ adds those vectors coordinate by coordinate. The vertical bars in |I| denote the number of included positions. The division sign ÷ divides every coordinate of the sum by that count, and = identifies the resulting vector as the mean. The parentheses group the sum before division.
The average gives the encoder an input of the same size for sentences of different lengths. Its value is determined by which vectors participate and how frequently they participate. Rearranging the same vectors leaves the average identical. This property is important for understanding what the later layers can learn. They can transform the information preserved in the mean, including recurring combinations of lexical cues. Word order and the position of a word relative to a negator are unavailable once the vectors have been reduced to that mean.
The authors pass the average through two fully connected feed-forward layers. A fully connected layer can use every coordinate of its input when computing an output coordinate. The resulting architecture is a Deep Averaging Network, or DAN. Training it on English sentence pairs from the STS Benchmark gives the sentence representations a similarity objective. At this stage the supervision concerns how close in meaning sentences are. The positive and negative labels used by the classifier are supplied separately. The similarity benchmark is associated with SemEval-2017 Task 1 on Semantic Textual Similarity.
The paper uses SBERT as its sentence embedding training method and specifies a DAN as the architecture that builds the representations from the averaged words. The distinction matters for tracking the transfer mechanism. A target sentence enters this encoder through its dictionary-derived and aligned vectors. The preparation of these vectors is what allows the authors to apply the same sentence transformation across languages. The cited method is Sentence-BERT.
Putting the similarity stage between word alignment and sentiment training gives the procedure two levels of learning. The encoder learns a transformation of lexical averages from judgments about sentence meaning. The classifier learns which properties of those sentence representations are associated with positive or negative English sentences. A translation dictionary is used before either task reaches a target sentence. It gives the procedure lexical comparability while the training data supply the two separate sentence-level objectives.
Training and reusing the sentiment classifier
The classifier takes the sentence embedding as input and produces a polarity label. The authors train it from English positive and negative annotations in the Amazon Reviews Dataset, the Yelp Dataset and the Stanford Sentiment Treebank.
The classifier has three fully connected layers, with 300 neurons in each hidden layer. The authors report 121,202 trainable parameters and a schedule of three epochs for classifier training. An epoch is a pass through the training data. Before the final classification layer, the authors apply dropout, a training operation that temporarily suppresses some activations to reduce overfitting. The paper cites Dropout: A Simple Way to Prevent Neural Networks from Overfitting.
At application time, a Finnish or endangered-language sentence contributes vectors in the aligned representation. These go through the averaging and sentence transformation, and the classifier assigns a label to the resulting sentence vector. The target-language sentiment annotations are used to check the outcome. The authors neither train a separate classifier for each of the endangered languages nor supply examples of labeled sentiment in those languages to the shared classifier. The same decision procedure is evaluated against several different inputs, each dependent on the resources used to create and align its word vectors.
The method thus specifies where each kind of evidence enters. A dictionary can influence which vectors exist and how their spaces are aligned. The books can influence which vocabulary entries receive text evidence and how the corresponding vectors are adjusted. English similarity data shape the sentence encoder, and English sentiment labels shape its downstream classification. The target ratings enter at the end of that chain as the standard against which the predictions are checked.
Experiments and results
A shared test built from parallel books
The underlying book collections are small and differ in size across languages. The Finnish corpus contains 43k tokens in 3.1k sentences. Erzya has 50k tokens in 3.6k sentences, and Moksha has 51k tokens in 3.4k sentences. The Komi-Zyrian corpus has 50k tokens in 3.3k sentences, while the Udmurt corpus has 53k tokens in 3.6k sentences. These are counts for the book texts. The sentiment annotations cover a much smaller selection within them.
The authors start with Finnish, assigning negative labels to 35 sentences and positive labels to 33. They use the existing sentence alignments to project those judgments to the corresponding text in the other languages. They then manually verify that the counterparts express the same sentiment. The evaluation is built around the resulting 68 sentiment-annotated sentences and their aligned versions. Projection reduces the need to select and label an unrelated test independently for each language. Manual verification checks the particular property the classifier is supposed to recover, even when different wording is used to express it.
Using counterparts from the same books makes the target-language comparisons more informative than a comparison based on unrelated sets of sentences. The evaluations share a source of sentence content and a procedure for choosing the polarity labels. Each version can still differ in the words used, the forms supplied to the vocabulary, and how explicitly the sentiment is expressed. It is the underlying test material that is shared through alignment. The form of the input to the classifier remains language-specific.
There are two kinds of reference for interpreting the experiment. The Finnish result indicates how the transfer procedure works for the intermediate language, which already has pretrained vectors and substantial bilingual resources for connecting to English. The English result describes the classifier on the in-domain training splits of the sentiment corpora. The paper reports neither a dictionary-only classifier nor a translation-based comparator run on the same book test. The observed scores are therefore comparisons across language inputs to the proposed procedure, without a competing system on those inputs.
Which decisions the metrics count
Accuracy is the share of evaluated sentences assigned their recorded label. The paper also reports precision, recall and F1 for negative and positive separately. For a given label, precision asks how often the classifier is right when it predicts that label. Recall asks how many sentences annotated with that label it retrieves. F1 is the harmonic mean of those two quantities, which favors a result in which both are strong. The label-level figures help distinguish failures to retrieve a polarity from unreliable use of a polarity in predictions.
These distinctions matter when two language versions have the same overall accuracy. Correct predictions can be distributed differently across the positive and negative sentences. A classifier can also have similar recall for both labels and different precision because its positive and negative predictions have different rates of false matches. Reading the scores by label identifies how the reported performance is distributed, even though it cannot establish which words or sentence constructions caused the errors. The paper’s evaluation reports those distributions alongside accuracy.
Accuracy across the Uralic languages
Sentiment classification accuracy on the aligned Uralic book test
Finnish leads the comparison, with Erzya strongest among the endangered languages.
The numbers
| System or setting | accuracy |
|---|---|
| Finnish (this paper) | 0.75 |
| Erzya | 0.69 |
| Moksha | 0.63 |
| Udmurt | 0.63 |
| Komi-Zyrian | 0.56 |
Finnish achieves 0.75 accuracy on the book test. The authors highlight that it is close to the reported English accuracy of 0.76, in spite of the lack of Finnish sentiment labels in training. They relate the result to the available translation resources for the English–Finnish link. The comparison establishes that Finnish transfer worked to that degree on the selected literary material. English was scored on the sentiment corpora’s training splits, so its score comes with different exposure and task material. The numerical proximity cannot establish that English and Finnish would have equal accuracy on the same held-out text.
Erzya leads the endangered-language group with 0.69 accuracy. It also has the strongest reported F1 for both polarities within that group, at 0.70 for negative and 0.68 for positive. Its recall is 0.69 for each label. The finding therefore goes beyond the overall ranking. On the selected Erzya material, the strongest endangered-language result appears in both class-level F1 scores, with similar recovery of the repeated sentiment labels across the aligned examples.
Komi-Zyrian has the lowest accuracy at 0.56. Its negative precision and recall are both 0.57, and its positive precision and recall are both 0.55. The F1 scores follow the same values. The difficulty appears on both classes, so a description limited to positive or negative sentiment would miss part of the result. Neither class reaches the corresponding score of the other endangered languages on the reported precision, recall or F1. The authors identify Komi-Zyrian as the case with the most room for improvement.
Moksha and Udmurt both score 0.63 on overall accuracy, while their class-level figures differ. Moksha has negative F1 of 0.64 and positive F1 of 0.63. Udmurt has negative F1 of 0.66 and positive F1 of 0.60. Their equal accuracy therefore describes only their overall share of correct decisions. If the comparison focuses on the reliability of decisions about a particular polarity, Moksha and Udmurt present different profiles.
What the individual labels add
Positive sentiment F1 on the endangered-language book test
Erzya has the strongest positive F1, and Moksha leads Udmurt despite their tied accuracy.
The numbers
| System or setting | F1 |
|---|---|
| Erzya (this paper) | 0.68 |
| Moksha | 0.63 |
| Udmurt | 0.60 |
| Komi-Zyrian | 0.55 |
Udmurt shows the most pronounced separation between its reported positive and negative precision. Its recall is 0.63 for each label. The precision for negative predictions is 0.69, and the precision for positive predictions is 0.58. The classifier thus identifies the same reported share of each class among the sentences that belong to it, but its positive predictions are less reliable than its negative predictions. The paper does not identify the individual Udmurt sentences driving the pattern, so the difference describes the outcomes without locating a cause in the vocabulary or in the wording.
Moksha’s class-level measurements are about as close as its F1 values suggest. Negative precision is 0.63 and recall is 0.65. Positive precision is 0.64 and recall is 0.62. Which polarity appears easier depends on the question asked of the metrics. The reported recall favors the negative sentences, while the reported precision is slightly higher for the positive predictions. With this information, the tie with Udmurt becomes a useful example of what accuracy can conceal about how prediction quality is distributed.
The measures for Finnish are 0.77 precision, 0.75 recall and 0.76 F1 for the negative class, and 0.73 precision, 0.75 recall and 0.74 F1 for the positive class. As with Udmurt, the reported recall is the same across labels and precision is higher for negative predictions. The Finnish scores come from its version of the shared book evaluation. They give a reference at the more successful end of the observed range while keeping the test conditions comparable to those of the endangered languages.
For the English training splits, negative precision is 0.77 and positive precision is 0.75. English recall is 0.76 for both labels, and English F1 is also reported at 0.76 for each. These numbers describe fit to the in-domain English training material. They are informative about the classifier’s source-language behavior under those conditions. Direct comparison of generalization in English and Uralic languages would require equivalent held-out data and evaluation conditions, which the paper does not report.
What the ablations show
The paper reports no component ablations. Its analyses consist of language-by-language results, polarity-specific scores, dictionary inventory counts and vocabulary counts before and after adaptation. The matched book material makes the language comparison informative, but changing languages changes several inputs at once. Each language has its own dictionary, vector vocabulary, co-occurrence evidence and rendering of the sentences. The comparison reveals where performance differs within the complete procedure.
Vocabulary size and sentiment accuracy
Erzya is a particularly revealing case for interpreting the resource counts. It has the smallest augmented translation inventory among the endangered languages, with a total of 23,074 entries, and the smallest vocabulary after adaptation, with 9,030 entries. Yet it leads that group in sentiment accuracy at 0.69. Komi-Zyrian has 10,396 entries after adaptation and reaches 0.56 accuracy. These observations show that a ranking by the final vocabulary count would give a different ordering from a ranking by sentiment scores. Vocabulary inventory alone does not tell a reader how well the words in the selected sentences are represented.
The point also applies to Udmurt and Moksha. Their dictionaries and final vocabularies differ in size, but their accuracies coincide at 0.63. The polarity-specific measurements then reveal differences within that tie. Counts of dictionary links and vocabulary items describe the opportunities for lexical coverage. Sentiment evaluation measures what happened after the represented words were transformed into sentence vectors and classified. The reported comparisons connect those stages only at the level of whole languages.
The dictionary figures do identify where graph-based predictions expanded the resource substantially. Komi-Zyrian, for instance, has more predicted entries than listed base translations. That observation measures the size of the intervention in the lexical resource. It does not show the direction or size of its effect on final accuracy, because the study gives no classification result for Komi-Zyrian with its base dictionary alone. The same issue applies to languages with fewer predicted entries. Their scores cannot be used to rank the value of augmentation without a comparison that holds the rest of the procedure fixed.
What adaptation and alignment were measured against
The before-and-after vocabulary counts show that adapting on the books expands each endangered-language vocabulary. They offer direct evidence about a change in the resources available to the classifier. There is no parallel set of sentiment results using only the copied vectors. The study therefore leaves open whether newly added words supplied important sentiment cues, whether changed positions of existing words helped, and whether both effects mattered. Even within a single language, those effects could appear in different subsets of sentences.
Similarly, the alignment procedure includes a held-out share of dictionary data, but the numerical results presented for the task are sentiment results. The paper gives no reported held-out alignment scores by language to compare with the classification table. That limits diagnosis. If a sentence is misclassified, the final score cannot distinguish a lexical translation mismatch from a representation that reached the expected area of the space and still gave the classifier a weak sentiment cue. The experiments establish the behavior of the combined procedure without locating the errors at the dictionary, vector or sentence stage.
The study does not isolate the sentence similarity training, the refinement settings, or the normalization of no and not. The effect of each may vary with the language and with the sentences selected for evaluation. The negation intervention, for instance, responds to a specific missing vocabulary item in English. The reported evaluation contains no subset that would show how the classifier behaved on sentences involving that intervention. Its presence describes the procedure more fully than the accuracy scores explain its value.
What is controlled by the evaluation design
Using parallel books gives the paper its clearest comparison. The sentences evaluated across the Uralic languages were selected through the same Finnish annotation process, and their counterparts were checked for sentiment consistency. This reduces a source of variation that would arise if favorable and unfavorable texts had been selected independently for each language. The differences that remain still combine the properties of the translated sentences and the properties of the representations that encode them.
The English-to-Finnish comparison answers a separate question about feasibility. The authors interpret the Finnish result as evidence that the procedure can work well where translation resources are available. That interpretation is consistent with the Finnish accuracy on the book material. It does not establish a causal relationship between an amount of translation data and a sentiment score, because the paper does not vary that amount while keeping the evaluation and language fixed. The language comparisons show that transfer can work at different levels of accuracy. They leave the proposed explanations for those levels to be tested independently.
Limitations
Limits the authors identify
The authors frame their approach around a resource constraint. The endangered languages in the study lack the volume of readily usable text that could support the same approach as a better-resourced language, and available text can have spelling and encoding inconsistencies. They use lemmatization to make the representation less dependent on how many surface forms appear often enough to receive training evidence. This is an explicit choice about what can be supported by the available books. It addresses lexical coverage while reducing what the downstream architecture receives about the original word forms.
The authors also identify practical limits in the lexical resources. Dictionary entries can include multiword expressions missing from the word vectors. That mismatch helps explain why a large translation inventory yields a smaller vector vocabulary. The loss of English negation words during stopword removal is a second example of a gap between vocabulary preparation and the requirements of sentiment classification. The nt mapping repairs the particular gap the paper identifies. Other questions about lexical coverage and the representation of negation remain outside that intervention.
The paper describes the sentiment corpus as small and singles out the Komi-Zyrian result as an area for improvement. Its broader conclusion stresses that a dictionary with a larger language can make neural sentiment transfer possible for an endangered language. The demonstrated setup uses more than the bilingual link in isolation. It also has pretrained lexical resources, tools that reduce inflected words to lemmas, text for adapting the word vectors, and English similarity and sentiment supervision. Their availability defines the conditions under which the paper demonstrates the approach.
Limits of the evaluation
The target-language evaluation comes from selected sentences in the same books. That choice makes cross-language comparison possible and keeps the task manageable. It also confines the observed accuracy to adapted representations and polarity judgments on a particular literary selection. The results do not establish performance on other authors, other genres, or sentences whose sentiment is less straightforward to place into the two categories. The test labels cover positive and negative examples. Neutral sentences, mixed judgments and finer differences in intensity have no measured outcome in this setup.
Annotation starts with Finnish and reaches the other languages by projection and verification. The manual check establishes that the authors inspected whether the sentiment carries over. The paper does not report independent sampling for each language or agreement measures for separately produced sentiment judgments. The test design consequently supports claims about sentiment that can be paired across these versions of the texts. It leaves open how the procedure would handle language-specific expressions of attitude on material chosen independently in each language.
The books also supply the text for adapting the vectors. The paper does not describe removing the evaluated sentences from that co-occurrence training. This matters because a transfer claim can concern two different forms of novelty. The positive and negative labels in the target languages are new to the classifier. The words and contexts in the book material may already have contributed to the representations on which it relies. An unannotated sentence can affect vector training without revealing its sentiment judgment. The reported experiment therefore demonstrates transfer without target-language sentiment training, while generalization to a wholly unseen target text remains unmeasured.
The size of the evaluation limits what the score ordering can settle. The paper reports point estimates for each language and label. It does not give uncertainty intervals or results from repeated selections of literary sentences or repeated training runs. The point estimates establish the ranking on the reported evaluation. They provide less evidence about whether closely placed results would preserve their ordering across different selections or training conditions. The Udmurt and Moksha tie, in particular, shows how the ranking also depends on what part of performance a reader chooses to measure.
The English result has an additional limit. It comes from the training portions of the English sentiment collections, whereas the Uralic scores come from the labeled book sentences. Both the material being classified and the role of that material in training differ. The English result can describe how the classifier performs on its source examples. The experiment cannot use it to quantify the cost of shifting from English into Finnish or an endangered language under equivalent conditions. That would require an evaluation design in which the English and Uralic sentences support that comparison.
Limits of the representation and the reporting
A mean of word vectors preserves information tied to the set of vector inputs and their frequency. It discards their order before the learned sentence layers receive them. Consequently, those layers cannot distinguish sentences that supply the same vectors in a different order. For sentiment, this gives a concrete meaning to the difference between representing the words in a sentence and representing how they work together. The presence of a negation vector can affect the mean. Its position and which part of the sentence it modifies are not explicit in that representation. How frequently such cases affect the reported test remains unknown.
Lemmatization trades some distinctions among word forms for improved access to a shared vocabulary entry. The paper motivates that trade through data scarcity. It does not measure which information about inflection was useful for sentiment classification on these sentences or how much of it the representation retains indirectly. Details such as how ambiguous dictionary correspondences are resolved, or how every missing word vector is handled when preparing a sentence, are also left unspecified. These omissions matter most when trying to understand why the classifier failed on a particular example or reproducing the precise treatment of those cases.
The classifier’s practical value relative to simpler or alternative transfer procedures is unmeasured on the aligned evaluation. The paper describes earlier lexicon-based and multilingual approaches, but the results table gives no comparison against them under the same conditions. Likewise, the results cannot identify the contribution of alignment apart from copying, of adaptation apart from the size of the dictionary, or of English sentence similarity training apart from sentiment supervision. Evidence that the entire system can produce target-language sentiment decisions supports the feasibility claim. Evidence that its components improve on alternatives would require a different set of comparisons.
Finally, the role of Finnish is specific to how the authors combine the available resources. In the study it is both a language with an established vector set and the dictionary partner through which the endangered languages are connected to English. The relative success of Finnish and Erzya is a result for this configuration and this evaluation. Applying the procedure elsewhere would depend on how a different language pair is linked, which words the vectors and dictionaries cover, and what texts are available for adaptation. The paper establishes an instance of the approach under concrete resource conditions, leaving its portability beyond those conditions open.
What came after
Later work adopting or extending the method is unconfirmed. The paper’s documented contribution ends with the English-to-Uralic transfer experiment and the release of the sentiment corpus and trained resources. Those resources preserve the aligned evaluation sentences and the results of the representation pipeline, while the experiment leaves open whether the same procedure would hold up on independent target-language texts and whether its dictionary, adaptation and alignment stages would contribute equally in other settings.
Cite
Cite as Khalid Alnajjar, Mika Hämäläinen and Jack Rueter. 2023. Sentiment Analysis Using Aligned Word Embeddings for Uralic Languages. Proceedings of the Second Workshop on Resources and Representations for Under-Resourced Languages and Domains (RESOURCEFUL-2023).
@inproceedings{alnajjar2023sentiment,
title = {{Sentiment Analysis Using Aligned Word Embeddings for Uralic Languages}},
author = {Khalid Alnajjar, Mika Hämäläinen and Jack Rueter},
booktitle = {Proceedings of the Second Workshop on Resources and Representations for Under-Resourced Languages and Domains (RESOURCEFUL-2023)},
year = {2023},
url = {https://aclanthology.org/2023.resourceful-1.3/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/alnajjar-2023-sentiment-analysis-aligned-word-embeddings/