In scikit learn or nltk classifier generally consider term frequency or TF-IDF.
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.
Category city contains this sentence:
In which city Obama was born?
If I consider on term frequency, then following might not be considered. because obama or city in dataset do not match with query sentence
1. In which place Hally was born 2. In which city Hally was born?
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