You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q: How do you get the fixed representation? Did you do pooling or something?
A: Yes, pooling is required to get a fixed representation of a sentence. In the default strategy REDUCE_MEAN, I take the second-to-last hidden layer of all of the tokens in the sentence and do average pooling.
作者您好,请问使用您的代码应该如何改写能输出最终fine-tune的模型中的word embedding呢?
另外我注意到您没有进行分词,是一个中文字为单位,如果想使用字的embedding得到一个词汇的embedding,请问有什么比较好的方式么?谢谢!
The text was updated successfully, but these errors were encountered: