add gazetteer from another branch, fix bug for converting single example into vector