Difference between NNP and NN

295 views
Skip to first unread message

Haider Ali

unread,
Nov 14, 2013, 6:13:48 AM11/14/13
to nltk-...@googlegroups.com
Hi everyone
Can anyone please guide me that why the first noun in every sentence is always noun phrase (NNP ) in nltk pos_tag  function. 
when i run 
pos_tag(word_tokenize("Ronaldo is the best footballer"))
it give me output 
[('Ronaldo', 'NNP'),
 ('is', 'VBZ'),
 ('the', 'DT'),
 ('best', 'JJS'),
 ('footballer', 'NN')]

since Ronaldo is noun than why it give NNP. similar is the case with other sentences.
thanks


Borislav Gankov

unread,
Nov 14, 2013, 6:30:32 AM11/14/13
to nltk-...@googlegroups.com
Hi Haider,

It's a part-of-speech (pos) tag, namely proper noun:
http://www.ling.upenn.edu/courses/Fall_2003/ling001/penn_treebank_pos.html

phrase detection/tagging is at a later stage.

hope this helps,

BG


--
You received this message because you are subscribed to the Google Groups "nltk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nltk-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

...

unread,
Nov 14, 2013, 6:31:40 AM11/14/13
to nltk-...@googlegroups.com
NNP is for Proper noun, Singular like Ronaldo
and NN represents Noun, Singular or Mass like footballer

http://www.monlp.com/2011/11/08/part-of-speech-tags/
hope it helps.
Reply all
Reply to author
Forward
0 new messages