Skip to main content
Use Tags to apply several independent yes/no labels to the same content. 1–120 tags per question (see Limits). Each tag returns a probability and a confidence (= 2|probability − 0.5|, the same decisiveness metric as yes/no: 0 at a coin-flip, 1 at certainty); when a tag has a threshold, it also returns applies. There is no document-level tags confidence — read each tag’s own.

Request

{
  "content": "Buy cheap followers now!!! click here -> bit.ly/deal",
  "question": {
    "id": "moderate",
    "kind": "tags",
    "tags": [
      {"id": "spam", "threshold": 0.5},
      {"id": "promotion"}
    ]
  }
}

Response

{
  "id": "moderate",
  "kind": "tags",
  "result": {
    "tags": [
      {"id": "spam", "probability": 0.95, "confidence": 0.90, "applies": true},
      {"id": "promotion", "probability": 0.88, "confidence": 0.76}
    ]
  },
  "meta": { "model": "levanto-sage-v0.5", "latency_ms": 241.0 }
}