svjack commited on
Commit
f97469e
1 Parent(s): e4be780

Update JointBERT-master/model/modeling_jointbert.py

Browse files
JointBERT-master/model/modeling_jointbert.py CHANGED
@@ -1,6 +1,7 @@
1
  import torch
2
  import torch.nn as nn
3
- from transformers.modeling_bert import BertPreTrainedModel, BertModel, BertConfig
 
4
  from torchcrf import CRF
5
  from .module import IntentClassifier, SlotClassifier
6
 
 
1
  import torch
2
  import torch.nn as nn
3
+ #from transformers.modeling_bert import BertPreTrainedModel, BertModel, BertConfig
4
+ from transformers.models.bert.modeling_bert import BertPreTrainedModel, BertModel, BertConfig
5
  from torchcrf import CRF
6
  from .module import IntentClassifier, SlotClassifier
7