情感注释提供带注释的树,其节点上附有注释,用于预测情绪。 此树与解析注释树提供的解析树不同。 例如,对于这句话:
I don't know half of you half as well as I should like; and I like less than half of you half as well as you deserve.
这是解析树:
(ROOT
(S
(S
(NP (PRP I))
(VP (VBP do) (RB n't)
(VP (VB know)
(NP
(NP (NN half))
(PP (IN of)
(NP (PRP you))
(ADVP (DT half) (RB as) (RB well))))
(SBAR (IN as)
(S
(NP (PRP I))
(VP (MD should)
(VP (VB like))))))))
(: ;)
(CC and)
(S
(NP (PRP I))
(VP (VBP like)
(NP
(NP
(QP (JJR less) (IN than) (NN half)))
(PP (IN of)
(NP (PRP you) (DT half))))
(ADVP
(ADVP (RB as) (RB well))
(SBAR (IN as)
(S
(NP (PRP you))
(VP (VBP deserve)))))))
(. .)))
这是情感注释树:
(ROOT
(@S
(@S
(@S
(S (NP I)
(VP
(@VP (VBP do) (RB n't))
(VP
(@VP (VB know)
(NP (NP half)
(PP
(@PP (IN of) (NP you))
(ADVP (DT half)
(@ADVP (RB as) (RB well))))))
(SBAR (IN as)
(S (NP I)
(VP (MD should) (VP like)))))))
(: ;))
(CC and))
(S (NP I)
(VP
(@VP (VBP like)
(NP
(NP (JJR less)
(@QP (IN than) (NN half)))
(PP (IN of)
(NP (PRP you) (DT half)))))
(ADVP
(ADVP (RB as) (RB well))
(SBAR (IN as)
(S (NP you) (VP deserve)))))))
(. .))
为什么树木略有不同?我认为动词是情感树中的动词短语,名词短语等等。
这些“@”是什么意思?
如何在遍历情感树的同时访问节点的pos标签?它是节点的值吗?
如果我想从解析树中获取情感树节点的pos标签,那么搜索具有相同收益率(离开)的解析树节点是唯一的方法吗?如果树是相同的,我可以迭代它们两个例如。
获取情感节点pos标签的建议方法是什么?