Training data for template classifiers