Can chatterbot handle the nested json data and get the response on the basis of primary key?
Internal keys could be same. Like in sample below: key1, key2 will have same internal key parms.
{
"key1": {
"details": [
{ "name" : "xxx",
"surname" : "yyy"
}]
},
"key2": {
"details": [
{ "name" : "xxx",
"surname" : "yyy"
}]
}
}
@decode007 Current chatterbot support only simple JSON.
{ "converstation":
[
"statement",
"response"
]
}
By looking your JSON response, you could write your own trainer class by extending base Train class and override it member train function, for example UbuntuCorpus
Add addition details using add_extra statement object
More information about we could found here statement
@decode007 I am closing this issue, Feel free reopen this issue if you have any questions.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@decode007 Current chatterbot support only simple JSON.
By looking your JSON response, you could write your own trainer class by extending base Train class and override it member train function, for example UbuntuCorpus
Add addition details using add_extra statement object
More information about we could found here statement