model.py:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import torch
from torch import nn
import numpy as np
from torch.autograd import Variable
import torch.nn.functional as F
class TextRNN(nn.Module):
文本分类,RNN模型
def __init__(self):
super(TextRNN, self).__init__()
# 三个待输入的数据
self
2021-10-05 14:37:51
103KB
c
lstm
OR
1