Re-exports§
pub use config::ExtractorConfig;pub use engine::Gliner2Engine;pub use backends::candle::CandleExtractor;pub use decode::Entity;pub use extract::BatchSchemaMode;pub use extract::ExtractOptions;pub use extract::batch_extract;pub use extract::extract_from_preprocessed;pub use extract::extract_with_schema;pub use preprocess::PreprocessedBatch;pub use preprocess::PreprocessedInput;pub use preprocess::TaskType;pub use preprocess::collate_preprocessed;pub use processor::SchemaTransformer;pub use schema::ExtractionMetadata;pub use schema::ParsedFieldSpec;pub use schema::RegexMatchMode;pub use schema::RegexValidator;pub use schema::Schema;pub use schema::StructureBuilder;pub use schema::ValueDtype;pub use schema::create_schema;pub use schema::infer_metadata_from_schema;pub use schema::parse_field_spec;
Modules§
- backends
- cli
- config
- decode
- engine
- Backend abstraction for tensor inference (
Gliner2Engine). Enablecandle(default) and/ortchfor concrete backends. - extract
- Multi-task extraction and
format_resultsaligned withgliner2.inference.engine. - preprocess
- Multi-task input formatting aligned with
gliner2.processor.SchemaTransformer(inference). - processor
- schema
- Python-aligned
Schemabuilder and extraction metadata (gliner2.inference.engine.Schema). - setup
- span_
utils - Shared CPU utilities for span index generation, used by both candle and tch backends.