# Metric computation code

**URL:** <https://discuss.huggingface.co/t/metric-computation-code/8266>\
**Category:** Beginners\
**Created:** [July 12, 2021, 12:18pm UTC](https://discuss.huggingface.co/t/metric-computation-code/8266 "2021-07-12T12:18:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zuujhyt](https://avatars.discourse-cdn.com/v4/letter/z/f17d59/32.png) [@zuujhyt](https://discuss.huggingface.co/u/zuujhyt)\
**Post date:** [July 12, 2021, 12:18pm UTC](https://discuss.huggingface.co/t/metric-computation-code/8266/1 "2021-07-12T12:18:54Z")

</div>

Hi,

can somebody points out where I can find the metric computation code in the HF?  
e.g. CIDEr, METEOR, ROUGE, BLEU  
Thanks.

---

<div class="post-metadata">

**Author:** ![lewtun](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lewtun/32/30995_2.png) [@lewtun](https://discuss.huggingface.co/u/lewtun)\
**Post date:** [July 12, 2021, 2:15pm UTC](https://discuss.huggingface.co/t/metric-computation-code/8266/2 "2021-07-12T14:15:56Z")

</div>

hey @zuujhyt you can find all the scripts to compute metrics in the `datasets` library here: [datasets/metrics at master · huggingface/datasets · GitHub](https://github.com/huggingface/datasets/tree/master/metrics)
