Probabilistic Context-Free Grammar Tree Visualizer
Grammar Rules
S -> NP VP [1.0] NP -> Det N [0.86] NP -> NP PP [0.14] VP -> V NP [0.67] VP -> VP PP [0.33] PP -> P NP [1.0] Det -> 'the' [1.0] N -> 'cats' [0.25] N -> 'dogs' [0.25] N -> 'garden' [0.25] N -> 'barn' [0.25] V -> 'chased' [1.0] P -> 'in' [0.5] P -> 'behind' [0.5]
Presets:
Simple grammar
PP attachment
Sentence
Parse ↗
Examples:
the cats chased the dogs
…in the garden
…behind the barn
…behind the barn in the garden
← Prev
Next →