Named entity recognition using conditional random fields with non-local relational constraints