MCPcopy Create free account

hub / github.com/brightmart/text_classification / functions

Functions642 in github.com/brightmart/text_classification

Methodget_labels
See base class.
a00_Bert/run_classifier_predict_online.py:135
Methodget_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:239
Methodget_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:263
Methodget_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:303
Methodget_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:343
Methodget_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:383
Methodget_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:434
Methodget_mask
(self,sequence_length)
a07_Transformer/a2_transformer_classification.py:132
Methodget_sequence_output
Gets final hidden layer of encoder. Returns: float Tensor of shape [batch_size, seq_length, hidden_size] corresponding to the final h
a00_Bert/bert_modeling.py:249
Methodget_test_examples
Gets a collection of `InputExample`s for prediction.
a00_Bert/run_classifier_predict_online.py:97
Methodget_test_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:258
Methodget_test_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:298
Methodget_test_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:338
Methodget_test_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:378
Methodget_test_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:429
Methodget_train_examples
Gets a collection of `InputExample`s for the train set.
a00_Bert/run_classifier_predict_online.py:89
Methodget_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:202
Methodget_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:247
Methodget_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:288
Methodget_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:328
Methodget_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:368
Methodget_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:419
Functionget_unique_labels_batch
(batch_size,length=None)
a07_Transformer/a2_transformer_classification.py:227
Functionget_weights_for_current_batch
get weights for current batch :param answer_list: a numpy array contain labels for a batch :param weights_dict: a dict that contain
a00_boosting/a08_boosting.py:42
Functionget_weights_label_as_standard_dict
(weights_label)
a00_boosting/a08_boosting.py:65
Methodgru_cell
single step of gru for word level :param Xt: Xt:[batch_size,embed_size] :param h_t_minus_1:[batch_size,embed_size] :r
a06_Seq2seqWithAttention/a1_seq2seq_attention_model.py:115
Methodgru_cell_decoder
single step of gru for word level :param Xt: Xt:[batch_size,embed_size] :param h_t_minus_1:[batch_size,embed_size] :p
a06_Seq2seqWithAttention/a1_seq2seq_attention_model.py:132
Functioninput_fn
The actual input function.
a00_Bert/unused/run_classifier_multi_labels_bert.py:616
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
a00_Bert/unused/run_classifier_multi_labels_bert.py:851
Functionload_data
input: a file path :return: train, test, valid. where train=(trainX, trainY). where trainX: is a list of list.each list re
a07_Transformer/data_util_zhihu.py:263
Functionload_data
load data from h5py and pickle cache files, which is generate by take step by step of pre-processing.ipynb :param cache_file_h5py: :param
a02_TextCNN/p7_TextCNN_predict.py:165
Functionload_data
input: a file path :return: train, test, valid. where train=(trainX, trainY). where trainX: is a list of list.each list repre
a02_TextCNN/other_experiement/data_util_zhihu.py:265
Functionload_data
input: a file path :return: train, test, valid. where train=(trainX, trainY). where trainX: is a list of list.each list re
a08_EntityNetwork/data_util_zhihu.py:263
Functionload_data_multilabel
convert data as indexes using word2index dicts. :param traning_data_path: :param vocab_word2index: :param vocab_label2index: :ret
a02_TextCNN/data_util.py:16
Functionload_data_multilabel_new_twoCNN
input: a file path :return: train, test, valid. where train=(trainX, trainY). where trainX: is a list of list.each list re
a07_Transformer/data_util_zhihu.py:201
Functionload_data_multilabel_new_twoCNN
input: a file path :return: train, test, valid. where train=(trainX, trainY). where trainX: is a list of list.each list repre
a02_TextCNN/other_experiement/data_util_zhihu.py:203
Functionload_data_multilabel_new_twoCNN
input: a file path :return: train, test, valid. where train=(trainX, trainY). where trainX: is a list of list.each list re
a08_EntityNetwork/data_util_zhihu.py:201
Functionload_data_with_multilabels
input: a file path :return: train, test, valid. where train=(trainX, trainY). where trainX: is a list of list.each list repre
aa1_data_util/data_util_zhihu.py:334
Functionload_data_with_multilabels
input: a file path :return: train, test, valid. where train=(trainX, trainY). where trainX: is a list of list.each list re
a07_Transformer/data_util_zhihu.py:334
Functionload_data_with_multilabels
input: a file path :return: train, test, valid. where train=(trainX, trainY). where trainX: is a list of list.each list repre
a02_TextCNN/other_experiement/data_util_zhihu.py:336
Functionload_data_with_multilabels
input: a file path :return: train, test, valid. where train=(trainX, trainY). where trainX: is a list of list.each list re
a08_EntityNetwork/data_util_zhihu.py:334
Functionloss
(logits,labels,weights)
a00_boosting/a08_boosting.py:59
Methodloss_multilabel
(self,l2_lambda=0.001)
aa6_TwoCNNTextRelation/p9_twoCNNTextRelation_model.py:124
Methodloss_nce
calculate loss using (NCE)cross entropy here
a03_TextRNN/p8_TextRNN_model_multi_layers.py:94
Methodloss_nce
calculate loss using (NCE)cross entropy here
a03_TextRNN/p8_TextRNN_model.py:86
Functionmain
(_)
a08_predict_ensemble.py:69
Functionmain
(_)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_predict.py:43
Functionmain
(_)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_train.py:42
Functionmain
(_)
a09_DynamicMemoryNet/a8_train.py:45
Functionmain
(_)
a09_DynamicMemoryNet/a8_predict.py:46
Functionmain
(_)
a00_Bert/train_bert_multi-label.py:35
Functionmain
(_)
a00_Bert/run_classifier_predict_online.py:322
Functionmain
(_)
a00_Bert/unused/run_classifier_multi_labels_bert.py:921
Functionmain
(_)
a00_Bert/unused/train_bert_multi-label_old.py:35
Functionmain
(_)
aa4_TextCNN_with_RCNN/p72_TextCNN_with_RCNN_train.py:39
Functionmain
(_)
a07_Transformer/a2_train.py:46
Functionmain
(_)
a07_Transformer/a2_predict_classification.py:44
Functionmain
(_)
a07_Transformer/a2_predict.py:47
Functionmain
(_)
a07_Transformer/a2_train_classification.py:45
Functionmain
(_)
a01_FastText/p5_fastTextB_predict_multilabel.py:33
Functionmain
(_)
a01_FastText/p6_fastTextB_train_multilabel.py:39
Functionmain
(_)
a01_FastText/old_single_label/p5_fastTextB_train.py:34
Functionmain
(_)
a01_FastText/old_single_label/p5_fastTextB_predict.py:37
Functionmain
(_)
aa6_TwoCNNTextRelation/p9_twoCNNTextRelation_train.py:36
Functionmain
(_)
a02_TextCNN/p7_TextCNN_train.py:46
Functionmain
(_)
a02_TextCNN/p7_TextCNN_predict.py:94
Functionmain
(_)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512_simple.py:40
Functionmain
(_)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp_512_0609.py:43
Functionmain
(_)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512.py:40
Functionmain
(_)
a02_TextCNN/other_experiement/p8_TextCNN_predict_exp.py:85
Functionmain
(_)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp.py:40
Functionmain
(_)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512_0609.py:40
Functionmain
(_)
a02_TextCNN/other_experiement/p7_TextCNN_predict_ensemble.py:4
Functionmain
(_)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp512.py:40
Functionmain
(_)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp.py:91
Functionmain
(_)
aa5_BiLstmTextRelation/p9_BiLstmTextRelation_train.py:33
Functionmain
(_)
a03_TextRNN/p8_TextRNN_predict.py:32
Functionmain
(_)
a03_TextRNN/p8_TextRNN_train.py:33
Functionmain
(_)
a08_EntityNetwork/a3_train.py:44
Functionmain
(_)
a08_EntityNetwork/a3_predict.py:43
Functionmain
(_)
a06_Seq2seqWithAttention/a1_seq2seq_attention_predict.py:50
Functionmain
(_)
a06_Seq2seqWithAttention/a1_seq2seq_attention_train.py:41
Functionmain
(_)
a04_TextRCNN/p71_TextRCNN_train.py:36
Functionmain
(_)
a04_TextRCNN/p71_TextRCNN_predict.py:35
Functionmetric_fn
(per_example_loss, label_ids, logits)
a00_Bert/unused/run_classifier_multi_labels_bert.py:816
Functionmodel_fn
The `model_fn` for TPUEstimator.
a00_Bert/unused/run_classifier_multi_labels_bert.py:759
Functionmulti_head_attention_for_sentence_vectorized
(layer_number)
a07_Transformer/a2_multi_head_attention.py:119
Methodnot_apply_dropout
()
a00_Bert/bert_modeling.py:163
Functionpredict
()
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:356
Functionpredict
()
a08_EntityNetwork/a3_entity_network.py:325
Functionprintable_text
Returns text encoded in a way suitable for print or `tf.logging`.
a00_Bert/tokenization.py:47
Functionprocess_each_row_get_lable
:param row: it is a list.length is number of labels. e.g. 2002 :param vocabulary_index2word_label :param result_list :return: a l
a07_Transformer/a2_predict_classification.py:124
Functionread_topic_info
()
aa1_data_util/data_util_zhihu.py:467
Functionread_topic_info
()
a07_Transformer/data_util_zhihu.py:466
Functionread_topic_info
()
a02_TextCNN/other_experiement/data_util_zhihu.py:468
Functionread_topic_info
()
a08_EntityNetwork/data_util_zhihu.py:466
Methodresidual_connection
(self)
a07_Transformer/a2_layer_norm_residual_conn.py:25
Functionrnn_decoder_with_attention
RNN decoder for the sequence-to-sequence model. Args: decoder_inputs: A list of 2D Tensors [batch_size x input_size].it is target Y, but s
a05_HierarchicalAttentionNetwork/p1_seq2seq.py:23
Methodscaled_dot_product_attention_batch_mine
scaled dot product attention :param Q: query. shape:[batch,sequence_length,d_model] :param K_s: keys. shape:[batch,sequ
a07_Transformer/a2_multi_head_attention.py:58
Methodsmoothing_cross_entropy
Cross entropy with label smoothing to limit over-confidence.
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:263
← previousnext →501–600 of 642, ranked by callers