In this chapter, we looked into two of the major applications of HMMs: POS tagging and speech recognition. We coded the POS tagger using a most-frequent tag algorithm and used the pomegranate package to build one based on HMM. We compared the performance using both these methods and saw that an HMM-based approach outperforms the most-frequent tag method. Then, we used the SpeechRecognition package to transcribe audio to text using Google's Web Speech API. We looked into using the package with both audio files and live audio from a microphone.
In the next chapter, we will explore more applications of HMMs, specifically in the field of image recognition.