title: How to classify a sentence based on a few templates?
body: <p>I have a question about how chatbot platforms such as api.ai and wit.ai work. You only provide them with a few templates for each intent/class and then their system is able to classify the new user queries to one of those classes.
  I am trying to do the same and have tested algorithms such as SVM, logistic regression, naive bayes and a few other ones. For the feature extraction part I have tried most of the features that people usually use such as n-grams, vector representation, bow etc.
  What would be the best algorithm(s) in such case when there is a few templates per class?</p>
  
  <p>Thanks
  Amir :)</p>