-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Chinese Training using List Trainer #215
Comments
Hi, I made a pull request you might want to check out, I think that is same issue I encountered with Croatian language, so I just added utf-8 support for corpus. I tried ListTrainer with your dataset, and it seems to work fine. You want to check this pull request |
Hi @Nykho, I've been able to confirm this issue on my end. I will attempt to issue a patch as soon as I can. |
Just a quick note for anyone else running into this issue. This issue is fixed in Python 3. Although this project aims to fully support multiple versions of Python, if you are using Python 2.7 and you can upgrade that may be the best course of action. |
Thanks @gunthercox! |
Hi, I met this issue for unicode in python 3.5 in the training phase : |
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. |
Hi. I'm having problems trying to use the ChatterBot to talk to me in Chinese.
In the terminal I get:
/usr/local/lib/python2.7/site-packages/chatterbot/conversation/statement.py:46: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if response.text == self.in_response_to[index].text: Type something to begin...
for this first case (talk to english and respond in chinese works ok):
Hello
你好。 你好吗?
but it doesn't work for talking in chinese to the bot.
我很好你呢
我很好你呢
I also get this error:
/usr/local/lib/python2.7/site-packages/chatterbot/adapters/logic/closest_match.py:35: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if input_statement.text in text_of_all_statements:
The code of what I'm using:
Thanks!
The text was updated successfully, but these errors were encountered: