This combination provides a framework that benefits from the advantages of both generative and discriminative models.
we used the optional non-terminals to make the task of defining the grammar easier.