Arabic NER Offset Validator
Check Arabic named-entity annotations before training: offsets counted in the wrong unit, text that changed after annotation (NFC, NFKC, tatweel, line breaks, byte order marks), spans that cut a letter from its haraka or a clitic from its word, overlaps, nesting and BIO/BIOES/BILUO tag errors.
Everything runs in this page. The file you open or the text you paste is not uploaded or stored; closing the tab or pressing Clear discards it.
The Arabic text has not yet been reviewed by a native Arabic writer; the English governs.
Results
Open a file, paste annotations or pick an example, then press Validate.
Findings by code
| Code | What | Count |
|---|
The shareable report keeps only record ids, codes, offsets and counts, the validator version and a settings hash.
Records with errors or warnings
Suggested repairs (audit diff)
Offsets only, in the declared unit. Labels and text are never changed. The command-line tool can write a repaired copy with --apply-suggestions.
| Record | Span | Old → new | Reason | Confidence |
|---|
How it works
- Offsets are read in the unit you declare (code points, UTF-16 units, UTF-8 bytes or grapheme clusters) and checked against the text exactly as stored.
- When a span does not fit, the validator tries the other units and the usual changes to a text (NFC, NFKC, tatweel or diacritic removal, CRLF and LF, a byte order mark). If exactly one reading makes the span fit, it names it and suggests new offsets; if several readings disagree, the span stays an error with no suggestion.
- Span edges are checked for grapheme clusters (a letter and its harakat), words and tokens, the clitic policy, bidi and zero-width controls, whitespace and punctuation. Overlaps, nesting, labels and tag sequences are checked per record.
- This page runs a JavaScript port of the Python package; both give the same report on every test case.
Codes
| Code | Severity | What |
|---|