Improving Query Classification by Features’ Weight Learning