Code for TKDE paper "Learning Relation Prototype from Unlabeled Texts for Long-tail Relation Extraction"