SYMBOL INDEX (224 symbols across 28 files) FILE: zhihu-text-classification-master/data_process/char2id.py function get_id (line 23) | def get_id(char): function get_id4chars (line 33) | def get_id4chars(chars): function test_char2id (line 40) | def test_char2id(): function train_char2id (line 76) | def train_char2id(): FILE: zhihu-text-classification-master/data_process/creat_batch_data.py function topics2ids (line 49) | def topics2ids(topics): function get_lables (line 56) | def get_lables(): function wd_train_get_batch (line 71) | def wd_train_get_batch(title_len=30, content_len=150, batch_size=128): function wd_test_get_batch (line 109) | def wd_test_get_batch(title_len=30, content_len=150, batch_size=128): function ch_train_get_batch (line 124) | def ch_train_get_batch(title_len=52, content_len=300, batch_size=128): function ch_test_get_batch (line 159) | def ch_test_get_batch(title_len=52, content_len=300, batch_size=128): FILE: zhihu-text-classification-master/data_process/creat_batch_seg.py function wd_train_get_batch (line 34) | def wd_train_get_batch(title_len=30, batch_size=128): function wd_test_get_batch (line 70) | def wd_test_get_batch(title_len=30, batch_size=128): function ch_train_get_batch (line 87) | def ch_train_get_batch(title_len=52, batch_size=128): function ch_test_get_batch (line 123) | def ch_test_get_batch(title_len=52, batch_size=128): FILE: zhihu-text-classification-master/data_process/embed2ndarray.py function get_word_embedding (line 15) | def get_word_embedding(): function get_char_embedding (line 43) | def get_char_embedding(): FILE: zhihu-text-classification-master/data_process/question_and_topic_2id.py function question_and_topic_2id (line 8) | def question_and_topic_2id(): FILE: zhihu-text-classification-master/data_process/test.py function func (line 7) | def func(a, b): FILE: zhihu-text-classification-master/data_process/word2id.py function get_id (line 22) | def get_id(word): function get_id4words (line 32) | def get_id4words(words): function test_word2id (line 39) | def test_word2id(): function train_word2id (line 75) | def train_word2id(): FILE: zhihu-text-classification-master/models/wd_1_1_cnn_concat/network.py class Settings (line 10) | class Settings(object): method __init__ (line 11) | def __init__(self): class TextCNN (line 23) | class TextCNN(object): method __init__ (line 30) | def __init__(self, W_embedding, settings): method tst (line 89) | def tst(self): method keep_prob (line 93) | def keep_prob(self): method batch_size (line 97) | def batch_size(self): method global_step (line 101) | def global_step(self): method X1_inputs (line 105) | def X1_inputs(self): method X2_inputs (line 109) | def X2_inputs(self): method y_inputs (line 113) | def y_inputs(self): method y_pred (line 117) | def y_pred(self): method loss (line 121) | def loss(self): method weight_variable (line 124) | def weight_variable(self, shape, name): method bias_variable (line 129) | def bias_variable(self, shape, name): method batchnorm (line 134) | def batchnorm(self, Ylogits, offset, convolutional=False): method cnn_inference (line 160) | def cnn_inference(self, X_inputs, n_step): FILE: zhihu-text-classification-master/models/wd_1_1_cnn_concat/predict.py function get_batch (line 37) | def get_batch(batch_id): function get_test_batch (line 47) | def get_test_batch(batch_id): function local_predict (line 55) | def local_predict(sess, model): function predict (line 82) | def predict(sess, model): function main (line 101) | def main(_): FILE: zhihu-text-classification-master/models/wd_1_1_cnn_concat/train.py function get_batch (line 57) | def get_batch(data_path, batch_id): function valid_epoch (line 67) | def valid_epoch(data_path, sess, model): function train_epoch (line 92) | def train_epoch(data_train_path, sess, model, train_fetches, valid_fetch... function main (line 129) | def main(_): FILE: zhihu-text-classification-master/models/wd_1_2_cnn_max/network.py class Settings (line 10) | class Settings(object): method __init__ (line 11) | def __init__(self): class TextCNN (line 23) | class TextCNN(object): method __init__ (line 30) | def __init__(self, W_embedding, settings): method tst (line 92) | def tst(self): method keep_prob (line 96) | def keep_prob(self): method batch_size (line 100) | def batch_size(self): method global_step (line 104) | def global_step(self): method X1_inputs (line 108) | def X1_inputs(self): method X2_inputs (line 112) | def X2_inputs(self): method y_inputs (line 116) | def y_inputs(self): method y_pred (line 120) | def y_pred(self): method loss (line 124) | def loss(self): method weight_variable (line 127) | def weight_variable(self, shape, name): method bias_variable (line 132) | def bias_variable(self, shape, name): method batchnorm (line 137) | def batchnorm(self, Ylogits, offset, convolutional=False): method cnn_inference (line 163) | def cnn_inference(self, X_inputs, n_step): FILE: zhihu-text-classification-master/models/wd_1_2_cnn_max/predict.py function get_batch (line 37) | def get_batch(batch_id): function get_test_batch (line 47) | def get_test_batch(batch_id): function local_predict (line 55) | def local_predict(sess, model): function predict (line 82) | def predict(sess, model): function main (line 101) | def main(_): FILE: zhihu-text-classification-master/models/wd_1_2_cnn_max/train.py function get_batch (line 58) | def get_batch(data_path, batch_id): function valid_epoch (line 68) | def valid_epoch(data_path, sess, model): function train_epoch (line 93) | def train_epoch(data_path, sess, model, train_fetches, valid_fetches, tr... function main (line 130) | def main(_): FILE: zhihu-text-classification-master/models/wd_2_hcnn/network.py class Settings (line 10) | class Settings(object): method __init__ (line 11) | def __init__(self): class HCNN (line 24) | class HCNN(object): method __init__ (line 31) | def __init__(self, W_embedding, settings): method tst (line 91) | def tst(self): method keep_prob (line 95) | def keep_prob(self): method batch_size (line 99) | def batch_size(self): method global_step (line 103) | def global_step(self): method X1_inputs (line 107) | def X1_inputs(self): method X2_inputs (line 111) | def X2_inputs(self): method y_inputs (line 115) | def y_inputs(self): method y_pred (line 119) | def y_pred(self): method loss (line 123) | def loss(self): method weight_variable (line 126) | def weight_variable(self, shape, name): method bias_variable (line 131) | def bias_variable(self, shape, name): method batchnorm (line 136) | def batchnorm(self, Ylogits, offset, convolutional=False): method textcnn (line 162) | def textcnn(self, X_inputs, n_step, filter_sizes, embed_size): method cnn_inference (line 189) | def cnn_inference(self, X_inputs): method hcnn_inference (line 201) | def hcnn_inference(self, X_inputs): FILE: zhihu-text-classification-master/models/wd_2_hcnn/predict.py function get_batch (line 37) | def get_batch(batch_id): function get_test_batch (line 47) | def get_test_batch(batch_id): function local_predict (line 55) | def local_predict(sess, model): function predict (line 82) | def predict(sess, model): function main (line 101) | def main(_): FILE: zhihu-text-classification-master/models/wd_2_hcnn/train.py function get_batch (line 57) | def get_batch(data_path, batch_id): function valid_epoch (line 67) | def valid_epoch(data_path, sess, model): function train_epoch (line 92) | def train_epoch(data_path, sess, model, train_fetches, valid_fetches, tr... function main (line 129) | def main(_): FILE: zhihu-text-classification-master/models/wd_3_bigru/network.py class Settings (line 12) | class Settings(object): method __init__ (line 13) | def __init__(self): class BiGRU (line 25) | class BiGRU(object): method __init__ (line 32) | def __init__(self, W_embedding, settings): method tst (line 89) | def tst(self): method keep_prob (line 93) | def keep_prob(self): method batch_size (line 97) | def batch_size(self): method global_step (line 101) | def global_step(self): method X1_inputs (line 105) | def X1_inputs(self): method X2_inputs (line 109) | def X2_inputs(self): method y_inputs (line 113) | def y_inputs(self): method y_pred (line 117) | def y_pred(self): method loss (line 121) | def loss(self): method weight_variable (line 124) | def weight_variable(self, shape, name): method bias_variable (line 129) | def bias_variable(self, shape, name): method batchnorm (line 134) | def batchnorm(self, Ylogits, offset, convolutional=False): method gru_cell (line 159) | def gru_cell(self): method bi_gru (line 164) | def bi_gru(self, inputs): method task_specific_attention (line 175) | def task_specific_attention(self, inputs, output_size, method bigru_inference (line 205) | def bigru_inference(self, X_inputs): function test (line 213) | def test(): FILE: zhihu-text-classification-master/models/wd_3_bigru/predict.py function get_batch (line 37) | def get_batch(batch_id): function get_test_batch (line 47) | def get_test_batch(batch_id): function local_predict (line 55) | def local_predict(sess, model): function predict (line 82) | def predict(sess, model): function main (line 101) | def main(_): FILE: zhihu-text-classification-master/models/wd_3_bigru/train.py function get_batch (line 57) | def get_batch(data_path, batch_id): function valid_epoch (line 67) | def valid_epoch(data_path, sess, model): function train_epoch (line 92) | def train_epoch(data_path, sess, model, train_fetches, valid_fetches, tr... function main (line 129) | def main(_): FILE: zhihu-text-classification-master/models/wd_4_han/network.py class Settings (line 12) | class Settings(object): method __init__ (line 13) | def __init__(self): class HAN (line 25) | class HAN(object): method __init__ (line 32) | def __init__(self, W_embedding, settings): method tst (line 90) | def tst(self): method keep_prob (line 94) | def keep_prob(self): method batch_size (line 98) | def batch_size(self): method global_step (line 102) | def global_step(self): method X1_inputs (line 106) | def X1_inputs(self): method X2_inputs (line 110) | def X2_inputs(self): method y_inputs (line 114) | def y_inputs(self): method y_pred (line 118) | def y_pred(self): method loss (line 122) | def loss(self): method weight_variable (line 125) | def weight_variable(self, shape, name): method bias_variable (line 130) | def bias_variable(self, shape, name): method batchnorm (line 135) | def batchnorm(self, Ylogits, offset, convolutional=False): method gru_cell (line 160) | def gru_cell(self): method bi_gru (line 165) | def bi_gru(self, inputs, seg_num): method task_specific_attention (line 179) | def task_specific_attention(self, inputs, output_size, method bigru_inference (line 209) | def bigru_inference(self, X_inputs): method han_inference (line 215) | def han_inference(self, X_inputs): function test (line 238) | def test(): FILE: zhihu-text-classification-master/models/wd_4_han/predict.py function get_batch (line 37) | def get_batch(batch_id): function get_test_batch (line 47) | def get_test_batch(batch_id): function local_predict (line 55) | def local_predict(sess, model): function predict (line 82) | def predict(sess, model): function main (line 101) | def main(_): FILE: zhihu-text-classification-master/models/wd_4_han/train.py function get_batch (line 57) | def get_batch(data_path, batch_id): function valid_epoch (line 67) | def valid_epoch(data_path, sess, model): function train_epoch (line 92) | def train_epoch(data_path, sess, model, train_fetches, valid_fetches, tr... function main (line 129) | def main(_): FILE: zhihu-text-classification-master/models/wd_5_bigru_cnn/network.py class Settings (line 13) | class Settings(object): method __init__ (line 14) | def __init__(self): class BiGRU_CNN (line 28) | class BiGRU_CNN(object): method __init__ (line 35) | def __init__(self, W_embedding, settings): method tst (line 98) | def tst(self): method keep_prob (line 102) | def keep_prob(self): method batch_size (line 106) | def batch_size(self): method global_step (line 110) | def global_step(self): method X1_inputs (line 114) | def X1_inputs(self): method X2_inputs (line 118) | def X2_inputs(self): method y_inputs (line 122) | def y_inputs(self): method y_pred (line 126) | def y_pred(self): method loss (line 130) | def loss(self): method weight_variable (line 133) | def weight_variable(self, shape, name): method bias_variable (line 138) | def bias_variable(self, shape, name): method batchnorm (line 143) | def batchnorm(self, Ylogits, offset, convolutional=False): method gru_cell (line 168) | def gru_cell(self): method bi_gru (line 173) | def bi_gru(self, inputs): method task_specific_attention (line 184) | def task_specific_attention(self, inputs, output_size, method bigru_inference (line 214) | def bigru_inference(self, X_inputs): method cnn_inference (line 220) | def cnn_inference(self, X_inputs, n_step): function test (line 252) | def test(): FILE: zhihu-text-classification-master/models/wd_5_bigru_cnn/predict.py function get_batch (line 37) | def get_batch(batch_id): function get_test_batch (line 47) | def get_test_batch(batch_id): function local_predict (line 55) | def local_predict(sess, model): function predict (line 82) | def predict(sess, model): function main (line 101) | def main(_): FILE: zhihu-text-classification-master/models/wd_5_bigru_cnn/train.py function get_batch (line 57) | def get_batch(data_path, batch_id): function valid_epoch (line 67) | def valid_epoch(data_path, sess, model): function train_epoch (line 92) | def train_epoch(data_path, sess, model, train_fetches, valid_fetches, tr... function main (line 129) | def main(_): FILE: zhihu-text-classification-master/models/wd_6_rcnn/network.py class Settings (line 15) | class Settings(object): method __init__ (line 16) | def __init__(self): class RCNN (line 30) | class RCNN(object): method __init__ (line 31) | def __init__(self, W_embedding, settings): method tst (line 93) | def tst(self): method keep_prob (line 97) | def keep_prob(self): method batch_size (line 101) | def batch_size(self): method global_step (line 105) | def global_step(self): method X1_inputs (line 109) | def X1_inputs(self): method X2_inputs (line 113) | def X2_inputs(self): method y_inputs (line 117) | def y_inputs(self): method y_pred (line 121) | def y_pred(self): method loss (line 125) | def loss(self): method weight_variable (line 128) | def weight_variable(self, shape, name): method bias_variable (line 133) | def bias_variable(self, shape, name): method batchnorm (line 138) | def batchnorm(self, Ylogits, offset, convolutional=False): method gru_cell (line 164) | def gru_cell(self): method bi_gru (line 169) | def bi_gru(self, X_inputs): method textcnn (line 185) | def textcnn(self, cnn_inputs, n_step): method rcnn_inference (line 210) | def rcnn_inference(self, X_inputs, n_step): function test (line 217) | def test(): FILE: zhihu-text-classification-master/models/wd_6_rcnn/predict.py function get_batch (line 37) | def get_batch(batch_id): function get_test_batch (line 47) | def get_test_batch(batch_id): function local_predict (line 55) | def local_predict(sess, model): function predict (line 82) | def predict(sess, model): function main (line 101) | def main(_): FILE: zhihu-text-classification-master/models/wd_6_rcnn/train.py function get_batch (line 57) | def get_batch(data_path, batch_id): function valid_epoch (line 67) | def valid_epoch(data_path, sess, model): function train_epoch (line 92) | def train_epoch(data_path, sess, model, train_fetches, valid_fetches, tr... function main (line 129) | def main(_):