Skip to content
HALOWERK

Text Tools

corpus alignment grow diag final

Return deterministic grow-diag-final symmetrization of supplied word alignment links.

POST https://text.halowerk.com/v1/corpus-alignment-grow-diag-final

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
source_lengthintegerYes
target_lengthintegerYes
forwardarrayYes
backwardarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "source_length": {
      "type": "integer",
      "minimum": 1,
      "maximum": 128
    },
    "target_length": {
      "type": "integer",
      "minimum": 1,
      "maximum": 128
    },
    "forward": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 127
        },
        "maxItems": 2,
        "minItems": 2
      },
      "maxItems": 256,
      "minItems": 0
    },
    "backward": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 127
        },
        "maxItems": 2,
        "minItems": 2
      },
      "maxItems": 256,
      "minItems": 0
    }
  },
  "required": [
    "source_length",
    "target_length",
    "forward",
    "backward"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "source_length": 2,
  "target_length": 2,
  "forward": [
    [
      0,
      0
    ],
    [
      1,
      1
    ]
  ],
  "backward": [
    [
      0,
      0
    ],
    [
      1,
      1
    ]
  ]
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub →