Structural representations for learning relations between pairs of texts