* correcting value type for tagset entries
 * generalising gazetteer feature generation
 * fixing a potential off by one problem