File size: 4,274 Bytes
5b6f681 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | {
"ui": {
"title": "🤖 Transformer Sentiment Analysis",
"subtitle": "Análisis de Sentimientos con DistilBERT",
"theme": {
"primaryColor": "#667eea",
"secondaryColor": "#764ba2",
"successColor": "#28a745",
"dangerColor": "#dc3545",
"warningColor": "#ffc107",
"infoColor": "#17a2b8"
},
"features": {
"showProbabilities": true,
"showBatchAnalysis": true,
"showModelSelection": true,
"showMetrics": true,
"showArchitecture": true,
"animationsEnabled": true
}
},
"api": {
"baseUrl": "http://127.0.0.1:8000",
"timeout": 10000,
"retries": 3,
"endpoints": {
"health": "/health",
"predict": "/predict",
"predictBatch": "/predict/batch",
"predictProbs": "/predict/probabilities",
"modelInfo": "/model/info"
}
},
"demo": {
"exampleTexts": [
"I absolutely love this movie! The acting was incredible and the story was captivating.",
"This product is terrible. Worst purchase I've ever made.",
"The service was okay, nothing special but not bad either.",
"Amazing experience! Highly recommend to everyone.",
"Completely disappointed with the quality. Not worth the money."
],
"batchExamples": [
"This is an amazing product!",
"I hate waiting in long lines.",
"The weather is nice today.",
"Terrible customer service experience.",
"Great value for money!"
],
"mockData": {
"enabled": true,
"confidence": {
"min": 0.6,
"max": 0.95
},
"positiveWords": ["good", "great", "excellent", "amazing", "love", "wonderful", "fantastic", "awesome", "perfect", "brilliant"],
"negativeWords": ["bad", "terrible", "awful", "hate", "horrible", "worst", "disappointing", "poor", "disgusting", "trash"]
}
},
"charts": {
"colors": {
"positive": "#28a745",
"negative": "#dc3545",
"neutral": "#6c757d"
},
"animations": {
"duration": 1000,
"easing": "easeInOutQuart"
}
},
"limits": {
"maxTextLength": 1000,
"maxBatchSize": 10,
"minTextLength": 5
},
"messages": {
"errors": {
"apiUnavailable": "🔌 API no disponible. Usando modo demo.",
"textTooShort": "El texto debe tener al menos 5 caracteres.",
"textTooLong": "El texto es demasiado largo (máximo 1000 caracteres).",
"batchTooLarge": "Máximo 10 textos permitidos por lote.",
"networkError": "Error de conexión. Por favor, intenta de nuevo.",
"invalidResponse": "Respuesta inválida del servidor."
},
"success": {
"analysisComplete": "✅ Análisis completado exitosamente",
"batchComplete": "✅ Análisis por lotes completado",
"modelSwitched": "✅ Modelo cambiado exitosamente"
},
"loading": {
"analyzing": "🔍 Analizando texto...",
"loadingModel": "🤖 Cargando modelo...",
"processing": "⚡ Procesando..."
}
},
"metrics": {
"model": {
"name": "DistilBERT",
"parameters": "66.9M",
"layers": 6,
"accuracy": 0.74,
"f1Score": 0.73,
"trainingTime": "45 min"
},
"training": {
"dataset": "IMDB Movie Reviews",
"samples": 25000,
"epochs": 3,
"batchSize": 16,
"learningRate": 0.00002
}
},
"architecture": {
"components": [
{
"name": "Tokenizer",
"description": "Convierte texto en tokens",
"input": "Texto crudo",
"output": "Token IDs"
},
{
"name": "DistilBERT",
"description": "Modelo transformer pre-entrenado",
"input": "Token IDs",
"output": "Embeddings contextuales"
},
{
"name": "Classifier Head",
"description": "Capa de clasificación final",
"input": "Embeddings",
"output": "Logits de sentimiento"
},
{
"name": "Softmax",
"description": "Convierte logits a probabilidades",
"input": "Logits",
"output": "Probabilidades [0,1]"
}
]
},
"development": {
"debug": false,
"mockApiDelay": 1000,
"logLevel": "info",
"features": {
"devTools": false,
"performanceMonitoring": true
}
}
} |