# Anyone can give a clue why I passed the Expected output but failed in the unitest of get\_correction?

**URL:** <https://community.deeplearning.ai/t/anyone-can-give-a-clue-why-i-passed-the-expected-output-but-failed-in-the-unitest-of-get-correction/88399>\
**Category:** NLP with Probabilistic Models\
**Tags:** week-module-1\
**Created:** [January 18, 2022, 10:23pm UTC](https://community.deeplearning.ai/t/anyone-can-give-a-clue-why-i-passed-the-expected-output-but-failed-in-the-unitest-of-get-correction/88399 "2022-01-18T22:23:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amazing\_Patrick](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Amazing\_Patrick](https://community.deeplearning.ai/u/Amazing_Patrick)\
**Post date:** [January 18, 2022, 10:23pm UTC](https://community.deeplearning.ai/t/anyone-can-give-a-clue-why-i-passed-the-expected-output-but-failed-in-the-unitest-of-get-correction/88399/1 "2022-01-18T22:23:54Z")

</div>

![image](https://global.discourse-cdn.com/dlai/original/2X/b/b165870996f0d1afba542f8a8973f7fd067d07f8.png)  
There is nothing said anything wrong but I got a test failed. Any possible clue will be really helpful.

---

<div class="post-metadata">

**Author:** ![Amazing\_Patrick](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Amazing\_Patrick](https://community.deeplearning.ai/u/Amazing_Patrick)\
**Post date:** [January 19, 2022, 7:37am UTC](https://community.deeplearning.ai/t/anyone-can-give-a-clue-why-i-passed-the-expected-output-but-failed-in-the-unitest-of-get-correction/88399/2 "2022-01-19T07:37:07Z")

</div>

I figured it out! We should let the suggestions tell us how many words are suggested in the vocabulary or in the first or second edit. Then based on the n number to get the first n suggestions.

---

<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:** [January 25, 2022, 2:13am UTC](https://community.deeplearning.ai/t/anyone-can-give-a-clue-why-i-passed-the-expected-output-but-failed-in-the-unitest-of-get-correction/88399/3 "2022-01-25T02:13:56Z")

</div>


