Relphormer baseline
This commit is contained in:
Executable
+6
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
from transformers import BartForConditionalGeneration, T5ForConditionalGeneration, GPT2LMHeadModel
|
||||
|
||||
from .model import *
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
from transformers.models.bert.modeling_bert import BertForMaskedLM
|
||||
|
||||
|
||||
|
||||
|
||||
class BertKGC(BertForMaskedLM):
|
||||
@staticmethod
|
||||
def add_to_argparse(parser):
|
||||
parser.add_argument("--pretrain", type=int, default=0, help="")
|
||||
return parser
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user