.evaluate#
- class tieval.evaluate.Span(start: int, end: int)#
Bases:
objectAn annotation span build to check if two entities overlap.
.metrics module#
- tieval.evaluate.metrics.temporal_awareness(prediction: Set[TLink], annotation: Set[TLink]) float#
Compute the temporal awareness of a system.
Temporal awareness is a f1 measure that takes into account the temporal closure of a system. For more information refer to the original paper.
- tieval.evaluate.metrics.temporal_precision(prediction: Set[TLink], annotation: Set[TLink]) Tuple[int, int]#
Compute precision by taking into account the temporal closure of the annotations.