Skip to content

Commit 3f3f840

Browse files
committed
modify docstring LaTeX
1 parent 872a887 commit 3f3f840

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/metrax/nlp_metrics.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)