-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Supposed to have
from nltk.grammar import CFG
grammar = CFG.fromstring("""
# Grammatical productions.
S -> NP VP
NP -> Det N PP | Det N
VP -> V NP PP | V NP | V
PP -> P NP
# Lexical productions.
NP -> 'I'
Det -> 'the' | 'a'
N -> 'man' | 'park' | 'dog' | 'telescope'
V -> 'ate' | 'saw'
P
will pyStatParser output a CFG string for the grammar?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels