GreynirEngine icon indicating copy to clipboard operation
GreynirEngine copied to clipboard

Document how to append to the grammar

Open jokull opened this issue 5 years ago • 1 comments

If there is a way to augment the grammar file for specific project contexts, that should be documented.

jokull avatar May 24 '20 12:05 jokull

Agreed, we need much more and better documentation of the grammar. Meanwhile, you might want to take a look at Greynir's query handling modules, which extend the grammar to handle a wide range of natural-language queries. They're the ones used by Embla.

https://github.com/mideind/Greynir/blob/master/query.py https://github.com/mideind/Greynir/tree/master/queries

sveinbjornt avatar May 26 '20 18:05 sveinbjornt