Encoding Tree Pair-based Graphs in Learning Algorithms: the Textual Entailment Recognition Case