Chatterbot: Giving nested json-data as database

Created on 13 Jun 2017  路  3Comments  路  Source: gunthercox/ChatterBot

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"
      }]
  }
}
question

Most helpful comment

@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

All 3 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cesarandreslopez picture cesarandreslopez  路  4Comments

gunthercox picture gunthercox  路  3Comments

coolrb picture coolrb  路  3Comments

ArunSingh1 picture ArunSingh1  路  3Comments

AfrahAsif picture AfrahAsif  路  3Comments