Gravar-mail: Grammatical-Restrained Hidden Conditional Random Fields for Bioinformatics applications