# C3\_W2\_Lab3: Issue with fit\_vectorizer()

**URL:** <https://dlai.staged-by-discourse.com/t/c3-w2-lab3-issue-with-fit-vectorizer/891003>\
**Category:** Natural Language Processing in TensorFlow\
**Tags:** week-module-2, coursera-platform\
**Created:** [March 29, 2026, 11:03pm UTC](https://dlai.staged-by-discourse.com/t/c3-w2-lab3-issue-with-fit-vectorizer/891003 "2026-03-29T23:03:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![austinbrehm](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/austinbrehm/32/128454_2.png) [@austinbrehm](https://dlai.staged-by-discourse.com/u/austinbrehm)\
**Post date:** [March 29, 2026, 11:03pm UTC](https://dlai.staged-by-discourse.com/t/c3-w2-lab3-issue-with-fit-vectorizer/891003/1 "2026-03-29T23:03:34Z")

</div>

Running into an issue with fit\_vectorizer(). When running the example, I’m getting a vocabulary of 7 instead of 1000. With this discrepancy, the unit tests still pass.

Any tips or help would be appreciated.

---

<div class="post-metadata">

**Author:** ![austinbrehm](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/austinbrehm/32/128454_2.png) [@austinbrehm](https://dlai.staged-by-discourse.com/u/austinbrehm)\
**Post date:** [March 29, 2026, 11:16pm UTC](https://dlai.staged-by-discourse.com/t/c3-w2-lab3-issue-with-fit-vectorizer/891003/3 "2026-03-29T23:16:39Z")

</div>

Disregard. Found the issue.
