Exercise 17. Bag of Words as well as the other tiers of this exercise explain many relevant concepts in detail. If you're stuck, we would highly recommend you to check them out. When specifying dtype for np.empty, use float instead of np.float.