Skip to content

Conversation

@ppirch
Copy link
Contributor

@ppirch ppirch commented Dec 30, 2020

What does this changes

Implement emoji convert for Thai language from https://www.emojiall.com/th/all-emojis

Will close #469

@ppirch ppirch mentioned this pull request Dec 30, 2020
@ppirch ppirch closed this Dec 30, 2020
@wannaphong
Copy link
Member

Why you close this pull request?

@ppirch
Copy link
Contributor Author

ppirch commented Dec 30, 2020

Why you close this pull request?

I forgot import function in unit test

@ppirch ppirch reopened this Dec 30, 2020
@coveralls
Copy link

coveralls commented Dec 30, 2020

Coverage Status

Coverage increased (+0.01%) to 95.857% when pulling a4f2952 on ppirch:add-emoji-convert into c2e65bc on PyThaiNLP:dev.

@ppirch
Copy link
Contributor Author

ppirch commented Dec 30, 2020

Why you close this pull request?

I forgot import function in unit test

I'm finished new commit. You can check it.

@bact bact self-requested a review December 31, 2020 04:38
@bact bact added the enhancement enhance functionalities label Dec 31, 2020
@bact bact added this to the 2.3 milestone Dec 31, 2020
@wannaphong
Copy link
Member

Copy link
Member

@wannaphong wannaphong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pull request. Your code looks good. I review some code. PyThaiNLP use docstring reStructuredText style. I suggest you modify the document format according to my comments.

@pep8speaks
Copy link

pep8speaks commented Dec 31, 2020

Hello @ppirch! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-01-01 06:35:03 UTC

@ppirch
Copy link
Contributor Author

ppirch commented Dec 31, 2020

Thank you for pull request. Your code looks good. I review some code. PyThaiNLP use docstring reStructuredText style. I suggest you modify the document format according to my comments.

Thank for reviewing my code. I update document format based on your suggestions.

@wannaphong
Copy link
Member

Happy New Year!

Copy link
Member

@wannaphong wannaphong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thinks it's pass. wait @bact

@ppirch
Copy link
Contributor Author

ppirch commented Jan 1, 2021

Happy New Year!

Happy New Year 2021 ^_^

Copy link
Member

@bact bact left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. Looks good.

# output: :ธง_ไทย: นี่คิือธงประเทศไทย
"""

emoji_regex = re.compile("|".join(map(re.escape, _emojis)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can compile this in advanced, outside of the function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait a sec.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has been done.

@wannaphong wannaphong merged commit 6ac71f6 into PyThaiNLP:dev Jan 2, 2021
@wannaphong wannaphong mentioned this pull request Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement enhance functionalities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add emoji util

5 participants