Skip to content

Main content

CoNLL-U Range Token Boundary

Parse a CoNLL-U multiword-token range into positive inclusive word-ID endpoints without validating a sentence.

Loading tool…

Description

Parse a supplied CoNLL-U-style multiword range ID.

Language-processing records distinguish tokens, code points, UTF-16 positions and UTF-8 byte offsets. Tag grammars and local transition checks do not validate a full annotation sequence. Log-loss units determine perplexity conversion, while identifier suffixes may be textual labels rather than ordinary decimal numbers.

Parse a supplied CoNLL-U-style multiword range ID.

When to use this tool

Use CoNLL-U Range Token Boundary when you already have rangeToken and need to parse a supplied CoNLL-U-style multiword range ID.

How to use the tool and how it works

  1. Enter rangeToken. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read startId, endId, coveredWordCount. Use the output convention below.

Require two nonzero-leading positive decimal integers joined by one hyphen; both must be safe and end>start. Return endpoints and inclusive end-start+1 count.1

CoNLL-U multiword tokens use a range of word IDs. Parsing that range is separate from verifying its position and coverage within a complete sentence record.2

Input fieldMeaning and unitsAccepted input
rangeTokenPositive non-leading-zero word IDs separated by one hyphen; the end must exceed the start.Required. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
startIdStart IdRequired. Safe integer.
endIdEnd IdRequired. Safe integer.
coveredWordCountCovered Word CountRequired. Safe integer.
json
{
  "input": {
    "rangeToken": "3-5"
  },
  "output": {
    "startId": 3,
    "endId": 5,
    "coveredWordCount": 3
  }
}

Limitations and assumptions

  • A singleton range is rejected. No actual words, sentence bounds, overlaps, ordering or complete CoNLL-U record is validated.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Validate the complete corpus format, tokenizer, annotation sequence and scoring convention. Use a full parser or model evaluation when needed, preserving the exact offset unit, vocabulary and log base rather than inferring them from a local transformation.

References

  1. Calculation and input contract: computational-linguistics/conllu-range-token-boundary — tool.io

  2. CoNLL-U Format: Word, range and empty-node identifiers — Universal Dependencies

Similar or alternative tools