Spaces:
Runtime error
Runtime error
File size: 1,152 Bytes
37eaffd 4be6457 482c2e9 194050b 482c2e9 37eaffd 4be6457 482c2e9 37eaffd 482c2e9 194050b 482c2e9 37eaffd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | """
tei-annotator: TEI XML annotation library using a two-stage LLM pipeline.
"""
from .inference.endpoint import EndpointCapability, EndpointConfig
from .models.schema import TEIAttribute, TEIElement, TEISchema
from .models.spans import ResolvedSpan, SpanDescriptor
from .pipeline import AnnotationResult, annotate, preload_gliner_model
from .tei import create_schema
from .evaluation import (
EvaluationSpan,
EvaluationResult,
ElementMetrics,
MatchMode,
SpanMatch,
aggregate,
compute_metrics,
evaluate_element,
evaluate_file,
extract_spans,
match_spans,
spans_from_xml_string,
)
__all__ = [
"annotate",
"AnnotationResult",
"preload_gliner_model",
"create_schema",
"TEISchema",
"TEIElement",
"TEIAttribute",
"SpanDescriptor",
"ResolvedSpan",
"EndpointConfig",
"EndpointCapability",
# evaluation
"EvaluationSpan",
"EvaluationResult",
"ElementMetrics",
"MatchMode",
"SpanMatch",
"aggregate",
"compute_metrics",
"evaluate_element",
"evaluate_file",
"extract_spans",
"match_spans",
"spans_from_xml_string",
]
|