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

Can not avoid "default" answers from default.template #34

Closed
padmalcom opened this issue Oct 28, 2020 · 3 comments
Closed

Can not avoid "default" answers from default.template #34

padmalcom opened this issue Oct 28, 2020 · 3 comments

Comments

@padmalcom
Copy link
Collaborator

I wrote a bot that speaks German. Whenever the bot does not understand, it generates an English answer from the English default.template. I could not find a way to avoid that. Can you help me out?

@ahmadfaizalbh
Copy link
Owner

pass default_template while initiating Chat

Chat("examples/Example.template", default_template=<path to default template>)

please refer English version of default template https://github.com/ahmadfaizalbh/Chatbot/blob/master/chatbot/local/en/default.template

it would be appreciable if you could help in adding German (de) language support to do that add default.template, substitutions.json, and words.txt in chatbot/local/de/ where words.txt is dictionary words list for spell correction.

@padmalcom
Copy link
Collaborator Author

Oh okay, default_template is a good hint.

Sure, I can do that :)

@padmalcom
Copy link
Collaborator Author

I created a pull request (#35) and know how to replace the default template. This can be closed.

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

2 participants