经过多次头痛,我终于设法让Boxer和nltk拳击手工作了。但是,我从nltk拳击手得到的输出与我的期望有些不同。一个例如"鲍勃知道约翰喜欢奶牛"应该是这样的:
__________________ ____________________
|x1 x2 | |x3 x4 |
|..................| |....................|
(|named(x2,bob,per) |+|know(x3) |)
|named(x1,john,geo)| | Actor(x3,x2) |
|__________________| | Topic(x3,x4) |
| ______________ |
| |x5 x6 ||
| x4:|..............||
| |like(x5) ||
| | Actor(x5,x1)||
| | Theme(x5,x6)||
| |cow(x6) ||
| |______________||
|____________________|
但相反,它看起来像:
_____________________
| e1 p1 x1 x2 |
|---------------------|
| ne_geo_john(x2) |
| ne_per_bob(x1) |
| Topic(e1,p1) |
| Actor(e1,x1) |
| v_know(e1) |
| ______________ |
| p1:| e2 x3 | |
| |--------------| |
| | Theme(e2,x3) | |
| | Actor(e2,x2) | |
| | v_like(e2) | |
| | n_cow(x3) | |
| |______________| |
|_____________________|
为什么?