Locality Sensitive Hashing with Semantic Constraints