AUTOMATIC MS SPECTRAL CLASSIFICATION. I. EARLY TYPE STARS