简体   繁体   English

自然语言命令语言

[英]Natural language command language

I'm interested in developing a natural language command language for a domain with existing rules. 我有兴趣为具有现有规则的域开发自然语言命令语言。 I was very impressed when Terry Winograd's SHRDLU showed the way (the conversation below is 40 years old! Astonishing). 当Terry Winograd的SHRDLU显示出来的时候(下面的谈话是40岁!令人惊讶),我印象非常深刻。 Can we do better now and if so where can I get examples? 我们现在可以做得更好吗?如果有,我可以在哪里获得实例?

Person: Pick up a big red block. 人:拿起一个大红块。
Computer: OK. 电脑:好的。
Person: Grasp the pyramid. 人:抓住金字塔。
Computer: I don't understand which pyramid you mean. 电脑:我不明白你的意思是哪个金字塔。
Person (changing their mind): Find a block which is taller than the one you are holding and put it into the box. 人(改变他们的想法):找到一个高于你所持有的块并将其放入盒子中。
Computer: By "it", I assume you mean the block which is taller than the one I am holding. 计算机:通过“它”,我认为你的意思是比我持有的那个更高的块。
Computer: OK. 电脑:好的。
Person: What does the box contain? 人:盒子包含什么?
Computer: The blue pyramid and the blue block. 电脑:蓝色金字塔和蓝色块。
Person: What is the pyramid supported by? 人:支持的金字塔是什么?
Computer: The box. 电脑:盒子。
Person: How many blocks are not in the box? 人:盒子里没有多少块?
Computer: Four of them. 电脑:其中四个。
Person: Is at least one of them narrower than the one which I told you to pick up? 人:至少有一个比我告诉你的那个更窄吗?
Computer: Yes, the red cube. 电脑:是的,红色的立方体。

I have an ontology for the domain so can reason over common problems. 我有一个域的本体,所以可以解决常见的问题。

看看OpenCyc ,一个通用知识库和常识推理引擎。

Take a look at the controlled English (ACE) that has been developed in the Attempto project . 看看在Attempto项目中开发的受控英语(ACE)。 It seems to have the required expressivity and flexibility. 它似乎具有所需的表现力和灵活性。 The ACE parser parses ACE sentences into a first order logic formula (a variant called DRS) which can then be used for further processing, eg automatic reasoning. ACE解析器将ACE句子解析为一阶逻辑公式(称为DRS的变体),然后可以将其用于进一步处理,例如自动推理。 The parser is available under LGPL, see the demo here . 解析器在LGPL下可用,请参阅此处的演示。

我刚刚遇到过美国宇航局广泛使用的Regulus( http://en.wikipedia.org/wiki/Regulus_Grammar_Compiler )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM