anno_eval/lib.rs
1#![warn(missing_docs)]
2
3//! Evaluation tooling for `anno`.
4
5// `anno-eval` builds on the `anno` API surface and uses the same core types.
6//
7// Note: these are kept as crate-root exports to avoid massive churn inside the eval modules
8// (many files historically referenced `crate::{Error, Result, Model, ...}`).
9// They are hidden from docs because `anno-eval`'s public surface should primarily be `eval::*`.
10#[doc(hidden)]
11pub use anno::{
12 backends, DiscontinuousEntity, DiscontinuousNER, Entity, EntityCategory, EntityType, Error,
13 HeuristicNER, Model, Provenance, RegexNER, RelationExtractor, RelationTriple, Result,
14 StackedNER, DEFAULT_BERT_ONNX_MODEL, DEFAULT_GLINER_MODEL, DEFAULT_GLINER_MULTITASK_MODEL,
15 DEFAULT_GLINER_POLY_MODEL, DEFAULT_NUNER_MODEL, DEFAULT_W2NER_MODEL,
16};
17
18#[cfg(feature = "onnx")]
19#[doc(hidden)]
20pub use anno::{BertNEROnnx, GLiNEROnnx};
21
22#[cfg(feature = "candle")]
23#[doc(hidden)]
24pub use anno::{CandleNER, DEFAULT_CANDLE_MODEL, DEFAULT_GLINER_CANDLE_MODEL};
25
26// Some eval modules use `crate::discourse::*` when the `discourse` feature is enabled.
27#[cfg(feature = "discourse")]
28pub use anno::discourse;
29
30/// Shared helpers for the muxer-backed matrix sampler harness.
31#[cfg(feature = "eval")]
32pub mod muxer_harness;
33
34/// Persistent muxer selection history (shared by CI harness and tooling).
35#[cfg(feature = "eval")]
36pub mod muxer_history;
37
38#[path = "eval/mod.rs"]
39pub mod eval;
40
41/// Muxer-backed evaluation harness (shared by tests and tooling).
42#[cfg(feature = "eval")]
43#[path = "matrix_muxer_ci.rs"]
44pub mod muxer_matrix;
45
46/// Aggregate muxer decision/outcome logs.
47pub mod muxer_agg_lib;
48
49/// Cross-document coreference / clustering (CDCR).
50///
51/// This is re-exported at the crate root so downstream code (notably the CLI)
52/// doesn't need to import it from the `eval::*` namespace.
53pub mod cdcr {
54 pub use crate::eval::cdcr::*;
55}
56
57// Note: `muxer_matrix` contains its own `#[cfg(test)]` tests.