需要有关 Prolog DCG 的问题/练习
你是否知道我在哪里可以找到涉及 DCG 的序言问题/练习列表,以便我可以更好地理解这个概念?
我已经阅读了一些有关它的规范,但学习它的最佳方法是使用它进行练习。
谢谢!
Do you happen to know where can I find a list of prolog problems/exercises which involves DCG so that I can understand better this concept?
I have read some specifications regarding it, but the best way to learn it is to practice with it.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个很好的起点 http://www.scism.lsbu。 ac.uk/inmandw/tutorials/nlp/。它首先讨论语言,然后向您展示在 Prolog 中实现它的方法。
最好通过创建遵循严格语言规则的程序来开始学习。大学设置的一个流行的例子是创建解析器来接受有效的blazons,因为这没有什么歧义。您可以在线搜索创建有效徽章的方法。设计纹章的实际术语称为纹章。
希望有帮助!
Here is a pretty good place to start http://www.scism.lsbu.ac.uk/inmandw/tutorials/nlp/. It begins with talking about language and then shows you ways of implementing it in Prolog.
It's good to start learning by creating programs that following strict language rules. A popular example set by Universities is creating parsers to accept valid blazons, because there is little ambiguity in this. You can search online for ways of creating valid blazons. The actual term for devising blazons is called heraldry.
Hope that helps!
检查http://www.learnprolognow.org/。这实际上有一章是关于 DCG 的(第 7 章)。练习可以在这里找到:http ://cs.union.edu/~striegnk/learn-prolog-now/html/node62.html#sec.l7.exercises,但实际上也在网页上。
祝你好运!
Check http://www.learnprolognow.org/. This actually has a chapter about DCG (Ch. 7). The exercises can be found here: http://cs.union.edu/~striegnk/learn-prolog-now/html/node62.html#sec.l7.exercises, but are actually also on the webpage.
Good luck!