Joint Entity and Relation Extraction