- 博客(5)
- 收藏
- 关注
翻译 《The Annotated Transformer》 Transformer论文解读与代码注释 中英对照 By Harvard NLP
原文链接🔗:http://nlp.seas.harvard.edu/2018/04/03/attention.htmlfrom IPython.display import ImageImage(filename='images/aiayn.png')The Transformer from “Attention is All You Need” has been on a lot of people’s minds over the last year. Besides producing ma
2022-04-03 22:43:19
2024
1
原创 自然语言处理的模型评估方法——BLEU方法
BLEU双语评估研究(Bilingual Evaluation Understudy)例子:参考译文1:There is a cat on the desk.参考译文2:The cat is on the desk.N-gram匹配规则( Pn\ P_n Pn )(Modified n-gram Precision)N-gram可以理解成是以n个词为单位Unigram 单个词汇Bigram 两个单词组合Trigram 三个单词组合取n=1,即1-gram(unigr
2021-03-31 11:39:00
965
原创 练习2-14 求奇数分之一序列前N项和 (15 分)
本题要求编写程序,计算序列 1 + 1/3 + 1/5 + … 的前N项之和。输入格式:输入在一行中给出一个正整数N。输出格式:在一行中按照“sum = S”的格式输出部分和的值S,精确到小数点后6位。题目保证计算结果不超过双精度范围。输入样例:23输出样例:sum = 2.549541看到有人犯了和我一样的错误所以发一下,仔细审题要求得出的是前n项和,如果for循环的条件里...
2019-03-14 09:53:41
2305
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人