tokens: I found this link that should put you on the right track , it does not use HTML::Template ; but you can add that in for your code .
ner_tags: O O O O O O O O O O O O O O O O B-Code_Block I-Code_Block I-Code_Block O O O O O O O O O O