Syntactic models for parsing search queries on online social networks