1. A computer-implemented method in a dialog system, comprising: defining a set of one or more grammar rules; labeling each grammar rule of the set of grammar rules with semantic or syntactic characteristics to produce labeled grammar rules; and generating labeled sentences from the set of labeled grammar rules.