Skip to main content

Module tagger

Module tagger 

Source
Expand description

SPO span tagger — runs the exported BERT token-classifier (spo.onnx) and BIO-decodes ENT / REL / QTY / GEO / TIME / IGNORE spans. Ported from src/ingest/spo/tagger.ts.

We use the tokenizers crate’s native char offsets + special-token mask instead of the TS manual ▁/## reconstruction — correct for any script (EN/JA/KO) and far less fragile.

Structs§

Span
SpoTagger