当前位置:网站首页>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 )
边栏推荐
- History of storage technology: from tape to hardware liquefaction
- Codeforces Round #620 (Div. 2)ABC
- Easyplayer mobile terminal plays webrtc protocol for a long time. Pressing the play page cannot close the "about us" page
- 解答02:Smith圆为什么能“上感下容 左串右并”?
- Digital intelligent supply chain collaboration solution for new energy industry
- [JS reverse hundred examples] pedata encryption information and zlib Application of gunzipsync()
- Goframe framework: basic auth Middleware
- Year end: the "time value" and business methodology of live broadcast E-commerce
- Company offensive operation guide
- Meituan Sanmian: how do you understand the principle of redis master-slave replication?
猜你喜欢

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

Alien world, real presentation, how does the alien version of Pokemon go achieve?

qYKVEtqdDg

Hands on data analysis unit 2 section 4 data visualization

数据库 实验二 查询

Performance test bottleneck tuning in 10 minutes! If you want to enter a large factory, you must know

论文阅读 (53):Universal Adversarial Perturbations

千呼万唤,5G双卡双通到底有多重要?

论文阅读 (58):Research and Implementation of Global Path Planning for Unmanned Surface Vehicle Based...

12 initialization of beautifulsoup class
随机推荐
7、VLAN-Trunk
New function! Qianfan magic pen apaas December capability monthly report
如何设计一个秒杀系统?
B. AND 0, Sum Big-Codeforces Round #716 (Div. 2)
Best practices cloud development cloudbase content audit capability
MySQL installation, configuration and uninstall
手机开户流程是什么?现在网上开户安全么?
B. Integers Shop-Hello 2022
How to design a seckill system?
Kotlin practical skills you should know
Which securities company is good for opening a mobile account? Is online account opening safe?
Analytic analog-to-digital (a/d) converter
Wechat applet: time selector for the estimated arrival date of the hotel
Answer 02: why can Smith circle "allow left string and right parallel"?
JSON - learning notes (message converter, etc.)
Bypass rights
Explanation of the principle and code implementation analysis of rainbow docking istio
单火线设计系列文章10:拓展应用-单火开关实现双控
论文阅读 (54):DeepFool: A Simple and Accurate Method to Fool Deep Neural Networks
Query the size of each table in the database