Learning Latent Forests for Medical Relation Extraction (authors' PyTorch implementation for the IJCAI20 paper)