Corrected wrong parameter in generate training data, added new parameter in recognition service.