如何將所有NN標籤結合使用Java結合NN標籤使用Java
nsubj(martyrdom-4, Today-1)
cop(martyrdom-4, is-2)
det(martyrdom-4, the-3)
root(ROOT-0, martyrdom-4)
nn(Mukherjee-7, Dr-6)
prep_of(martyrdom-4, Mukherjee-7)
det(founder-9, the-8)
dep(tribute-17, founder-9)
prep_of(founder-9, Jan-11)
nn(body-15, Sangh-12)
nn(body-15, BJP-13)
nn(body-15, parent-14)
dep(tribute-17, body-15)
poss(tribute-17, My-16)
dep(martyrdom-4, tribute-17)
prep_to(tribute-17, him-19)
我希望得到一個名詞短語詞組標籤形成名詞短語:
prep_of(founder-9,Jan-11)
nn(body-15, Sangh-12)
nn(body-15, BJP-13)
nn(body-15, parent-14)
輸出應該是----------> jan sangh BJP母公司
相關問題:http://stackoverflow.com/questions/11985585/pharse-level-dependency-parser-using-java-nlp/ –
@KenstonChoi雅一點位相同但你指出的問題是要求依賴而不是名詞性的分詞。 –