Skip to main content

analyze_document_into

Function analyze_document_into 

Source
pub fn analyze_document_into(
    source: &str,
    buffers: &mut DocumentViewBuffers<'_>,
) -> Result<DocumentSummary, NlpContractError>
Expand description

Caller-buffered year-one analysis. Source cap is crate::nlp::budget::MAX_SOURCE_BYTES.

Required capacities: required_capacities. Retry: allocate at least those lengths and call again; this function does not resize. On error, buffers are left unchanged (all require_cap checks run before any write).