Learning Query Intent for Sponsored Search