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

I get ModuleNotFoundError when I try setting a custom preprocessor to my settings.py file #2365

Open
ssebastian90 opened this issue Apr 22, 2024 · 0 comments

Comments

@ssebastian90
Copy link

I try to set a custom preprocessor "custom_lowercase_preprocessor" from module "custom_preprocessors" that is located in the same directory with the settingspy file and I get a ModuleNotFoundError No module named 'custom_preprocessors'.
Could anyone help with some pointers for I can't see where the problem is .

This is my full Chatterbot settings.

CHATTERBOT = {
'name': 'Chatbot',
'django_app_name': 'django_chatterbot',
'preprocessors': [
'chatterbot.preprocessors.clean_whitespace',
'custom_preprocessors.custom_lowercase_preprocessor',
],
'logic_adapters': [
{
'import_path': 'chatterbot.logic.BestMatch',
'default_response': 'Sorry but I have no answer.',
'maximum_similarity_threshold': 0.00,
'statement_comparison_function': LevenshteinDistance,
},
'chatterbot.logic.TimeLogicAdapter',
],
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant