Skip to content Skip to sidebar Skip to footer

Where Can I Find All The Tag Definitions Of Pos Tagging For Classifierbasedpostagger In Nltk?

I used the following code to train a ClassifierBasedPOSTagger for POS tagging: from nltk.classify import MaxentClassifier from nltk.tag.sequential import ClassifierBasedPOSTagger

Solution 1:

You can check - The Brown Corpus Tag-set.

╔═════╦═════════════════════╦════════════════════╗
║ Tag ║ Description         ║ Examples           ║
╠═════╬═════════════════════╬════════════════════╣
║ AT  ║ article             ║ the an no a every  ║
║     ║                     ║ th' ever' ye       ║
╠═════╬═════════════════════╬════════════════════╣
║ BEZ ║ verb "to be",       ║ is                 ║
║     ║ present tense,      ║                    ║
║     ║ 3rd person singular ║                    ║
╠═════╬═════════════════════╬════════════════════╣
║ ... ║ ...                 ║ ...                ║
╚═════╩═════════════════════╩════════════════════╝

Solution 2:

You should understand that the tagset has nothing to do with the classifier class you chose; the tagset comes from your training data. So your question should have been "where do I find the tag definitions for (this POS-tagged corpus)". You don't say where your train_sents came from, but indeed (as @RAVI already pointed out) these tags seem to come from the Brown corpus; you can read its tagset documentation online, or fetch it from within the nltk like this:

>>>nltk.help.brown_tagset("BEZ")
BEZ: verb 'to be', present tense, 3rd person singular
    is
>>>nltk.help.brown_tagset()   # All tags...

Post a Comment for "Where Can I Find All The Tag Definitions Of Pos Tagging For Classifierbasedpostagger In Nltk?"