-
Notifications
You must be signed in to change notification settings - Fork 285
Add emoji convert #512
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
Add emoji convert #512
Conversation
|
Why you close this pull request? |
I forgot import function in unit test |
I'm finished new commit. You can check it. |
|
Google colab for test https://colab.research.google.com/drive/1rPhv0vRk1a3vCu1oWz9-ehs3FmLDbkqj?usp=sharing |
There was a problem hiding this 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.
Thank for reviewing my code. I update document format based on your suggestions. |
|
Happy New Year! |
There was a problem hiding this 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
Happy New Year 2021 ^_^ |
There was a problem hiding this 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.
pythainlp/util/emojiconv.py
Outdated
| # output: :ธง_ไทย: นี่คิือธงประเทศไทย | ||
| """ | ||
|
|
||
| emoji_regex = re.compile("|".join(map(re.escape, _emojis))) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait a sec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been done.
What does this changes
Implement emoji convert for Thai language from https://www.emojiall.com/th/all-emojis
Will close #469