Update modeling_TAAS.py
Browse files- modeling_TAAS.py +4 -4
modeling_TAAS.py
CHANGED
@@ -8,18 +8,18 @@ from torch.nn import Parameter
|
|
8 |
from torch.nn.init import normal_
|
9 |
import torch.utils.checkpoint
|
10 |
from torch import Tensor, device
|
11 |
-
from TAAS_utils import *
|
12 |
from transformers.modeling_utils import ModuleUtilsMixin
|
13 |
from transformers import AutoTokenizer, AutoModel, BertTokenizer
|
14 |
-
from graphormer import Graphormer3D
|
15 |
import pickle
|
16 |
import torch
|
17 |
import sys
|
18 |
-
from ner_model import NER_model
|
19 |
import numpy as np
|
20 |
|
21 |
|
22 |
-
from htc_loss import HTCLoss
|
23 |
from transformers.utils.hub import cached_file
|
24 |
remap_code_2_chn_file_path = cached_file(
|
25 |
'Cainiao-AI/TAAS',
|
|
|
8 |
from torch.nn.init import normal_
|
9 |
import torch.utils.checkpoint
|
10 |
from torch import Tensor, device
|
11 |
+
from .TAAS_utils import *
|
12 |
from transformers.modeling_utils import ModuleUtilsMixin
|
13 |
from transformers import AutoTokenizer, AutoModel, BertTokenizer
|
14 |
+
from .graphormer import Graphormer3D
|
15 |
import pickle
|
16 |
import torch
|
17 |
import sys
|
18 |
+
from .ner_model import NER_model
|
19 |
import numpy as np
|
20 |
|
21 |
|
22 |
+
from .htc_loss import HTCLoss
|
23 |
from transformers.utils.hub import cached_file
|
24 |
remap_code_2_chn_file_path = cached_file(
|
25 |
'Cainiao-AI/TAAS',
|