The first model is a straightforward adaptation of the alignment model in §4.2, where the representations of questions and answers are changed from bags of words to "bags of syntactic dependencies" (Surdeanu et al., 2011).
the terms to be aligned (q and a in Eq.