Skip to main content

analyze_document

Function analyze_document 

Source
pub fn analyze_document(source: &str) -> DocumentAnalysis
Expand description

Cold Vec adapter. Same year-one pipeline as analyze_document_into.

Signature stays -> DocumentAnalysis for existing hosts. The pipeline runs once; buffers are sized from those layer lengths (no probe-by-error loop). Hosts and HTTP adapters must still call crate::nlp::budget::reject_source (or the 64 KiB Poet payload cap) before this entry — this adapter does not change the public error type.