emot icon indicating copy to clipboard operation
emot copied to clipboard

Emoticon identified where it should not have been

Open CFLJacquet opened this issue 3 years ago • 2 comments

Describe the bug The emoticon D: is found in "Ticket ID: 99" where it should not have been.

To Reproduce Steps to reproduce the behavior:

import emot
emot_extractor = emot.core.emot() 

text = """Ticket ID: 99"""
emoticons = emot_extractor.emoticons(text)

>>> {'value': ['D:'], 'location': [[8, 10]], 'mean': ['Sadness'], 'flag': True}

Expected behavior Nothing should be found

Desktop (please complete the following information):

  • OS: ubuntu 18.04
  • Version emot=2.1 and emot=3.1

CFLJacquet avatar Oct 21 '21 19:10 CFLJacquet

Yep, It look like due to new pattern optimization algorithm. To create one single universal pattern makes it is really difficult find edge case. Let me see how we can make pattern which can avoid this issue. Thank you for reporting it.

NeelShah18 avatar Oct 22 '21 03:10 NeelShah18

Thanks for creating that repo, it's super useful!

CFLJacquet avatar Oct 25 '21 22:10 CFLJacquet