[英]Convert unicode string representation of emoji to unicode emoji in python
[英]python convert English emoji to string
我有以下文本:𝑤𝑖𝑓𝑒/𝑚𝑎𝑚𝑎据我了解,这是英语表情符号,所以我要使其成为:老婆/妈妈因此,我可以使用无法识别此文本的lang_detector。
谢谢。
您可以从python使用unicodedata
模块:
import unicodedata
print(unicodedata.normalize('NFKD', '𝑤𝑖𝑓𝑒 / 𝑚𝑎𝑚𝑎'))
输出为:
wife / mama
unicodedata的官方文档 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.