Skip to main content

Crate xberg_gliner

Crate xberg_gliner 

Source
Expand description

Span-mode GLiNER ONNX inference.

This crate vendors the span-mode preprocessing and decoding path from the gline-rs project and replaces its pipeline wrapper with direct ort session management.

Re-exports§

pub use decode::Span;
pub use decode::SpanOutput;

Modules§

decode

Structs§

Gliner
GLiNER span-mode inference engine.
Gliner2
GLiNER2 schema-prompt inference engine.
Parameters
Processing parameters for GLiNER span-mode inference.
RuntimeConfig
ONNX Runtime session configuration.
TextInput
Raw text input and zero-shot entity labels.
Token
A word token with byte offsets in the source text.

Enums§

GlinerError
Errors returned by GLiNER preprocessing, inference, and decoding.

Constants§

INPUT_NAMES
GLiNER tensor input names expected by span-mode ONNX exports.
INPUT_NAMES_V2
GLiNER2 tensor input names expected by schema-prompt ONNX exports.
OUTPUT_NAMES
GLiNER tensor output names expected by span-mode ONNX exports.
OUTPUT_NAMES_V2
GLiNER2 tensor output names expected by schema-prompt ONNX exports.

Type Aliases§

Result
Result type used by xberg-gliner.