[2307.11762] Similarity-based Memory Enhanced Joint Entity and Relation Extraction