Thesis/pretrain/models/model.py

10 lines
247 B
Python

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