Re:An Efficient Way to Extract the Main Topics from a Sentence
by yolesaber on Thursday May 09, 2013 @12:11PM
(#5681163)
This is because he is only extracting the noun phrases from the sentence. If you adapted his code to tag verb phrases as well (by modifying the semi-CFG and the normalize_tags method) then you could also extract "discovering" and "curating" as well.
[ Parent
| on HN ]
Re:An Efficient Way to Extract the Main Topics from a Sentence
by RBerenguel on Thursday May 09, 2013 @01:50PM
(#5681869)
But this would miss the "main topics," since when you have both the vp's and the np's you have everything :/ Here is the resulting tree (it's unformatted, sorry, I tweaked an old Prolog grammar I had for analysing search keywords and tweets):
[[[[Swayy,snp],np],[is,[a,[[beautiful,new,dashboard,snp],np],np_],vp],simple_s],for,[[discovering,simple_s],and,[[curating,[[online,content,snp],np],vp],simple_s],s],s]