I think this needs to be done less hackily. One option is `dict_vectorizer.fit([vocabulary])`.