date model for crfpp
refactoring to make model stateless