Skip to main content
Classify reads the original file, or the stored text of a succeeded Parse job when you pass a parse_result source. A parse_result takes no page_ranges, no granularity: "page" and only the default parse mode. A spreadsheet Parse or a multi-page Parse saved without page markers is refused with invalid_request, so send the original document. Historical audio/video Parse results cannot start new processing. A Parse whose stored text is gone fails with result_expired. A single parse_result is usually not charged for parsing again.

Options

Result

result.units is one row per document, or per page when granularity is page. result.pages_read_fraction is the fraction of expected pages that entered at least one model prompt, from 0 to 1, for the whole job: 1.0 when every page was read; otherwise 1 − unread/expected. When every label in the unit has a DREX probability, confidence is that probability. A document label shared by several segments is the page-weighted mean of the probability recorded on each segment. Labels are ordered by page coverage. Confidence is per label, so a lower rank can carry a higher confidence. An abstained unit’s top label is that mean. Its runner-up labels carry DREX’s probability for that runner-up option, not a page share. When any other label in the unit lacks a DREX probability, every such label uses the share of the unit’s read pages or sheets assigned that class. Pages that never entered a prompt are excluded from that share and disclosed as classification_unread_pages.