# C1w3 ungraded lab typo in the comments or error in the python?

**URL:** <https://dlai.staged-by-discourse.com/t/c1w3-ungraded-lab-typo-in-the-comments-or-error-in-the-python/893248>\
**Category:** Machine Learning in Production\
**Tags:** week-module-3, dl-ai-learning-platform\
**Created:** [July 3, 2026, 5:40pm UTC](https://dlai.staged-by-discourse.com/t/c1w3-ungraded-lab-typo-in-the-comments-or-error-in-the-python/893248 "2026-07-03T17:40:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahin](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/shahin/32/126483_2.png) [@shahin](https://dlai.staged-by-discourse.com/u/shahin)\
**Post date:** [July 3, 2026, 5:40pm UTC](https://dlai.staged-by-discourse.com/t/c1w3-ungraded-lab-typo-in-the-comments-or-error-in-the-python/893248/1 "2026-07-03T17:40:46Z")

</div>

The ungraded Data Labeling lab has an error or typo:

```auto
# Allow unigrams and bigrams
vectorizer = CountVectorizer(ngram_range=(1, 5))

```

If the comment is correct (i.e. “unigrams and bigrams” only), then the argument passed to `CountVectorizer()` should be `ngram_range(1, 2)`, not `ngram_range(1, 5)`.

Alternatively, if the argument is correct, then the comment should read:

`# Allow unigrams, bigrams, trigrams, 4-grams and 5-grams`

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://dlai.staged-by-discourse.com/u/balaji.ambresh)\
**Post date:** [July 4, 2026, 3:50am UTC](https://dlai.staged-by-discourse.com/t/c1w3-ungraded-lab-typo-in-the-comments-or-error-in-the-python/893248/2 "2026-07-04T03:50:37Z")

</div>

Thanks for reporting. The staff have been notified.
