I am working on a naive Bayes model and then I want to check the accuracy score for a bag of words I got an error that variable name is not defined. What is the problem?