MCPcopy Create free account

hub / github.com/brightmart/text_classification / functions

Functions642 in github.com/brightmart/text_classification

↓ 1 callersMethodloss
(self,l2_lambda=0.0001)
a03_TextRNN/p8_TextRNN_model.py:75
↓ 1 callersMethodloss
(self, l2_lambda=0.0001)
a08_EntityNetwork/a3_entity_network.py:201
↓ 1 callersMethodloss
(self,l2_lambda=0.0001)
a04_TextRCNN/p71_TextRCNN_model.py:149
↓ 1 callersMethodloss
(self,l2_lambda=0.0001)
a04_TextRCNN/p71_TextRCNN_mode2.py:162
↓ 1 callersMethodloss_multilabel
(self, l2_lambda=0.00001*10)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_model.py:187
↓ 1 callersMethodloss_multilabel
(self, l2_lambda=0.00001*10)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_model_transformer.py:205
↓ 1 callersMethodloss_multilabel
(self, l2_lambda=0.0001)
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:251
↓ 1 callersMethodloss_multilabel
(self,l2_lambda=0.00001)
aa4_TextCNN_with_RCNN/p72_TextCNN_with_RCNN_model.py:230
↓ 1 callersMethodloss_multilabel
(self,l2_lambda=0.0001)
a02_TextCNN/p7_TextCNN_model.py:159
↓ 1 callersMethodloss_multilabel
(self,l2_lambda=0.0001)
a02_TextCNN/other_experiement/p7_TextCNN_model_multilayers.py:116
↓ 1 callersMethodloss_multilabel
(self, l2_lambda=0.0001)
a08_EntityNetwork/a3_entity_network.py:212
↓ 1 callersMethodloss_multilabel
(self,l2_lambda=0.00001)
a04_TextRCNN/p71_TextRCNN_model.py:160
↓ 1 callersMethodloss_multilabel
(self,l2_lambda=0.00001)
a04_TextRCNN/p71_TextRCNN_mode2.py:173
↓ 1 callersMethodloss_seq2seq
(self)
a07_Transformer/a2_transformer.py:110
↓ 1 callersMethodloss_seq2seq
(self)
a06_Seq2seqWithAttention/a1_seq2seq_attention_model.py:95
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
a00_Bert/unused/run_classifier_multi_labels_bert.py:754
↓ 1 callersFunctionnot_apply_dropout
(output_layer)
a00_Bert/train_bert_multi-label.py:127
↓ 1 callersMethodoutput_module
1.use attention mechanism between query and hidden states, to get weighted sum of hidden state. 2.non-linearity of query and hidden state to
a08_EntityNetwork/a3_entity_network.py:135
↓ 1 callersFunctionpredict_online
do online prediction. each time make prediction for one instance. you can change to a batch if you want. :param line: a list. element is:
a00_Bert/run_classifier_predict_online.py:354
↓ 1 callersFunctionproces_label_to_algin
given a list of labels, process it to fixed size('require_size') :param ys_list: a list :return: a list
aa1_data_util/data_util_zhihu.py:434
↓ 1 callersFunctionproces_label_to_algin
:param ys_list: a list :return: a list
a07_Transformer/data_util_zhihu.py:434
↓ 1 callersFunctionproces_label_to_algin
given a list of labels, process it to fixed size('require_size') :param ys_list: a list :return: a list
a01_FastText/p6_fastTextB_train_multilabel.py:253
↓ 1 callersFunctionproces_label_to_algin
:param ys_list: a list :return: a list
a02_TextCNN/other_experiement/data_util_zhihu.py:436
↓ 1 callersFunctionproces_label_to_algin
:param ys_list: a list :return: a list
a08_EntityNetwork/data_util_zhihu.py:434
↓ 1 callersFunctionprocess_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.py:122
↓ 1 callersFunctionprocess_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 lable
a06_Seq2seqWithAttention/a1_seq2seq_attention_predict.py:106
↓ 1 callersFunctionprocess_labels
process labels to get fixed size labels given a spense label :param trainY_batch: :return:
a01_FastText/p6_fastTextB_train_multilabel.py:228
↓ 1 callersFunctionprocess_one_sentence_to_get_ui_bi_tri_gram
:param sentence: string. example:'w17314 w5521 w7729 w767 w10147 w111' :param n_gram: :return:string. example:'w17314 w17314w5521 w17314w
aa1_data_util/data_util_zhihu.py:304
↓ 1 callersFunctionprocess_one_sentence_to_get_ui_bi_tri_gram
:param sentence: string. example:'w17314 w5521 w7729 w767 w10147 w111' :param n_gram: :return:string. example:'w17314 w17314w5521 w173
a07_Transformer/data_util_zhihu.py:304
↓ 1 callersFunctionprocess_one_sentence_to_get_ui_bi_tri_gram
:param sentence: string. example:'w17314 w5521 w7729 w767 w10147 w111' :param n_gram: :return:string. example:'w17314 w17314w5521 w17314w
a02_TextCNN/other_experiement/data_util_zhihu.py:306
↓ 1 callersFunctionprocess_one_sentence_to_get_ui_bi_tri_gram
:param sentence: string. example:'w17314 w5521 w7729 w767 w10147 w111' :param n_gram: :return:string. example:'w17314 w17314w5521 w173
a08_EntityNetwork/data_util_zhihu.py:304
↓ 1 callersMethodquestion_module
input:tokens of query:[batch_size,sequence_length] :return: representation of question:[batch_size,hidden_size]
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:94
↓ 1 callersFunctionread_topic_info
()
aa1_data_util/3_process_zhihu_question_topic_relation.py:62
↓ 1 callersFunctionread_write
(source_file_path,target_file_path)
a02_TextCNN/p7_temp.py:3
↓ 1 callersFunctionrnn_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 decoder input.
a06_Seq2seqWithAttention/a1_seq2seq.py:23
↓ 1 callersMethodrnn_story
run rnn for story to get last hidden state input is: story: [batch_size,story_length,embed_size] :return:
a08_EntityNetwork/a3_entity_network.py:154
↓ 1 callersMethodscaled_dot_product_attention_batch
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:86
↓ 1 callersFunctionsort_by_value
(d)
aa1_data_util/data_util_zhihu.py:95
↓ 1 callersFunctionsort_by_value
(d)
a07_Transformer/data_util_zhihu.py:95
↓ 1 callersFunctionsort_by_value
(d)
a02_TextCNN/other_experiement/data_util_zhihu.py:97
↓ 1 callersFunctionsort_by_value
(d)
a08_EntityNetwork/data_util_zhihu.py:95
↓ 1 callersFunctionsplit_list
(listt)
aa1_data_util/1_process_zhihu.py:83
↓ 1 callersFunctionsplit_list
(listt)
aa1_data_util/3_process_zhihu_question_topic_relation.py:98
↓ 1 callersFunctionstat_training_data_length
()
aa1_data_util/data_util_zhihu.py:484
↓ 1 callersFunctionstat_training_data_length
()
a07_Transformer/data_util_zhihu.py:483
↓ 1 callersFunctionstat_training_data_length
()
a02_TextCNN/other_experiement/data_util_zhihu.py:485
↓ 1 callersFunctionstat_training_data_length
()
a08_EntityNetwork/data_util_zhihu.py:483
↓ 1 callersFunctiontest
()
a03_TextRNN/p8_TextRNN_model_multi_layers.py:120
↓ 1 callersFunctiontest
()
a03_TextRNN/p8_TextRNN_model.py:112
↓ 1 callersFunctiontest
()
a06_Seq2seqWithAttention/a1_seq2seq_attention_model.py:217
↓ 1 callersFunctiontest_position_wise_feed_forward_fn
()
a07_Transformer/a2_poistion_wise_feed_forward.py:62
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
a00_Bert/bert_modeling.py:96
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_model.py:203
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_model_transformer.py:221
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a05_HierarchicalAttentionNetwork/HAN_model.py:169
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:281
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
aa4_TextCNN_with_RCNN/p72_TextCNN_with_RCNN_model.py:245
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a07_Transformer/a2_transformer.py:119
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a07_Transformer/a2_transformer_classification.py:115
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a01_FastText/p6_fastTextB_model_multilabel.py:95
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a01_FastText/old_single_label/p5_fastTextB_model.py:86
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
aa6_TwoCNNTextRelation/p9_twoCNNTextRelation_model.py:138
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
aa5_BiLstmTextRelation/p9_BiLstmTextRelation_model.py:90
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a03_TextRNN/p8_TextRNN_model_multi_layers.py:113
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a03_TextRNN/p8_TextRNN_model.py:105
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a08_EntityNetwork/a3_entity_network.py:242
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a06_Seq2seqWithAttention/a1_seq2seq_attention_model.py:106
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a04_TextRCNN/p71_TextRCNN_model.py:175
↓ 1 callersMethodtrain
based on the loss, use SGD to update parameter
a04_TextRCNN/p71_TextRCNN_mode2.py:188
↓ 1 callersFunctiontransform_multilabel_as_multihot
convert to multi-hot style :param label_list: e.g.[0,1,4], here 4 means in the 4th position it is true value(as indicate by'1') :param la
a02_TextCNN/data_util.py:52
↓ 1 callersFunctiontransformer_model
Multi-headed, multi-layer Transformer from "Attention is All You Need". This is almost an exact implementation of the original Transformer encoder.
a00_Bert/bert_modeling.py:774
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a08_predict_ensemble.py:208
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_predict.py:115
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a09_DynamicMemoryNet/a8_predict.py:118
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a07_Transformer/a2_predict_classification.py:144
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a07_Transformer/a2_predict.py:142
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a01_FastText/p5_fastTextB_predict_multilabel.py:93
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a01_FastText/old_single_label/p5_fastTextB_predict.py:96
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a02_TextCNN/p7_TextCNN_predict.py:161
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512_simple.py:107
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512.py:107
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a02_TextCNN/other_experiement/p8_TextCNN_predict_exp.py:152
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512_0609.py:107
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp.py:158
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a03_TextRNN/p8_TextRNN_predict.py:110
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a08_EntityNetwork/a3_predict.py:113
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a06_Seq2seqWithAttention/a1_seq2seq_attention_predict.py:138
↓ 1 callersFunctionwrite_question_id_with_labels
(question_id,labels_list,f)
a04_TextRCNN/p71_TextRCNN_predict.py:106
Method__init__
init all hyperparameter here
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_model.py:8
Method__init__
init all hyperparameter here
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_model_transformer.py:9
Method__init__
init all hyperparameter here
a05_HierarchicalAttentionNetwork/HAN_model.py:9
Method__init__
init all hyperparameter here
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:17
Method__init__
(self, vocab_file, do_lower_case=True)
a00_Bert/tokenization.py:113
Method__init__
Constructs a BasicTokenizer. Args: do_lower_case: Whether to lower case the input.
a00_Bert/tokenization.py:137
Method__init__
(self, vocab, unk_token="[UNK]", max_input_chars_per_word=100)
a00_Bert/tokenization.py:252
Method__init__
Constructs a AdamWeightDecayOptimizer.
a00_Bert/optimization.py:87
Method__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first sequence. For sing
a00_Bert/run_classifier_predict_online.py:59
Method__init__
(self, input_ids, input_mask, segment_ids, label_id)
a00_Bert/run_classifier_predict_online.py:79
Method__init__
(self)
a00_Bert/run_classifier_predict_online.py:117
Method__init__
Constructs BertConfig. Args: vocab_size: Vocabulary size of `inputs_ids` in `BertModel`. hidden_size: Size of the encoder layers and
a00_Bert/bert_modeling.py:33
← previousnext →301–400 of 642, ranked by callers