您当前的位置: 首页 >  机器人

段智华

暂无认证

  • 3浏览

    0关注

    1232博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

自然语言处理NLP星空智能对话机器人系列:深入理解Transformer自然语言处理 KantaiBERT Initializing the trainer

段智华 发布时间:2021-09-21 21:31:33 ,浏览量:3

自然语言处理NLP星空智能对话机器人系列:深入理解Transformer自然语言处理 KantaiBERT Initializing the trainer

目录
  • Step : Building the dataset
  • Step : Defining a data collator
  • Step : Initializing the trainer
  • 星空智能对话机器人系列博客

Step : Building the dataset

现在逐行加载数据集,使用块进行批量训练,block_size=128 示例的长度 ,Hugging Face投入了大量的资源 用于优化处理数据所需时间 :

#@title Step 10: Building the Dataset
#%%time
from transformers import LineByLineTextDataset

dataset = LineByLineText
关注
打赏
1659361485
查看更多评论
立即登录/注册

微信扫码登录

0.0877s