integrating templates into pos tagger (needs cleanup, second template is dummy)