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

ImportError: cannot import name 'SpellCheck' #1

Open
pallavi-xtage opened this issue Feb 11, 2019 · 11 comments
Open

ImportError: cannot import name 'SpellCheck' #1

pallavi-xtage opened this issue Feb 11, 2019 · 11 comments

Comments

@pallavi-xtage
Copy link

Hey,

An error is coming in importing.
Can you please tell me how to install this package, so that this error wouldn't come.

@satishp962
Copy link
Contributor

Try this..

from spellcheck import SpellCheck

@pallavi-xtage
Copy link
Author

Yeah I have tried this only before.
The error is coming after using this statement mentioned by you for importing.

@pallavi-xtage
Copy link
Author

How to install this package?Using pip?

@satishp962
Copy link
Contributor

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.

@pallavi-xtage
Copy link
Author

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.

@pallavi-xtage
Copy link
Author

Like for:
text="what"
suggestions----["what's", 'what']
output----what's

@pallavi-xtage
Copy link
Author

Resolved.

Talk to you soon regarding some more errors.
Thank you.

@pallavi-xtage
Copy link
Author

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.

@satishp962
Copy link
Contributor

Try changing the Fuzzywuzzy match percentage. Hope it helps.

@pallavi-xtage
Copy link
Author

Hey,

Sorted out after long work.

Thank you for your help.

@satishp962
Copy link
Contributor

Great. Can you please create a pull request?

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