# UNQ\_C8 - Rouge similarity

**URL:** <https://community.deeplearning.ai/t/unq-c8-rouge-similarity/102641>\
**Category:** NLP with Attention Models\
**Tags:** week-module-1\
**Created:** [February 24, 2022, 7:06am UTC](https://community.deeplearning.ai/t/unq-c8-rouge-similarity/102641 "2022-02-24T07:06:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerome\_MASSOT](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@Jerome\_MASSOT](https://community.deeplearning.ai/u/Jerome_MASSOT)\
**Post date:** [February 24, 2022, 7:06am UTC](https://community.deeplearning.ai/t/unq-c8-rouge-similarity/102641/1 "2022-02-24T07:06:04Z")

</div>

Hi colleagues,

very painful this usage of the unit test avoiding any debugging.  
I am stuck with the rouge1\_similarity. It passed the first test but failed for the 3 others.  
my counters are correct I guess, my formulas for precision and recall are consistent as I am using the sum of the tokens counts for the denominator (sys for the precision and ref for the recall) and my f1-score formula is also valid.  
So I need your feedback about this method.  
Thanks  
Jerome

---

<div class="post-metadata">

**Author:** ![Jerome\_MASSOT](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@Jerome\_MASSOT](https://community.deeplearning.ai/u/Jerome_MASSOT)\
**Post date:** [February 24, 2022, 7:18am UTC](https://community.deeplearning.ai/t/unq-c8-rouge-similarity/102641/2 "2022-02-24T07:18:05Z")

</div>

I found the issue : do not forget to specify the default value for the get() method 🙂

---

<div class="post-metadata">

**Author:** ![reinoudbosch](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@reinoudbosch](https://community.deeplearning.ai/u/reinoudbosch)\
**Post date:** [May 21, 2022, 3:04am UTC](https://community.deeplearning.ai/t/unq-c8-rouge-similarity/102641/3 "2022-05-21T03:04:00Z")

</div>


