1. Tree
2. Tree
#----------------------------------# # Default Generative Grammar Rules # #----------------------------------# S -> NP VP S -> NP RC S -> 'If' S 'then' S VP -> VERB VP -> VERB NP VP -> VERB ADJ VP -> VP PP VP -> AUX VP VP -> AUX 'not' VP VP -> VP CCONJ VP NP -> NOUN NP -> DET NOUN NP -> DET PROPN NP -> PROPN NP -> PRON NP -> NP PP NP -> NP RC NP -> NP CCONJ NP PP -> P NP RC -> RPRON S #---------------------------------# # POS of sentence tagged by spaCy # #---------------------------------# PROPN -> 'Bill' CCONJ -> 'and' PROPN -> 'Jones' CCONJ -> 'and' PROPN -> 'Smith' VERB -> 'love' PROPN -> 'Mary'
(S
(NP
(NP (NP (PROPN Bill)) (CCONJ and) (NP (PROPN Jones)))
(CCONJ and)
(NP (PROPN Smith)))
(VP (VERB love) (NP (PROPN Mary))))
1. Tree
(S
(NP
(NP (PROPN Bill))
(CCONJ and)
(NP (NP (PROPN Jones)) (CCONJ and) (NP (PROPN Smith))))
(VP (VERB love) (NP (PROPN Mary))))
2. Tree