S - > NP VP,这些句子是否遵循这种格式?

时间:2011-01-16 16:54:42

标签: nltk

使用格式S - >解析一些句子(来自nltk语料库中的就职演说)。 NP VP,我想确保我正确解析它们,这些句子是否遵循上述格式,对不起,如果这个问题看似微不足道,英语不是我的第一语言。如果有任何人对NP给定的句子有任何疑问,请问我,我会告诉你为什么我选择它并给你解析树的理由。

god bless you 

our capacity remains undiminished

their memories are short

they are serious

these things are true

the capital was abandoned

they are many

god bless the united stated of
america

the enemy was advancing

all this we can do

all this we will do

提前致谢。

1 个答案:

答案 0 :(得分:1)

前9名是NP VP。在最后两个中,“所有这些”是直接对象,它是VP的一部分。

god bless you 
NP- VP-------

our capacity remains undiminished
NP---------- VP------------------

their memories are short
NP------------ VP-------

they are serious
NP-- VP---------

these things are true
NP---------- VP------    

the capital was abandoned
NP--------- VP-----------    

they are many
NP-- VP------    

god bless the united stated of america
NP- VP--------------------------------    

the enemy was advancing
NP------- VP-----------

all this we can do
VP------ NP VP----

all this we will do
VP------ NP VP-----

请注意,最后两个句子在语义上等同于句子“我们可以做所有这些”和“我们将完成所有这些”,这个顺序使主语谓词/动词谓词分解更容易。

相关问题