Text this: Learning compact graph representations via an encoder-decoder network