'User input classify wrong

I am trying to get the result of the user-provided input. The input dataset is split into a training set, testing set, and validation. I used CounVectorizer and split my data into training and testing. I only got 515 data and it split into 80% for training, 10% for testing, and 10% for validation I used Multinomial Naive Bayes to train my model. I am not sure if my prediction function code is correct. But here it goes:

def predict(Comments):
    neg_counter = 0
    pos_counter = 0
    neu_counter = 0
    #count the occurances of each word in the Comments string
    for word in Comments:
        neg_counter += negative_words.count(word)
        pos_counter += positive_words.count(word)
        neu_counter == neutral_words.count(word)
    print('***RESULTS***')
    #if the Comments is equally pos and neg
    if pos_counter > neg_counter:
        accuracy = round((pos_counter / (pos_counter + neg_counter) * 100))
        print('Comments is Positive, with {}% certainty'.format(accuracy))
    
    elif pos_counter == neg_counter:
        print('Comments is Neutral')

    #Comment is neg
    else:
        accuracy = round((neg_counter / (neg_counter + pos_counter)* 100))
        print('Comments is Negative, with {}% certainty'.format(accuracy))

In this part where I am confused, the user input is Positive but it classifies as Negative. There are times that the Positive comment of the user, classifies correctly but most of the time it classifies wrong. And also, it can't classify Neutral when the user input is in a sentence but when it is just a word it can.

user_input = input("What is your perception towards online classes?\n")

#pre-processing the input before prediction
processed_input = process_com(user_input)
predict(processed_input)
print (processed_input)

Here's the output of user input:

What is your perception of online classes?
It gives big helps to the students and give more convenient.

**RESULTS**

Comments are Negative, with 55% certainty

['give', 'big', 'help', 'student', 'give', 'conveni']
What is your perception of online classes?
i love online classes
***RESULTS***
Comments is Negative, with 54% certainty
['love', 'onlin', 'class']
What is your perception of online classes?
it has disadvantage and advantage
***RESULTS***
Comments are Negative, with 76% certainty
['disadvantag', 'advantag']
What is your perception towards online classes?
none
***RESULTS***
Comments is Neutral
['none']


Solution 1:[1]

  
  var app = express()
  var server = Promise.promisifyAll(http.createServer(app))
  //Problems caused by strict mode
  app.set('strict routing', true)
  app.set('case sensitive routing', true)

Solution 2:[2]

You don't have any URL param named access_token. you named it aa.

Change your URL to be like this: http://192.168.8.131:7100/auth/mock?access_token=9999999

Then when you log req.query.access_token you will have the value of 9999999

Solution 3:[3]

192.168.8.131:7100/auth/mock?aa=9999999

I think the url should be this

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 xman
Solution 2 niiir
Solution 3 Wang YinXing