I am trying to parse a grammar similar to this.
PER -> 'noun' | 'noun1' | 'noun2'
PERS -> PER+
This is not a valid grammar for NLTK's recursive descent parser. How do specifiy one of more repeating tokens in this grammar
I am trying to parse a grammar similar to this.
PER -> 'noun' | 'noun1' | 'noun2'
PERS -> PER+
This is not a valid grammar for NLTK's recursive descent parser. How do specifiy one of more repeating tokens in this grammar
Copyright © 2021 Jogjafile Inc.
try a rule like: