THPDFTextEntityResult Record

StartCodeUnit is zero-based and CodeUnitLength counts UTF-16 code units in the request text

Category must be non-empty and Confidence must be finite and between zero and one

Invalid, below-threshold or geometry-free spans are dropped and counted in detection telemetry