added parameter for specifying parent annotation class for tokenization.