File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 121121우선 Precision, Recall Metric들을 자연어 생성 분야에 적용하는 방법을 살펴보자. 이들은 자연어 생성 분야에서 다음과 같이 정의된다.
122122
123123$$
124- \begin{aligned} \text{precision} &= \frac{\text{#(\text{ correct words} )}}{\text{length of prediction}}\\ \text{recall} &= \frac{\text{#(\text{ correct words} )}}{\text{length of reference}}
124+ \begin{aligned} \text{precision} &= \frac{\text{\#( correct words)}}{\text{length of prediction}}\\ \text{recall} &= \frac{\text{\#( correct words)}}{\text{length of reference}}
125125\end{aligned}
126126$$
127127
@@ -137,7 +137,7 @@ Predicted: <span style="color:#1e81b0">Half</span> as <span style="color:#1e81b0
137137이때 precision과 recall은 다음과 같다.
138138
139139$$
140- \begin{aligned} \text{precision} &= \frac{\text{#(\text{ correct words} )}}{\text{length of prediction}} = \frac{7}{9} \fallingdotseq 78\% \\ \text{recall} &= \frac{\text{#(\text{ correct words} )}}{\text{length of reference}} = \frac{7}{10} = 70 \% \end{aligned}
140+ \begin{aligned} \text{precision} &= \frac{\text{\#( correct words)}}{\text{length of prediction}} = \frac{7}{9} \fallingdotseq 78\% \\ \text{recall} &= \frac{\text{\#( correct words)}}{\text{length of reference}} = \frac{7}{10} = 70 \% \end{aligned}
141141$$
142142
143143그리고 F1 Score는 다음과 같다.
You can’t perform that action at this time.
0 commit comments