presidio-research icon indicating copy to clipboard operation
presidio-research copied to clipboard

Refactor evaluation to allow span based metrics

Open tranguyen221 opened this issue 2 years ago • 4 comments

  • 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

tranguyen221 avatar Jan 30 '23 15:01 tranguyen221