xberg 1.0.4

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 98 formats and 306 programming languages via tree-sitter code intelligence with async/sync APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Document translation post-processor implementation.
//!
//! Translates `ExtractedDocument::content`, optionally `formatted_content`, and
//! each `Chunk::content` into the language requested by
//! [`TranslationConfig::target_lang`](crate::core::config::TranslationConfig).
//!
//! Triggered by [`ExtractionConfig::translation`](crate::core::config::ExtractionConfig::translation);
//! invoked by the Middle-stage post-processor in
//! [`crate::plugins::processor::builtin::translation`].

pub mod llm;

pub use llm::translate_result;