commented out threshold training for keyword similarity method due to high space and time complexity