Top "Grammar" questions

A formal grammar is a set of production rules that describe how to form strings of valid syntax.

How do I do dependency parsing in NLTK?

Going through the NLTK book, it's not clear how to generate a dependency tree from a given sentence. The relevant …

python nlp grammar nltk
English grammar for parsing in NLTK

Is there a ready-to-use English grammar that I can just load it and use in NLTK? I've searched around examples …

python nlp grammar nltk
Construct grammar given the following language {a^n b^m | n,m = 0,1,2,...,n <= 2m}

I just took my midterm but couldn't answer this question. Can someone please give a couple of examples of the …

grammar context-free-grammar computation-theory context-sensitive-grammar
Separate word lists for nouns, verbs, adjectives, etc

Usually word lists are 1 file that contains everything, but are there separately downloadable noun list, verb list, adjective list, etc? …

dictionary grammar spell-checking
What is a Context Free Grammar?

Can someone explain to me what a context free grammar is? After looking at the Wikipedia entry and then the …

regex parsing grammar context-free-grammar
Why can't C++ be parsed with a LR(1) parser?

I was reading about parsers and parser generators and found this statement in wikipedia's LR parsing -page: Many programming languages …

c++ parsing grammar formal-languages
Convert regular expression to CFG

How can I convert some regular language to its equivalent Context Free Grammar? Is it necessary to construct the DFA …

regex grammar automata
int a[] = {1,2,}; Weird comma allowed. Any particular reason?

Maybe I am not from this planet, but it would seem to me that the following should be a syntax …

c++ syntax grammar language-lawyer
How to determine whether a language is LL(1) LR(0) SLR(1)

Is there a simple way to determine whether a grammar is LL(1), LR(0), SLR(1)... just from looking on the grammar …

parsing compiler-construction theory grammar bnf
Difference between an LL and Recursive Descent parser?

I've recently being trying to teach myself how parsers (for languages/context-free grammars) work, and most of it seems to …

parsing grammar context-free-grammar recursive-descent ll