R1j1t / contextualSpellCheck

✔️Contextual word checker for better suggestions
MIT License
405 stars 56 forks source link

[BUG] Language.factory #53

Closed yishairasowsky closed 3 years ago

yishairasowsky commented 3 years ago

Describe the bug A clear and concise description of what the bug is. I have installed contextualSpellCheck in Colab. When I type this

import contextualSpellCheck

then I get this error:

/usr/local/lib/python3.7/dist-packages/contextualSpellCheck/contextualSpellCheck.py in <module>()
     15 
     16 
---> 17 @Language.factory("contextual spellchecker")
     18 class ContextualSpellCheck(object):
     19     """

AttributeError: type object 'Language' has no attribute 'factory'

To Reproduce

#Steps to reproduce the behavior:
1. Init spacy model '...'
2. Add contextualSpellCheck '....'
3. supply the sentence '....'
4. See error

Expected behavior What was expected?

Version (please complete the following information):

Additional information Add any other information about the problem here.

yishairasowsky commented 3 years ago

@jonmun @R1j1t @AlvaroCavalcante @dc-aichara thank you for your awesome work!

R1j1t commented 3 years ago

@yishairasowsky I think the issue is with spacy version. Could you install spacy>=3.0.0? If that does not solve the issue please provide the following information like:

Version (please complete the following information):

contextualSpellCheck [e.g. 0.3.0] Spacy: [e.g. 2.3.2] transformers [e.g. 3.1.0]

To Reproduce

#Steps to reproduce the behavior:
1. Init spacy model '...'
2. Add contextualSpellCheck '....'
3. supply the sentence '....'
4. See error

I tried the following in colab and It worked fine for me: !pip install contextualSpellCheck import contextualSpellCheck

Happy to hear you like the project! Feel free to contribute.

yishairasowsky commented 3 years ago

thank you!

On Mon, Mar 8, 2021 at 3:29 PM Rajat notifications@github.com wrote:

@yishairasowsky https://github.com/yishairasowsky I think the issue is with spacy version. Could you install spacy>=3.0.0? If that does not solve the issue please provide the following information like:

Version (please complete the following information):

contextualSpellCheck [e.g. 0.3.0] Spacy: [e.g. 2.3.2] transformers [e.g. 3.1.0]

To Reproduce

Steps to reproduce the behavior:1. Init spacy model '...'2. Add contextualSpellCheck '....'3. supply the sentence '....'4. See error

I tried the following in colab and It worked fine for me: !pip install contextualSpellCheck import contextualSpellCheck

Happy to hear you like the project! Feel free to contribute.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/R1j1t/contextualSpellCheck/issues/53#issuecomment-792756703, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJN7CN7AUWBJCOAOEPK4UE3TCTGMLANCNFSM4YX6AOCQ .

-- Yishai Rasowsky 054.848.2245 Audio classes here https://anchor.fm/yishai-rasowsky.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.