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
{{ message }}
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
Can i base on bert_spc to do ROBERTa model?
this is roberta model
import torch
import torch.nn as nn
class RoBERTa(nn.Module):
def init(self, roberta, opt):
super(RoBERTa, self).init()
self.roberta = roberta
self.dropout = nn.Dropout(opt.dropout)
self.dense = nn.Linear(opt.bert_dim, opt.polarities_dim)