Named Entity and Relation Extraction with Multi-Modal Retrieval