fivetech commited on
Commit
afced34
·
verified ·
1 Parent(s): e1483b6

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +11 -3
index.html CHANGED
@@ -1246,10 +1246,18 @@ async function runEvaluation() {
1246
  return /^NINGUNA/i.test(v) ? '' : v;
1247
  };
1248
  const relations = grab('RELACIONES');
 
 
 
 
 
 
 
 
1249
  const extra = {
1250
- contradicciones: grab('CONTRADICCIONES'),
1251
- falacias: grab('FALACIAS'),
1252
- sinJustificar: grab('SIN_JUSTIFICAR'),
1253
  };
1254
  const usable = blocks.filter(blockUsable);
1255
  doneNote(note, usable.length ? `Evaluaci\u00f3n completada (${usable.length} agentes).` : 'Evaluaci\u00f3n no disponible: salida del modelo no utilizable.');
 
1246
  return /^NINGUNA/i.test(v) ? '' : v;
1247
  };
1248
  const relations = grab('RELACIONES');
1249
+ // Descarta eco de formato y relaciones sueltas presentadas como detecci\u00f3n:
1250
+ // "Ada contradice a Bruno" no prueba contradicci\u00f3n, falacia ni afirmaci\u00f3n sin justificar.
1251
+ const cleanExtra = (v) => {
1252
+ if (!v) return '';
1253
+ if (/(AGENTE|RELACIONES|CONTRADICCIONES|FALACIA\w*|SIN_JUSTIFICAR)\s*:/i.test(v)) return '';
1254
+ if (/^\s*[A-Za-z\u00c0-\u00ff]+\s+(apoya|contradice)\s+a\s+[A-Za-z\u00c0-\u00ff]+\s*\.?\s*$/i.test(v)) return '';
1255
+ return v;
1256
+ };
1257
  const extra = {
1258
+ contradicciones: cleanExtra(grab('CONTRADICCIONES')),
1259
+ falacias: cleanExtra(grab('FALACIAS')),
1260
+ sinJustificar: cleanExtra(grab('SIN_JUSTIFICAR')),
1261
  };
1262
  const usable = blocks.filter(blockUsable);
1263
  doneNote(note, usable.length ? `Evaluaci\u00f3n completada (${usable.length} agentes).` : 'Evaluaci\u00f3n no disponible: salida del modelo no utilizable.');