spellcheck-using-dictionary-in-python
spellcheck-using-dictionary-in-python copied to clipboard
ImportError: cannot import name 'SpellCheck'
Hey,
An error is coming in importing. Can you please tell me how to install this package, so that this error wouldn't come.
Try this..
from spellcheck import SpellCheck
Yeah I have tried this only before. The error is coming after using this statement mentioned by you for importing.
How to install this package?Using pip?
How to install this package?Using pip?
Sorry for the inconvenience. This library is yet not indexed on PIP. So you have to download and use the file. Please let me know if the problem persists.
Hey, Yeah I am using the program now as you said.But it returns me the list of suggested words and pick the first word from it which I don't want it to pick.Similarly for other texts as well.For example:- if someone types:--
text= "ell me something?" Then it outputs the result as:- ['hello', 'tell', 'well', 'me', 'something'] Returned output is--hello me something Expected output--tell me something
For this I can pick position 1 of list for this question but what about others.What if a user can ask any question having words presented in words.txt and it returns the same type as a list having different elements and the corrected element could be at any position in a list.But this code always pick first one.So what to do?
So what to do if a user asks different types of questions.
Like for: text="what" suggestions----["what's", 'what'] output----what's
Resolved.
Talk to you soon regarding some more errors. Thank you.
Hey, Yeah I am using the program now as you said.But it returns me the list of suggested words and pick the first word from it which I don't want it to pick.Similarly for other texts as well.For example:- if someone types:--
text= "ell me something?" Then it outputs the result as:- ['hello', 'tell', 'well', 'me', 'something'] Returned output is--hello me something Expected output--tell me something
For this I can pick position 1 of list for this question but what about others.What if a user can ask any question having words presented in words.txt and it returns the same type as a list having different elements and the corrected element could be at any position in a list.But this code always pick first one.So what to do?
So what to do if a user asks different types of questions.
This issue is not resolved.
Try changing the Fuzzywuzzy match percentage. Hope it helps.
Hey,
Sorted out after long work.
Thank you for your help.
Great. Can you please create a pull request?