Leaing to Rank for Information Retrieval and Natural Language Processing:Second Edition