Update modeling_fewshot_re_bert.py
Browse files
modeling_fewshot_re_bert.py
CHANGED
|
@@ -3,7 +3,7 @@ import torch.nn as nn
|
|
| 3 |
from transformers import BertConfig, BertModel, BertPreTrainedModel
|
| 4 |
|
| 5 |
|
| 6 |
-
class
|
| 7 |
|
| 8 |
def __init__(self, config: BertConfig, **kwargs):
|
| 9 |
super().__init__(config)
|
|
|
|
| 3 |
from transformers import BertConfig, BertModel, BertPreTrainedModel
|
| 4 |
|
| 5 |
|
| 6 |
+
class BertForRelationClassification(BertPreTrainedModel):
|
| 7 |
|
| 8 |
def __init__(self, config: BertConfig, **kwargs):
|
| 9 |
super().__init__(config)
|