PoS-Tagging using Hidden Markov Model (HMM) with Viterbi Algorithm: Live demo.
pip install numpy tqdm
Inside the code
folder:
python main.py
Check https://nlpprogress.com/english/part-of-speech_tagging.html to compare.
Dataset: http://nilc.icmc.usp.br/macmorpho/
Accuracy training with the training set (macmorpho-train.txt) and testing on the test set (macmorpho-test.txt): 92.18%
Dataset: https://aclanthology.org/J93-2004/
Accuracy training with the training set (WSJ_02-21.txt) and testing on the test set (WSJ_24.txt): 94.18%