NeelShah18 / emot

Open source Emoticons and Emoji detection library: emot

Home Page:https://pypi.org/project/emot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting error while using the latest version

anantaarora opened this issue · comments

Hi,
I am facing an issue while upgrading to the latest emot version:
This is my import statement
from emot.emo_unicode import UNICODE_EMO, EMOTICONS

Error:
ImportError: cannot import name 'UNICODE_EMO' from 'emot.emo_unicode' (/usr/local/lib/python3.7/dist-packages/emot/emo_unicode.py)

Please help

Hello @anantaarora thank you for issue. Did you try 3.1 version?

still getting the same error

I had resolved this error by making following changes:
from emot.emo_unicode import UNICODE_EMOJI

Thanks

Let me check I think try and catch us is not working as expected for loading of the other library.

@anantaarora , @Keerthan28 :

I created a new virtual environment in a totally new mac system and did the fresh install. Then I try to perform the basic testing and everything works normally. Can you please share how I can replicate the issue?
Screen Shot 2021-08-02 at 12 14 01 PM
Screen Shot 2021-08-02 at 12 18 00 PM

I had resolved this error by making following changes:
from emot.emo_unicode import UNICODE_EMOJI

Thanks

Actually, it doesn't work. I don't see any change in my dataset after the emoticon conversion. Even I had resolved this error like you.

image
image
This code isn't working for me, Please help me to sort out the problem.

@SajibKumar It is error with mismatching of bracts.
Screenshot from 2021-08-14 13-22-22

@SajibKumar Please check the all code you put in the correct bracts level.

@SajibKumar It is error with mismatching of bracts.
Screenshot from 2021-08-14 13-22-22

But this code is working fine before updating the emot library.

@SajibKumar Please check the all code you put in the correct bracts level.

I think all brackets are okay.

@SajibKumar

Error shows in the code are regarding unbalanced bracket position. It can have two possibilities:

  1. https://stackoverflow.com/questions/10318248/unbalanced-parenthesis-python
  2. https://www.geeksforgeeks.org/check-for-balanced-parentheses-in-python/

Can you please check the issue. If you can share more detail what you want try to do, we can help you.

Thank you,
Neel

ModuleNotFoundError: No module named 'emot.emo_unicode'

Screenshot from 2021-10-11 15-23-56

@topekekere Yes, That's true. Their is reason for that. We notice most of the user want to use each dict as input in the system. So instead of loading whole file and than specific dic. We make it easy for everyone to load dict directly from library as contact variable.

You can all dict as below:

Screenshot from 2021-10-14 12-17-19

@topekekere Let me know if you face any issue. Thank you. This new version library doesn't use standard regex. It is new regex algorithm which make the library 10x faster in large database.

I am still getting an error like this. Could you please check @NeelShah18?
image