当前位置:网站首页>How do I write a small program that can automatically edit new year greetings
How do I write a small program that can automatically edit new year greetings
2022-06-23 18:00:00 【In lower Claude-】
Implementation notes :
Step one : Only by building an artificial intelligence model can machines learn to speak like human beings , ad locum , Use python Language scripting , Stack based Transformer( A module in a neural network , Self attention mechanism is used to realize the relevance of words in sentences ) The decoder module of GPT-2 Model , Adopted BERT The participator of ( Divide the words in the sentence ) Build a large-scale deep learning model .
Step two : After building the model , There will still be some output results Bug appear .
At this time, we need to let computer algorithms learn how to speak like people , It means training him with a lot of data ( Learn how to talk ), We first adopted 100GB Chinese corpus CLUECorpus2020 data ( It covers all kinds of written materials collected on the Internet ) pretraining , Reuse over 10 Ten thousand Chinese lyrics ( You can only speak well if you are well informed ), Then collect all kinds of new year blessings , Fine tune the model (fine-tune - Fit the context )
Step three : The trained model can output the results written by artificial intelligence , There are still some problems with this result , But they are all small problems , You need to do some cutting and formatting on the string .
Step four : When it's done , You can see the example of black box printing , But this example is not user friendly enough , And only one person can use , How can we make people use it on their own computers , We need to turn it into something that everyone can access .
Step five : So I used Tencent cloud GPU The server , It has been configured on Tencent cloud server . Turn the artificial intelligence program we have written into one that everyone can access web service , Is to ask for it from all over the world , Ask him to output something , He can return a result .
Step six : But it's not easy enough , We use vue The framework compiles a set of human-computer interaction interface , Call the just written web Interface , Then export the results .
Step seven : Then we will release our human-computer interface , Another configuration has been carried out on Tencent cloud , Our website is finally online ! Everyone can easily and happily visit and share on wechat .
Finally, dezai wants to say , Natural language generation is inseparable from the excellent work of various researchers in recent years , At present, if artificial intelligence is used to generate different words (“ Based on artificial intelligence to create, rather than a simple combination of vocabulary ”) It has become possible .
Scientific research achievements used :
Radford, A., Narasimhan, K., Salimans, T., & Sutskever, I. (2018). Improving language understanding by generative pre-training.
Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805.
Xu, L., Zhang, X., & Dong, Q. (2020). CLUECorpus2020: A large-scale Chinese corpus for pre-training language model. arXiv preprint arXiv:2003.01355.
Ethayarajh, K. (2019). How contextual are contextualized word representations? comparing the geometry of BERT, ELMo, and GPT-2 embeddings. arXiv preprint arXiv:1909.00512.
Developer:
Tianrun Chen( Neural network algorithm ) Zhengjie Zhang(web Human computer interaction page )
边栏推荐
- Li Kou daily question - day 25 -495 Timo attack
- Establishment and use of SSL VPN (OpenVPN)
- How code 39 check bits are calculated
- CRMEB 二开短信功能教程
- What is the personal finance interest rate in 2022? How do individuals choose financial products?
- JSON - learning notes (message converter, etc.)
- A set of code to launch seven golang web frameworks at the same time
- Hapoxy-集群服务搭建
- 解析 | 模-数(A/D)转换器
- 解答03:Smith圆为什么能“上感下容 左串右并”?
猜你喜欢
![[network communication -- webrtc] source code analysis of webrtc -- bandwidth estimation at the receiving end](/img/b0/97dbf3d07a4ed86d6650a58a97a5fc.png)
[network communication -- webrtc] source code analysis of webrtc -- bandwidth estimation at the receiving end

Performance test bottleneck tuning in 10 minutes! If you want to enter a large factory, you must know
![[qsetting and.Ini configuration files] and [create resources.qrc] in QT](/img/67/85a5e7f6ad4220600acd377248ef46.png)
[qsetting and.Ini configuration files] and [create resources.qrc] in QT

微信小程序:酒店预计到店日期的时间选择器

Wechat applet: time selector for the estimated arrival date of the hotel

全局组织结构控制之抢滩登陆

JSON - learning notes (message converter, etc.)
![[network communication -- webrtc] analysis of webrtc source code -- supplement of pacingcontroller related knowledge points](/img/18/dda0c7fa33ee6cdf2bbb2f85099940.png)
[network communication -- webrtc] analysis of webrtc source code -- supplement of pacingcontroller related knowledge points

论文阅读 (54):DeepFool: A Simple and Accurate Method to Fool Deep Neural Networks

Meituan Sanmian: how do you understand the principle of redis master-slave replication?
随机推荐
Li Kou daily question - day 25 -495 Timo attack
Revil - blackmail Virus Emergency Response
Android kotlin exception handling
Establishment and use of SSL VPN (OpenVPN)
[qsetting and.Ini configuration files] and [create resources.qrc] in QT
PostgreSQL series articles -- the world's most advanced open source relational database
MySQL的 安裝、配置、卸載
MySQL事务提交流程
ACM players take you to play with the array!
12. Manage network environment
Performance test bottleneck tuning in 10 minutes! If you want to enter a large factory, you must know
Ner's past, present and future Overview - Future
POC about secureworks' recent azure Active Directory password brute force vulnerability
. Net cloud native architect training camp (responsibility chain mode) -- learning notes
Drawing black technology - easy to build a "real twin" 2D scene
Réponse 02: pourquoi le cercle Smith peut - il "se sentir haut et bas et se tenir à droite et à droite"?
Meituan Sanmian: how do you understand the principle of redis master-slave replication?
Goframe framework: basic auth Middleware
What is the personal finance interest rate in 2022? How do individuals choose financial products?
Company offensive operation guide