Small Galactic H II regions. I. Spectral classifications of massive stars