MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / extract_rouge_mid_statistics

Function extract_rouge_mid_statistics

seq2seq/utils.py:488–493  ·  view source on GitHub ↗
(dct)

Source from the content-addressed store, hash-verified

486
487
488def extract_rouge_mid_statistics(dct):
489 new_dict = {}
490 for k1, v1 in dct.items():
491 mid = v1.mid
492 new_dict[k1] = {stat: round(getattr(mid, stat), 4) for stat in ["precision", "recall", "fmeasure"]}
493 return new_dict
494
495
496def calculate_rouge(

Callers 1

calculate_rougeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected