# Assingment not being graded

**URL:** <https://community.deeplearning.ai/t/assingment-not-being-graded/302979>\
**Category:** NLP with Sequence Models\
**Tags:** week-module-1\
**Created:** [April 4, 2023, 1:01pm UTC](https://community.deeplearning.ai/t/assingment-not-being-graded/302979 "2023-04-04T13:01:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akash\_Deep2](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@Akash\_Deep2](https://community.deeplearning.ai/u/Akash_Deep2)\
**Post date:** [April 4, 2023, 1:01pm UTC](https://community.deeplearning.ai/t/assingment-not-being-graded/302979/1 "2023-04-04T13:01:34Z")

</div>

My week-1 assingment is not being graded it shows an unexpected error what to do

---

<div class="post-metadata">

**Author:** ![arvyzukai](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/arvyzukai/32/165165_2.png) [@arvyzukai](https://community.deeplearning.ai/u/arvyzukai)\
**Post date:** [April 4, 2023, 2:04pm UTC](https://community.deeplearning.ai/t/assingment-not-being-graded/302979/2 "2023-04-04T14:04:15Z")

</div>

Hi @Akash_Deep2

Welcome to community!  
Did you pass all the tests? If so, please [check for these](https://community.deeplearning.ai/t/stderr-issue-in-grading/285810/2). If not, let us know where you stalled.

Cheers

---

<div class="post-metadata">

**Author:** ![hephzibah\_2918](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@hephzibah\_2918](https://community.deeplearning.ai/u/hephzibah_2918)\
**Post date:** [April 22, 2023, 5:24am UTC](https://community.deeplearning.ai/t/assingment-not-being-graded/302979/3 "2023-04-22T05:24:13Z")

</div>

Hi there! My assignment also has grader issues. I check for all the points and I am still stalled.

`The grader found global variables inside graded functions. Please avoid using global variables in your functions.`

This seems to be the problem. All the test cases in the notebook seem to work and I checked the code line by line to see if there are any global variable usage inside the functions and I can’t find any. The grader shows zero for all the segments and my score is 0/80. Can someone please help me?

---

<div class="post-metadata">

**Author:** ![arvyzukai](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/arvyzukai/32/165165_2.png) [@arvyzukai](https://community.deeplearning.ai/u/arvyzukai)\
**Post date:** [April 22, 2023, 6:09am UTC](https://community.deeplearning.ai/t/assingment-not-being-graded/302979/4 "2023-04-22T06:09:53Z")

</div>

Hi @hephzibah_2918

Please re-check for `Vocab` vs `vocab_dict` usage (for example, in UNQ\_C1 and UNQ\_C2) and `len(Vocab)` vs `vocab_size` (for example, in UNQ\_C5) since these are the most common mistakes in Course 3 Week 1.

If you double-checked and still have the problem, you can private message me your notebook ([how to download](https://www.coursera.org/learn/probabilistic-models-in-nlp/supplement/NdPJd/how-to-download-your-notebook)).

---

<div class="post-metadata">

**Author:** ![hephzibah\_2918](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@hephzibah\_2918](https://community.deeplearning.ai/u/hephzibah_2918)\
**Post date:** [April 23, 2023, 6:06am UTC](https://community.deeplearning.ai/t/assingment-not-being-graded/302979/5 "2023-04-23T06:06:38Z")

</div>

As far as I checked, I have not used global variables in my code. I’ve messaged you the notebook, can you please take a look?

---

<div class="post-metadata">

**Author:** ![hephzibah\_2918](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@hephzibah\_2918](https://community.deeplearning.ai/u/hephzibah_2918)\
**Post date:** [April 23, 2023, 6:21am UTC](https://community.deeplearning.ai/t/assingment-not-being-graded/302979/6 "2023-04-23T06:21:35Z")

</div>

Issue resolved. Thanks to this post.

> [@Grader found global variables inside graded fuctions. Please avoid using global variables in your functions](https://community.deeplearning.ai/t/grader-found-global-variables-inside-graded-fuctions-please-avoid-using-global-variables-in-your-functions/102222):
>
> Hello , I am getting this error. However i have not used global variables anywhere in my functions. Below is one function where i am getting this. def tweet\_to\_tensor(tweet, vocab\_dict, unk\_token=‘UNK’, verbose=False): ‘’’ Input: tweet - A string containing a tweet vocab\_dict - The words dictionary unk\_token - The special string for unknown tokens verbose - Print info durign runtime Output: tensor\_l - A python list with ''' ### START CODE HERE (Replace instances of 'None' with y…

Thank you @arvyzukai.
