Skip to content

Commit

Permalink
feat: add precision/recall to rouge hover
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudotexe committed Feb 21, 2024
1 parent 217d288 commit ef38be7
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions leaderboard/src/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,11 @@ function isMaximum(
)
}"
>
{{ datum.rouge.rouge1.fscore.toFixed(3) }}
<abbr
:title="`P: ${datum.rouge.rouge1.precision.toFixed(3)} / R: ${datum.rouge.rouge1.recall.toFixed(3)}`"
>
{{ datum.rouge.rouge1.fscore.toFixed(3) }}
</abbr>
</td>
<td
:class="{
Expand All @@ -329,7 +333,11 @@ function isMaximum(
)
}"
>
{{ datum.rouge.rouge2.fscore.toFixed(3) }}
<abbr
:title="`P: ${datum.rouge.rouge2.precision.toFixed(3)} / R: ${datum.rouge.rouge2.recall.toFixed(3)}`"
>
{{ datum.rouge.rouge2.fscore.toFixed(3) }}
</abbr>
</td>
<td
:class="{
Expand All @@ -339,7 +347,11 @@ function isMaximum(
)
}"
>
{{ datum.rouge.rougeL.fscore.toFixed(3) }}
<abbr
:title="`P: ${datum.rouge.rougeL.precision.toFixed(3)} / R: ${datum.rouge.rougeL.recall.toFixed(3)}`"
>
{{ datum.rouge.rougeL.fscore.toFixed(3) }}
</abbr>
</td>
<td :class="{ 'has-text-weight-bold': isMaximum(datum.bleurt, (d) => d.bleurt) }">
{{ datum.bleurt.toFixed(3) }}
Expand Down

0 comments on commit ef38be7

Please sign in to comment.