简体   繁体   English

从技术上讲,Venmo 的表情符号自动完成功能如何工作?

[英]How does Venmo's emoji auto-complete feature work, technically?

Venmo rolled out their emoji auto-complete feature pretty much a week after coming up with it over a pizza dinner . Venmo 推出了他们的表情符号自动完成功能,一周后在披萨晚餐上提出了它。

How would one implement this with Python?如何用 Python 实现这一点? Are there any libraries or packages that would make this an easy implementation?是否有任何库或包可以使这成为一个简单的实现?

I don't know the exact author implementation in the Medium article you mentioned, but a naive implementation would look like this:我不知道你提到的 Medium 文章中的确切作者实现,但一个简单的实现看起来像这样:

  • tag each of the emoji with what they can represent.用它们可以代表的内容标记每个表情符号。

  • create a map from these word to the corresponding emoji创建从这些单词到相应表情符号的映射

  • during auto-complete search the recommended words in your map and recommend that emoji instead of the word.在自动完成搜索地图中推荐的单词期间,并推荐使用表情符号而不是单词。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM