title: Is there any classifiier which works at both word and sentence level?
body: <p>In scikit learn or nltk classifier generally consider term frequency or TF-IDF.</p>
  
  <p>I want to consider term frequency as well, sentence structure for classification. I have 15 categories of question. Each with text file containing sentence with new lines.</p>
  
  <p>Category city contains this sentence:</p>
  
  <pre><code>In which city Obama was born?
  </code></pre>
  
  <p>If I consider on term frequency, then following might not be considered. because obama or city in dataset do not match with query sentence</p>
  
  <pre><code>1. In which place Hally was born 2. In which city Hally was born?
  </code></pre>
  
  <p>Is there any classifier which consider both term frequency as well sentence structure. So when trained, it classify input query with similar sentence structure too</p>