Framework to build distant supervised NLP relation detectors