locality sensitive hashing with semantic constraints