The question itself is encoded in a vector q as a weighted average of the hidden states of a BiLSTM over the word embeddings of its individual tokens.
we map the answers to unambiguous wikipedia pages using combination of rule based matching and fuzzy string matching, then filter out the questions whose answers are not mapped to any wikipedia page (12.5% of the questions).