Source code and dataset for the IJCAI 2021 paper "Document-level Relation Extraction as Semantic Segmentation".