Enhancing Rhetorical Figure Annotation: An Ontology-Based Web Application with RAG Integration

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Kühn, Ramona, Mitrović, Jelena, Granitzer, Michael
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929637614944256
author Kühn, Ramona
Mitrović, Jelena
Granitzer, Michael
author_facet Kühn, Ramona
Mitrović, Jelena
Granitzer, Michael
contents Rhetorical figures play an important role in our communication. They are used to convey subtle, implicit meaning, or to emphasize statements. We notice them in hate speech, fake news, and propaganda. By improving the systems for computational detection of rhetorical figures, we can also improve tasks such as hate speech and fake news detection, sentiment analysis, opinion mining, or argument mining. Unfortunately, there is a lack of annotated data, as well as qualified annotators that would help us build large corpora to train machine learning models for the detection of rhetorical figures. The situation is particularly difficult in languages other than English, and for rhetorical figures other than metaphor, sarcasm, and irony. To overcome this issue, we develop a web application called "Find your Figure" that facilitates the identification and annotation of German rhetorical figures. The application is based on the German Rhetorical ontology GRhOOT which we have specially adapted for this purpose. In addition, we improve the user experience with Retrieval Augmented Generation (RAG). In this paper, we present the restructuring of the ontology, the development of the web application, and the built-in RAG pipeline. We also identify the optimal RAG settings for our application. Our approach is one of the first to practically use rhetorical ontologies in combination with RAG and shows promising results.
format Preprint
id arxiv_https___arxiv_org_abs_2412_13799
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Enhancing Rhetorical Figure Annotation: An Ontology-Based Web Application with RAG Integration
Kühn, Ramona
Mitrović, Jelena
Granitzer, Michael
Computation and Language
Artificial Intelligence
Rhetorical figures play an important role in our communication. They are used to convey subtle, implicit meaning, or to emphasize statements. We notice them in hate speech, fake news, and propaganda. By improving the systems for computational detection of rhetorical figures, we can also improve tasks such as hate speech and fake news detection, sentiment analysis, opinion mining, or argument mining. Unfortunately, there is a lack of annotated data, as well as qualified annotators that would help us build large corpora to train machine learning models for the detection of rhetorical figures. The situation is particularly difficult in languages other than English, and for rhetorical figures other than metaphor, sarcasm, and irony. To overcome this issue, we develop a web application called "Find your Figure" that facilitates the identification and annotation of German rhetorical figures. The application is based on the German Rhetorical ontology GRhOOT which we have specially adapted for this purpose. In addition, we improve the user experience with Retrieval Augmented Generation (RAG). In this paper, we present the restructuring of the ontology, the development of the web application, and the built-in RAG pipeline. We also identify the optimal RAG settings for our application. Our approach is one of the first to practically use rhetorical ontologies in combination with RAG and shows promising results.
title Enhancing Rhetorical Figure Annotation: An Ontology-Based Web Application with RAG Integration
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2412.13799