Statistics for SALT spectroscopy and classification of supernova spectra using Bayesian techniques