A dynamic programming technique is provided for matching two sequences of
phonemes both of which may be generated from text or speech. The scoring
of the dynamic programming matching technique uses phoneme confusion
scores, phoneme insertion scores and phoneme deletion scores which are
obtained in advance in a training session and, if appropriate, confidence
data generated by a recognition system if the sequences are generated
from speech.