4 ms·
Prolog was on my list of "neat to learn languages" but I never got around to it. Any Prolog fans here to sing its praises? It's very well fit for writing comp
by danieldk 13y ago
Prolog was on my list of "neat to learn languages" but I never got around to it.
Any Prolog fans here to sing its praises?
It's very well fit for writing computational grammars for natural language and parsers/generators. I have used it a lot during my PhD. Terms can be used to represent attribute-value structures and e.g. agreement can be checked and larger structures can be formed through term unification.
I can really recommend this book:
http://www.mtome.com/Publications/PNLA/prolog-digital.pdf http://www.mtome.com/Publications/PNLA/prolog-digital.pdf
It is both an introduction to Prolog and to natural language processing, and shows the power of Prolog for such applications.
- kriro 13y agoInteresting, I'm working on a project that uses rules based agents but I am actually going to use ANTLR4 instead of Prolog for the grammar/parsing. It feels very odd because this is supposed to be one of Prolog's strengths. Basically what I do is generate Prolog code (via ANTLR) from a rule description of an agent (a custom DSL). My main motivation (outside of ANTLR seems neat, I want to play with it) is that I might eventually generate non-Prolog code from the DSL-code.