text
stringlengths 0
204
|
---|
Creative Commons Attribution-NonCommercial 4.0 International |
You are free to: |
- Share — copy and redistribute the material in any medium or format |
- Adapt — remix, transform, and build upon the material |
Under the following terms: |
- Attribution — You must give appropriate credit. |
- NonCommercial — You may not use the material for commercial purposes. |
More info: https://creativecommons.org/licenses/by-nc/4.0/ |
Creative Commons Attribution 4.0 International |
You are free to: |
- Share — copy and redistribute the material in any medium or format |
- Adapt — remix, transform, and build upon the material for any purpose, even commercially. |
Under the following terms: |
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner. |
License: https://creativecommons.org/licenses/by/4.0/ |
Creative Commons Attribution-NonCommercial 4.0 International |
You are free to: |
- Share — copy and redistribute the material in any medium or format |
- Adapt — remix, transform, and build upon the material |
Under the following terms: |
- Attribution — You must give appropriate credit. |
- NonCommercial — You may not use the material for commercial purposes. |
More info: https://creativecommons.org/licenses/by-nc/4.0/ |
# GoEmotions_ES (Versión Pública) |
Este dataset es una versión traducida, corregida y adaptada de GoEmotions al español. |
Contiene ejemplos emocionalmente variados, curados manualmente para garantizar coherencia |
lingüística y cultural en español. |
## 🧠 Características |
- Traducción de emociones desde el original en inglés a español. |
- Corrección de frases para naturalidad en contexto hispano. |
- Etiquetas manuales como intención, energía, contexto y emociones básicas. |
## 📄 Estructura |
Cada ejemplo contiene: |
- `text`: texto original en inglés |
- `text_es`: traducción directa |
- `text_corregido`: versión final corregida en español |
- `metadatos`: contiene campos como intención, energía, tema contextual, etc. |
## ⚖️ Licencia |
Distribuido bajo la licencia **CC BY-NC 4.0** — uso no comercial permitido con atribución. |
## 📬 Contacto |
Para dudas, sugerencias o colaboración, contactar a través de: |
**Inspirado por el trabajo de Lucio-Rhapsody** |
import gradio as gr |
import json |
# Cargar subset de demo |
with open("goemotions_es_demo_subset.json", "r", encoding="utf-8") as f: |
data = json.load(f) |
def analizar_texto(texto): |
for entrada in data: |
if entrada["text_corregido"].strip().lower() == texto.strip().lower(): |
meta = entrada["metadatos"] |
return { |
"Texto": entrada["text_corregido"], |
"Intención": meta.get("intent", "N/A"), |
"Tema": meta.get("context_topic", "N/A"), |
"Emoción manual": meta.get("emotion_manual", "N/A"), |
"Nivel de energía": meta.get("energy_level", "N/A") |
} |
return {"Resultado": "Frase no encontrada en el demo."} |
demo = gr.Interface( |
fn=analizar_texto, |
inputs=gr.Textbox(label="Ingresa una frase del demo en español"), |
outputs="json", |
title="GoEmotions_ES Demo", |
description="Ingresa una frase para ver su análisis emocional según el dataset traducido de GoEmotions al español." |
) |
demo.launch() |
import json |
import datasets |
class GoEmotionsESConfig(datasets.BuilderConfig): |
def __init__(self, **kwargs): |
super(GoEmotionsESConfig, self).__init__(**kwargs) |
class GoEmotionsES(datasets.GeneratorBasedBuilder): |
BUILDER_CONFIGS = [ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.