FORMATO JSON — familia 'cls'
Devuelve solo un objeto JSON válido (sin bloques de código ni comentarios) que cumpla este JSON Schema:
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Multi-label text classification outputs","description":"Classifier outputs: the label set is written in full and the predicted labels carry *, so both the label space and the prediction are self-describing.","type":"object","properties":{"header":{"type":"object","properties":{"d":{"type":"string"},"l":{"type":"string"},"model":{"type":"string"},"k":{"type":"integer"}}},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"labels":{"type":"array","items":{"type":"string"}},"selected":{"type":"array","items":{"type":"integer","minimum":0},"description":"ascending 0-based indices of the selected elements of labels"},"conf":{"type":"number","minimum":0,"maximum":1},"rationale":{"type":"string"}},"required":["id","text","labels","selected","conf"]}}},"required":["header","messages"]}
