ChineseBert icon indicating copy to clipboard operation
ChineseBert copied to clipboard

请问transformers什么时候可以支持chinesebert?

Open huangjiaheng opened this issue 2 years ago • 3 comments

huangjiaheng avatar Aug 25 '22 07:08 huangjiaheng

我做了一版: ChineseBERT-base ChineseBERT-large

iioSnail avatar Jul 26 '23 03:07 iioSnail

我做了一版: ChineseBERT-base ChineseBERT-large

大佬你好,我学习到您包装的transformer版的模型。但是输出中只有字典大小的logits。请问怎样才能获取到每个汉字的嵌入向量(last_hidden_state)呢?谢谢

yunkai-zhang avatar Dec 19 '23 08:12 yunkai-zhang

model.bert(**inputs) 这样就可以了

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年12月19日 16:49 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [ShannonAI/ChineseBert] 请问transformers什么时候可以支持chinesebert? (Issue #67) |

我做了一版: ChineseBERT-baseChineseBERT-large

大佬你好,我学习到您包装的transformer版的模型。但是输出中只有字典大小的logits。请问怎样才能获取到每个汉字的嵌入向量(last_hidden_state)呢?谢谢

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

iioSnail avatar Dec 19 '23 10:12 iioSnail