-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Error with List Training #1089
Comments
@LukeCLindgren could you please let me know chatterbot and chatterbot-corpus versions are you using? It seems to me, the error message related to MAX length of the statement, this issue resolved latest of |
@vkosuri when updating chatterbot, the corpus it installs is only 1.0.1, not 1.1.1. With 1.1.1, I still get the length error |
@LukeCLindgren Thanks, could yo please let me know Which corpus are you using? Is it possible to share it here? |
Unfortunately, I can't attach a .py file here, so I've copy-pasted all the code. `""" version = '1.1.1' all = ( `import os DIALOG_MAXIMUM_CHARACTER_LENGTH = 400 class CorpusObject(list):
class Corpus(object):
` Can I change the maximum character length myself or do you think that would be catastrophic? `import logging class Trainer(object):
class ListTrainer(Trainer):
class ChatterBotCorpusTrainer(Trainer):
class TwitterTrainer(Trainer):
class UbuntuCorpusTrainer(Trainer):
` This might be another issue, but this version of chatterbot boots much slower and runs much slower than previous versions as well. |
It looks like the last part of the original error message might be the key here.
Following the stack trace backwards you can then see the methods and line numbers in the files where the error was triggered.
So to try to help, I just googled the SQL Alchemy error " Looks like it might be an issue with Unicode Coercion: https://stackoverflow.com/questions/23876342/sqlalchemy-programmingerror-can-interpret-8-bit-bytestrings @LukeCLindgren Could you post the original full text of the string "I was wondering if I could ask a major favor of you..." so that I can test with it? I'll try without it in the mean time but it might be helpful. |
A possible solution might be to upgrade to Python 3 to avoid the bytestring issues in Python 2.7. |
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. |
This is the error generated when I try to load list trainer:
Also, this version of Chatterbot runs much slower than previous ones...
The text was updated successfully, but these errors were encountered: