Browse Source

错误修复

tags/v0.5.0
yh 5 years ago
parent
commit
16e9e3a685
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      reproduction/sequence_labelling/ner/model/dilated_cnn.py
  2. +0
    -1
      reproduction/sequence_labelling/ner/model/lstm_cnn_crf.py

+ 1
- 1
reproduction/sequence_labelling/ner/model/dilated_cnn.py View File

@@ -2,7 +2,7 @@ import torch
import torch.nn as nn
import torch.nn.functional as F
from fastNLP.modules.decoder import ConditionalRandomField
from fastNLP.modules.encoder import Embedding
from fastNLP.embeddings import Embedding
from fastNLP.core.utils import seq_len_to_mask
from fastNLP.core.const import Const as C



+ 0
- 1
reproduction/sequence_labelling/ner/model/lstm_cnn_crf.py View File

@@ -1,5 +1,4 @@

import torch
from torch import nn
from fastNLP import seq_len_to_mask
from fastNLP.modules import LSTM


Loading…
Cancel
Save