File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -471,12 +471,15 @@ class RougeL(RougeBase):
471471
472472 For a single prediction P and reference R:
473473
474- - :math:`LCS(P, R)` = length of the Longest Common Subsequence
475- - :math:`\text{Recall}_{\text{LCS}} = \frac{LCS(P, R)}{|R|}`
476- - :math:`\text{Precision}_{\text{LCS}} = \frac{LCS(P, R)}{|P|}`
477- - :math:`F1_{\text{LCS}} = \frac{2 \cdot \text{Precision}_{\text{LCS}} \cdot
478- \text{Recall}_{\text{LCS}}}{\text{Precision}_{\text{LCS}} +
479- \text{Recall}_{\text{LCS}}}`
474+ .. math::
475+ LCS(P, R) = \text{length of the Longest Common Subsequence}
476+ .. math::
477+ \text{Recall}_{\text{LCS}} = \frac{LCS(P, R)}{|R|}
478+ .. math::
479+ \text{Precision}_{\text{LCS}} = \frac{LCS(P, R)}{|P|}
480+ .. math::
481+ \text{F1}_{\text{LCS}} = 2 \times \frac{\text{Precision} \times
482+ \text{Recall}}{\text{Precision} + \text{Recall}}
480483
481484 Final Macro-Averaged Metrics:
482485
You can’t perform that action at this time.
0 commit comments