How to compute mean/max of HuggingFace Transformers BERT token embeddings with attention mask?

前端 未结 0 1487
醉酒成梦
醉酒成梦 2020-12-01 08:46

I\'m using the HuggingFace Transformers BERT model, and I want to compute a summary vector (a.k.a. embedding) over the tokens in a sentence, using either the mean

相关标签:
回答
  • 消灭零回复
提交回复
热议问题