Code # 1: Create a WordNet Word Search Class.
This WordNetTagger class will consider no. of every POS tag found in Synsets for a word, and then the most common tag is the treebank tag using internal mapping.
Code # 2: Using a simple WordNetTagger ()
Accuracy of WordNetTagger: 0.17914876598160262
Using Code 3, we can improve the accuracy.
Code # 3: WordNetTagger class at the end of the NgramTagger rollback chain