A parser for CRF++ template files