A simple way to address this is a pipeline: first predict entity types, and then condition on these when predicting relations.
this neglects the fact that relations could as well be used to help entity type prediction.