Creating lexicons from wikipedia and freebase