Hostname: page-component-74656f9884-7drmj Total loading time: 0 Render date: 2026-11-04T13:22:50.814Z Has data issue: false hasContentIssue false

Cross-Lingual Classification of Political Texts Using Multilingual Sentence Embeddings

Published online by Cambridge University Press:  26 January 2023

Hauke Licht*
Affiliation:
Cologne Center for Comparative Politics, Institute of Political Science and European Affairs, University of Cologne, Cologne, Germany. E-mail: hauke.licht@wiso.uni-koeln.de
*
Corresponding author Hauke Licht
Rights & Permissions [Opens in a new window]

Abstract

Established approaches to analyze multilingual text corpora require either a duplication of analysts’ efforts or high-quality machine translation (MT). In this paper, I argue that multilingual sentence embedding (MSE) is an attractive alternative approach to language-independent text representation. To support this argument, I evaluate MSE for cross-lingual supervised text classification. Specifically, I assess how reliably MSE-based classifiers detect manifesto sentences’ topics and positions compared to classifiers trained using bag-of-words representations of machine-translated texts, and how this depends on the amount of training data. These analyses show that when training data are relatively scarce (e.g., 20K or less-labeled sentences), MSE-based classifiers can be more reliable and are at least no less reliable than their MT-based counterparts. Furthermore, I examine how reliable MSE-based classifiers label sentences written in languages not in the training data, focusing on the task of discriminating sentences that discuss the issue of immigration from those that do not. This analysis shows that compared to the within-language classification benchmark, such “cross-lingual transfer” tends to result in fewer reliability losses when relying on the MSE instead of the MT approach. This study thus presents an important addition to the cross-lingual text analysis toolkit.

Information

Type
Article
Copyright
© The Author(s), 2023. Published by Cambridge University Press on behalf of the Society for Political Methodology
Figure 0

Table 1 Sentences in multilingual example corpus.

Figure 1

Figure 1 Schematic depiction of multilingual sentence embedding of example sentences in Table 1. Note: Depicting embedding in three dimensions serves illustrative purposes only.

Figure 2

Table 2 Representations of sentences in Table 1 after multilingual sentence embedding. Rows report sentences’ d-dimensional embedding vectors; columns report embedding dimensions.

Figure 3

Table 3 Description of data sources combined with primary data recorded in the Comparative Manifestos Project corpus (Volkens et al.2020).

Figure 4

Figure 2 Cross-class mean F1 scores of classifiers trained using different text representation approaches: bag-of-words obtained from machine-translated texts (MT+BoW) and multilingual sentence embeddings obtained from original texts (MSE). Panel (a) reports results for classifying manifesto sentences' positions; panel (b) for classifying their topic. Data plotted summarize 50 bootstrapped cross-class mean F1 scores (excluding the uncoded category) for five classifiers per task and approach. Points are averages of bootstrapped estimates, and vertical lines span the 95% most frequent values.

Figure 5

Figure 3 Cross-class mean F1 scores of classifiers trained using different text representation approaches as a function of training data size. Panel (a) reports results for classifying manifesto sentences' positions; panel (b) for classifying their topic. Data plotted summarize 50 bootstrapped estimates of the cross-class average F1 scores (excluding the uncoded category) of five classifiers per training data size, approach, and task. Points are averages of bootstrapped estimate, and vertical lines span the 95% most frequent values.

Figure 6

Figure 4 Results of cross-lingual transfer classification experiments conducted on the Lehmann and Zobel (2018) data. Box plots summarize F1 scores achieved by classifiers when evaluated on held-out quasi-sentences written in the language reported in the header of panel columns (the “target” language) by approach (x-axis values) and by whether the target language has been in the training data (“within language” evaluation) or not (“out of language” evaluation, i.e., cross-lingual transfer). Differences between the mean F1 score achieved in within-language (resp. out-of-language) evaluation (printed above box plot pairs) estimate the “reliability cost” of cross-lingual transfer.

Supplementary material: Link
Link
Supplementary material: PDF

Licht supplementary material

Licht supplementary material

Download Licht supplementary material(PDF)
PDF 366 KB