Code for getting the corrected spelling from freebase