Skip to content

Commit

Permalink
Merge pull request fastai#3960 from kevinunger/fix-broken-links
Browse files Browse the repository at this point in the history
Fix acl links
  • Loading branch information
jph00 authored Sep 18, 2023
2 parents bcea19b + 21bd749 commit c3157c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastai/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def accumulate(self, learn):
c,t = self.get_correct_ngrams(pred, targ, i+1, max_n=self.vocab_sz)
if c == 0:
smooth_mteval *= 2
c = 1 / smooth_mteval # exp smoothing, method 3 from http://acl2014.org/acl2014/W14-33/pdf/W14-3346.pdf
c = 1 / smooth_mteval # exp smoothing, method 3 from https://aclanthology.org/W14-3346/
self.corrects[i] += c
self.counts[i] += t

Expand Down
2 changes: 1 addition & 1 deletion nbs/13b_metrics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@
"source": [
"The BLEU metric was introduced in [this article](https://www.aclweb.org/anthology/P02-1040) to come up with a way to evaluate the performance of translation models. It's based on the precision of n-grams in your prediction compared to your target. See the [fastai NLP course BLEU notebook](https://github.com/fastai/course-nlp/blob/master/bleu_metric.ipynb) for a more detailed description of BLEU.\n",
"\n",
"The smoothing used in the precision calculation is the same as in [SacreBLEU](https://github.com/mjpost/sacrebleu/blob/32c54cdd0dfd6a9fadd5805f2ea189ac0df63907/sacrebleu/sacrebleu.py#L540-L542), which in turn is \"method 3\" from the [Chen & Cherry, 2014](http://acl2014.org/acl2014/W14-33/pdf/W14-3346.pdf) paper."
"The smoothing used in the precision calculation is the same as in [SacreBLEU](https://github.com/mjpost/sacrebleu/blob/32c54cdd0dfd6a9fadd5805f2ea189ac0df63907/sacrebleu/sacrebleu.py#L540-L542), which in turn is \"method 3\" from the [Chen & Cherry, 2014](https://aclanthology.org/W14-3346/) paper."
]
},
{
Expand Down

0 comments on commit c3157c1

Please sign in to comment.