title: User input classify wrong
body: <p>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:</p>
  <pre class="lang-py prettyprint-override"><code>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 &gt; 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))
  </code></pre>
  <p>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.</p>
  <pre><code>user_input = input(&quot;What is your perception towards online classes?\n&quot;)
  
  #pre-processing the input before prediction
  processed_input = process_com(user_input)
  predict(processed_input)
  print (processed_input)
  </code></pre>
  <p>Here's the output of user input:</p>
  <pre><code>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']
  </code></pre>
  <pre><code>What is your perception of online classes?
  i love online classes
  ***RESULTS***
  Comments is Negative, with 54% certainty
  ['love', 'onlin', 'class']
  </code></pre>
  <pre><code>What is your perception of online classes?
  it has disadvantage and advantage
  ***RESULTS***
  Comments are Negative, with 76% certainty
  ['disadvantag', 'advantag']
  </code></pre>
  <pre><code>What is your perception towards online classes?
  none
  ***RESULTS***
  Comments is Neutral
  ['none']
  </code></pre>