This is exactly the perspective we would like to keep for showing the advantage of using kernel methods.
in the following, we define sentence representations that can be suitably used for both tasks and then we rely on structural kernels and the adopted learning algorithm for exploring the substructures relevant to the different tasks.