Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 453 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 453 Bytes

A simple HMM POS Tagger in Python

The implementation and hardcoded example is based on section 5.5 "HMM Part-of-Speech Tagging" in the Second Edition of Speech and Language Processing by Jurafsky & Martin (2009).

To run the script with the hardcoded example, simply run

python3 tagger.py

This will show the example observations (tokens) and states (POS tags)

['I', 'want', 'to', 'race']
['PPSS', 'VB', 'TO', 'VB']