presidio-research
presidio-research copied to clipboard
Refactor evaluation to allow span based metrics
- Implement the compare_span function in Evaluator class which takes lists of annotated_span and predicted_span and then generates the evaluation output in numbers
- Implement the get_overlap_ratio function in Span class to calculate the overlapping ratio between annotated and predicted offsets.
- Add the unittest for those functions