利用BiLSTM网络实现文本分类

这里数据的Preprocess过程不贴代码了,训练过程(train)也不贴了,只是记录一下BiLSTM网络实现代码: 这里隐层数为2,词向量为100维。 import tensorflow as tf from tensorflow.contrib import rnn class Model(object): def __init__(self, num_layers, seq_length
相关文章
相关标签/搜索