-
Notifications
You must be signed in to change notification settings - Fork 53
Caseinsensitivity for text input #48
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
base: master
Are you sure you want to change the base?
Conversation
Hello @GargiVyas31! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-04-16 17:42:25 UTC |
chatbot.py
Outdated
translate = input("Type: ").lower() | ||
translate = translate.translate(table) | ||
translate = spell.correction(translate) | ||
# print(translate) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the usecase of comment statement. can it notify user when wrong spell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gargi, Any update on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commented statement was to check if the pyspellchecker object accurately corrects the misspelled words. Yes, we can uncomment it and show the user the corrected statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, can you remove this or put a comment regarding explaining how it works. #print looks like a debug statement.
@GargiVyas31 Please fix the pep8 issues. |
I can't see any issues. The branch has no issues. Pls check. |
Issues are listed here: #48 (comment) |
Made indentation corrections
'Edward', 'Some_guy_whom_i_never_got_to_know.'] | ||
var3 = ['what time is it', 'what is the time', 'time'] | ||
var4 = ['who are you', 'what is you name'] | ||
var5 = ['date', 'what is the date', 'what date is it', 'tell me the date'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is removed? what about then user ask for date.
Hi! I tried using the pyspellchecker library for autocorrecting the words. It did not work effectively for me. Eg. When I typed "how ar you?", it returned me the incorrect work as "you?" and suggested "you". It did not consider "ar". I think the library provided a provision to customise the spell check. We need to upload a text file, containing the customised input to the chatbot and correct the user input accordingly. |
No description provided.