Function Query2Term(string query) Input: a query, Output: terms of this query
Example1: the chinese university of hk → [the chinese university of hk]1 ([]i is the i-th term of this query)
Example2: new york pizza → [new york]1 [pizza]2
Example3: How do I play mp3 using the java programming language → [play]1 [mp3]2 [use]3 [java]4 [program]5 [language]6
Function Term2Centroid(string terms) Input: terms of a query, Output: centroid of this query
Example1: [the chinese university of hk]1→ the chinese university of hk
Example2: [new york]1 [pizza]2 → pizza
Example3: [play]1 [mp3]2 [use]3 [java]4 [program]5 [language]6 → mp3
Function synonym(string keyword) Input: a word, Output: a set of synonyms of this term in WordNet