Automatic classification of galaxy spectra in large redshift surveys.