title: ValueError: Found input variables with inconsistent numbers of samples : [1, 14048]
body: <p>I am trying to run MultinomiaL Naive bayes and receiving the below error. Sample training data is given. Test data is exactly similar. </p>
  
  <pre><code>def main():
      text_train, targets_train = read_data('train')
      text_test, targets_test = read_data('test')
      classifier1 = MultinomialNB()
      classifier1.fit(text_train, targets_train)
      prediction1 = classifier1.predict(text_test)
  </code></pre>
  
  <p>Sample Data: </p>
  
  <pre><code>Train: 
  category, text
  Family, I love you Mom
  University, I hate this course
  </code></pre>