Skip to content
HALOWERK

Textwerk

contradiction detect

English only. The document is split into sentences; candidate pairs share at least one content word (Snowball stop words removed) and are ranked by the number of shared content words, at most max_pairs (default 100). Each candidate pair is scored in both directions with cross-encoder/nli-deberta-v3-xsmall (Apache-2.0; DeBERTa-v3-xsmall, MIT; trained on SNLI, CC BY-SA 4.0, and MultiNLI; model card: SNLI test accuracy 91.64 %, MNLI mismatched 87.77 %), run locally from the fp32 ONNX export of.

POST https://text.halowerk.com/v1/contradiction-detect

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
textstringYes
thresholdnumberNo
max_pairsintegerNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "threshold": {
      "type": "number",
      "minimum": 0.5,
      "maximum": 0.99,
      "default": 0.8
    },
    "max_pairs": {
      "type": "integer",
      "minimum": 1,
      "maximum": 150,
      "default": 100
    }
  }
}

Open original schema

Published input example

{
  "text": "The warranty period is two years. Returns are accepted within 30 days. The warranty period is five years."
}

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 →