Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify ChatterBot Corpus trainer to save corpus categories as tags for statements #924

Closed
gunthercox opened this issue Aug 12, 2017 · 0 comments
Assignees
Labels

Comments

@gunthercox
Copy link
Owner

This is a small change that needs to be made before future changes that will help improve the time and processing efficiency when ChatterBot generates a response to an input statement.

Changes have already been made to add categories to the ChatterBot Corpus so that the data looks like this:

categories:
- conversations
conversations:
- - Good morning, how are you?
  - I am doing well, how about you?
  - I'm also good.
  - That's good to hear.
  - Yes it is.
- - Hello
  - Hi
  - How are you doing?
  - I am doing well.

The categories attribute allows a list of descriptive labels to be added to the collection of dialog. Now, changes need to be made so that the ChatterBotCorpusTrainer in trainers.py adds the values from the categories list in the corpus data to the tags fields that statements have.


In the future (a different issue and pull request will be created to describe and make this change), the categorization of statements will make it possible for the chat bot to predict a smaller set of data that a possible response should be likely to exist it.

@gunthercox gunthercox self-assigned this Oct 10, 2017
@gunthercox gunthercox changed the title Modify ChatterBot Corpus trainer to save corpus categories to as tags for statements Modify ChatterBot Corpus trainer to save corpus categories as tags for statements Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant