I think you can do this with search suggestion like algorithms. First, you should categorize the search log, e.g. Thai Restaurant or Chinese Restaurant or KFC should be assigned categories including Restaurant.
When user is typing, figure out from the search log which keyword is nearest to the input and take that keyword's categories as the user input's category. BTW, I do not understand why you need to know the category of user input On Wed, Dec 16, 2009 at 9:47 AM, Alex <azli...@gmail.com> wrote: > Can anybody help me or maybe point me to relevant resources I could learn > from ? > > Thanks. > -- Weiwei Wang Alex Wang 王巍巍 Room 403, Mengmin Wei Building Computer Science Department Gulou Campus of Nanjing University Nanjing, P.R.China, 210093 Homepage: http://cs.nju.edu.cn/rl/weiweiwang