I implemented regexp.json file as follows, but I'm not sure if synonyms are for intents or for entities.
What are synonyms for? Could you please show me some examples of synonyms in this case?
{
"intents" : [
{
"name" : ["greetings"],
"grammar" : [
"[How|What] is the [current|] weather in {location}"
]
}
],
"entities" : {
"name":"location"
},
"synonyms" : [
[""]
]
}
Does this doc help? https://watson-personal-assistant.github.io/developer/further-topics/regexp_nlu/
If it doesn't, let us know that too.
synonyms are just so you don't have to provide every example grammar for every word of similar meaning.