2
$\begingroup$

I wonder what the differences are between the BNF(Backus-Naur Form) and JSGF(Java Speech Grammar Format)? The former is a kind of context-free grammar taught in CS224, but I learned that the latter is also being used. Could anyone tell me which one is better and what are their differences?

$\endgroup$
0
$\begingroup$

BNF (Backus normal form) is a general framework that can be adopted to a variety of contexts.

JSGF stands for Java Speech Grammar Format, thus is designed to work the Java programming language.

If I wanted to leverage a larger community of knowledge and have my work compatible with as many systems as possible, I would use BNF. If I was coding in Java, I would use JSGF.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.