Skip to content

Commit 16e9e3a

Browse files
committed
错误修复
1 parent e2208d4 commit 16e9e3a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

reproduction/sequence_labelling/ner/model/dilated_cnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import torch.nn as nn
33
import torch.nn.functional as F
44
from fastNLP.modules.decoder import ConditionalRandomField
5-
from fastNLP.modules.encoder import Embedding
5+
from fastNLP.embeddings import Embedding
66
from fastNLP.core.utils import seq_len_to_mask
77
from fastNLP.core.const import Const as C
88

reproduction/sequence_labelling/ner/model/lstm_cnn_crf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
import torch
32
from torch import nn
43
from fastNLP import seq_len_to_mask
54
from fastNLP.modules import LSTM

0 commit comments

Comments
 (0)