Skip to content
HALOWERK

Denkwerk

label noise detect

Builds TF-IDF vectors for up to 5000 labelled texts and, for each item, looks at its k nearest neighbours by cosine similarity. Items where at least the given share of neighbours agree on another label are reported with the suggested label, the agreement and the most similar neighbours, sorted by confidence. A lexical heuristic for review queues, not a ground-truth decision.

POST https://denk.halowerk.com/v1/label-noise-detect

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
itemsarrayYes
kintegerNo
min_agreementnumberNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "minItems": 4,
      "maxItems": 5000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "text",
          "label"
        ],
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 10000
          },
          "label": {
            "type": "string",
            "maxLength": 200
          }
        }
      }
    },
    "k": {
      "type": "integer",
      "minimum": 1,
      "maximum": 25,
      "default": 5
    },
    "min_agreement": {
      "type": "number",
      "minimum": 0.5,
      "maximum": 1,
      "default": 0.8
    }
  }
}

Open original schema

Published input example

{
  "k": 2,
  "items": [
    {
      "text": "refund my order please",
      "label": "billing"
    },
    {
      "text": "refund for order 12",
      "label": "billing"
    },
    {
      "text": "order refund missing",
      "label": "shipping"
    },
    {
      "text": "parcel not delivered yet",
      "label": "shipping"
    },
    {
      "text": "delivery delayed parcel",
      "label": "shipping"
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’