Skip to main content

validate

Function validate 

Source
pub fn validate(
    schema: &ExtractionSchema,
    vocab: &BTreeMap<String, Vec<String>>,
    raw: &RawOutput,
    distributions: Distributions,
    option_logprobs: bool,
) -> Result<Vec<ValidatedField>, InvalidOutput>
Expand description

Validate the entire record before producing any field results. option_logprobs is the bound output capability, independently of the requested distribution mode.