fix potential problem in generate_examples with classifications not matching up due to stripping certain non-word chars