Hostname: page-component-74656f9884-rdgjk Total loading time: 0 Render date: 2026-11-07T04:57:18.309Z Has data issue: false hasContentIssue false

Negation detection for sentiment analysis: A case study in Spanish

Published online by Cambridge University Press:  07 July 2020

Salud María Jiménez-Zafra*
Affiliation:
SINAI, Centro de Estudios Avanzados en TIC (CEATIC), Universidad de Jaén, Spain
Noa P. Cruz-Díaz
Affiliation:
Centro de Excelencia de Inteligencia Artificial, Bankia, Madrid, Spain
Maite Taboada
Affiliation:
Discourse Processing Lab, Simon Fraser University, Burnaby, BC, Canada
María Teresa Martín-Valdivia
Affiliation:
SINAI, Centro de Estudios Avanzados en TIC (CEATIC), Universidad de Jaén, Spain
*
*Corresponding author. E-mail: sjzafra@ujaen.es
Rights & Permissions [Opens in a new window]

Abstract

Accurate negation identification is one of the most important tasks in the context of sentiment analysis. In order to correctly interpret the sentiment value of a particular expression, we need to identify whether it is in the scope of negation. While much of the work on negation detection has focused on English, we have seen recent developments that provide accurate identification of negation in other languages. In this paper, we provide an overview of negation detection systems and describe an implementation of a Spanish system for negation cue detection and scope identification. We apply this system to the sentiment analysis task, confirming also for Spanish that improvements can be gained from accurate negation detection. The paper contributes an implementation of negation detection for sentiment analysis in Spanish and a detailed error analysis. This is the first work in Spanish in which a machine learning negation processing system is applied to the sentiment analysis task. Existing methods have used negation rules that have not been assessed, perhaps because the first Spanish corpus annotated with negation for sentiment analysis has only recently become available.

Information

Type
Article
Copyright
© The Author(s), 2020. Published by Cambridge University Press
Figure 0

Table 1. Total annotated structures by type in the SFU Review$_{\text{SP}}$-NEG corpus. The word that makes the sentence belong to a particular structure is marked in bold

Figure 1

Table 2. Total and percentage of sentences by number of negations in the SFU Review$_{\text{SP}}$-NEG corpus. The negation cues of each sentence are marked in bold

Figure 2

Table 3. Total and percentage of negation cues by type in the SFU Review$_{\text{SP}}$-NEG corpus. The negation cues of each sentence are marked in bold

Figure 3

Table 4. Most frequent negation cues in the SFU Review$_{\text{SP}}$-NEG corpus. The negation cues of each sentence are marked in bold

Figure 4

Table 5. Total and percentage of scopes grouped by type in the SFU Review$_{\text{SP}}$-NEG corpus. The negation cues of each sentence are marked in bold

Figure 5

Table 6. Feature set for negation cue detection

Figure 6

Table 7. Feature set for scope identification

Figure 7

Table 8. Results for negation cue detection (Phase A) and scope identification (Phase B) on the SFU Review$_{\text{SP}}$-NEG corpus using 10-fold cross-validation (P = Precision, R = Recall, F1 = F-score)

Figure 8

Table 9. Results per class (positive and negative) on the SFU Review$_{\text{SP}}$-NEG corpus for sentiment analysis using SO-CAL without negation (Phase C—1), SO-CAL with built-in negation (Phase C—2) and SO-CAL with negation processing system (Phase C—3) (P = Precision, R = Recall, F1 = F-score)

Figure 9

Table 10. Total results on the SFU Review$_{\text{SP}}$-NEG corpus for sentiment analysis using SO-CAL without negation (Phase C—1), SO-CAL with built-in negation (Phase C—2) and SO-CAL with negation processing system (Phase C—3) (P = Precision, R = Recall, F1 = F-score)

Figure 10

Table 11. Error analysis of 224 sentences