Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
3
2
5
XuehangCang
XuehangCang
Follow
umutphp's profile picture
1 follower
ยท
30 following
https://xuehang.me
XuehangCang
xuehangcang
AI & ML interests
Pretraining, NLP, CV
Recent Activity
reacted
to
aifeifei798
's
post
with ๐
19 days ago
๐ This program is designed to remove emojis from a given text. It uses a regular expression (regex) pattern to match and replace emojis with an empty string, effectively removing them from the text. The pattern includes a range of Unicode characters that correspond to various types of emojis, such as emoticons, symbols, and flags. By using this program, you can clean up text data by removing any emojis that may be present, which can be useful for text processing, analysis, or other applications where emojis are not desired. ๐ป ```python import re def remove_emojis(text): # Define a broader emoji pattern emoji_pattern = re.compile( "[" u"\U0001F600-\U0001F64F" # emoticons u"\U0001F300-\U0001F5FF" # symbols & pictographs u"\U0001F680-\U0001F6FF" # transport & map symbols u"\U0001F1E0-\U0001F1FF" # flags (iOS) u"\U00002702-\U000027B0" u"\U000024C2-\U0001F251" u"\U0001F900-\U0001F9FF" # supplemental symbols and pictographs u"\U0001FA00-\U0001FA6F" # chess symbols and more emojis u"\U0001FA70-\U0001FAFF" # more symbols and pictographs u"\U00002600-\U000026FF" # miscellaneous symbols u"\U00002B50-\U00002B59" # additional symbols u"\U0000200D" # zero width joiner u"\U0000200C" # zero width non-joiner u"\U0000FE0F" # emoji variation selector "]+", flags=re.UNICODE ) return emoji_pattern.sub(r'', text) ```
reacted
to
aifeifei798
's
post
with ๐ฅ
19 days ago
๐ This program is designed to remove emojis from a given text. It uses a regular expression (regex) pattern to match and replace emojis with an empty string, effectively removing them from the text. The pattern includes a range of Unicode characters that correspond to various types of emojis, such as emoticons, symbols, and flags. By using this program, you can clean up text data by removing any emojis that may be present, which can be useful for text processing, analysis, or other applications where emojis are not desired. ๐ป ```python import re def remove_emojis(text): # Define a broader emoji pattern emoji_pattern = re.compile( "[" u"\U0001F600-\U0001F64F" # emoticons u"\U0001F300-\U0001F5FF" # symbols & pictographs u"\U0001F680-\U0001F6FF" # transport & map symbols u"\U0001F1E0-\U0001F1FF" # flags (iOS) u"\U00002702-\U000027B0" u"\U000024C2-\U0001F251" u"\U0001F900-\U0001F9FF" # supplemental symbols and pictographs u"\U0001FA00-\U0001FA6F" # chess symbols and more emojis u"\U0001FA70-\U0001FAFF" # more symbols and pictographs u"\U00002600-\U000026FF" # miscellaneous symbols u"\U00002B50-\U00002B59" # additional symbols u"\U0000200D" # zero width joiner u"\U0000200C" # zero width non-joiner u"\U0000FE0F" # emoji variation selector "]+", flags=re.UNICODE ) return emoji_pattern.sub(r'', text) ```
published
a model
about 1 month ago
XuehangCang/autotrain-u9u6w-ehmyh
View all activity
Organizations
models
3
Sort:ย Recently updated
XuehangCang/autotrain-u9u6w-ehmyh
Text Generation
โข
Updated
about 1 month ago
XuehangCang/Llama3.1-8B-El
Text Generation
โข
Updated
Feb 27
โข
1
XuehangCang/Emotion-Classification
Text Classification
โข
Updated
Jan 13
โข
11
datasets
4
Sort:ย Recently updated
XuehangCang/jianke
Viewer
โข
Updated
Mar 7
โข
44.3k
โข
135
XuehangCang/NSAQTUP2018
Viewer
โข
Updated
Jan 22
โข
124
โข
8
XuehangCang/Erotic-literature
Viewer
โข
Updated
Jan 19
โข
10.7k
โข
77
XuehangCang/emotion-417k
Viewer
โข
Updated
Jan 15
โข
417k
โข
68