我按如下方式实现了regexp.json文件,但我不确定同义词是意图还是实体。
同义词是什么?你能给我举几个同义词的例子吗?
{
"intents" : [
{
"name" : ["greetings"],
"grammar" : [
"[How|What] is the [current|] weather in {location}"
]
}
],
"entities" : {
"name":"location"
},
"synonyms" : [
[""]
]
}发布于 2018-09-28 02:30:31
发布于 2018-09-29 06:44:35
我对regexp.json进行了如下更新。效果很好。
{
"intents" : [
{
"name" : ["weather"],
"grammar" : [
"$ [What is|How is] the weather in {location}"
]
}
],
"entities" : {
"location":["tokyo","osaka","kyoto"]
},
"synonyms" : [
["What is","What's","What","what"],
["How is","How's","How","how"],
["tokyo","Tokyo"],
["osaka","Osaka"],
["kyoto","Kyoto"]
]
}https://stackoverflow.com/questions/52538245
复制相似问题