我在一个程序中有一组结构,它们的含义非常具体,例如。这是一段代码
randomItem = objects.concept.random("buyable")
idea.example(objects.concept.random("family", "friend")).does({
action: "go",
target: object.concent.random("shop")
}).then({
action: "buys",
target: randomItem,
several: true
}).then({
question: true,
action: "know",
property: "amount",
target: randomItem,
several: true
})
我以前使用过自然语言解析器。
我该如何将其转换为自然语言(反之亦然),有什么方法或方法吗?我有逻辑结构,我知道谁是主语,动词和目标是什么。
我可以使用哪些方法从中生成语言?