摘要:
https://blog.csdn.net/yilovexing/article/details/80577510 1. *args 和**kwargs python函数传递参数的方式有两种: 位置参数(positional argument) 关键词参数(keyword argument) 原来上 阅读全文
posted @ 2020-09-26 22:37
lypbendlf
阅读(274)
评论(0)
推荐(0)
摘要:
1.byte-level text encoding https://zhuanlan.zhihu.com/p/170656789 BPE(Byte-Pair Encoding)该方法使用bytes(字节)作为基础的子词单元,这样便把词汇表的大小控制到了5w。它可以在不需要引入任何未知字符前提下对任 阅读全文
posted @ 2020-09-26 20:20
lypbendlf
阅读(603)
评论(0)
推荐(1)
摘要:
https://github.com/huggingface/transformers/issues/1827 from transformers import BertModel, BertConfig config = BertConfig.from_pretrained("xxx", outp 阅读全文
posted @ 2020-09-26 19:02
lypbendlf
阅读(3045)
评论(0)
推荐(0)
浙公网安备 33010602011771号