MCPcopy Create free account

hub / github.com/brightmart/text_classification / functions

Functions642 in github.com/brightmart/text_classification

Method__init__
Constructor for BertModel. Args: config: `BertConfig` instance. is_training: bool. true for training model, false for eval model. Con
a00_Bert/bert_modeling.py:130
Method__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first sequence. For sin
a00_Bert/unused/run_classifier_multi_labels_bert.py:138
Method__init__
(self, input_ids, input_mask, segment_ids, label_id)
a00_Bert/unused/run_classifier_multi_labels_bert.py:159
Method__init__
(self)
a00_Bert/unused/run_classifier_multi_labels_bert.py:199
Method__init__
(self)
a00_Bert/unused/run_classifier_multi_labels_bert.py:416
Method__init__
init all hyperparameter here
aa4_TextCNN_with_RCNN/p72_TextCNN_with_RCNN_model.py:9
Method__init__
:param d_model: :param d_k: :param d_v: :param sequence_length: :param h: :param batch_size:
a07_Transformer/a2_base_model.py:10
Method__init__
:param x: shape should be:[batch,sequence_length,d_model] :param layer_index: index of layer :return: shape:[sequence_len
a07_Transformer/a2_poistion_wise_feed_forward.py:21
Method__init__
(self,x,y,layer_index,type,residual_dropout=0.1,use_residual_conn=True)
a07_Transformer/a2_layer_norm_residual_conn.py:7
Method__init__
init all hyperparameter here
a07_Transformer/a2_transformer.py:34
Method__init__
init all hyperparameter here
a07_Transformer/a2_transformer_classification.py:33
Method__init__
(self,Q,K_s,V_s,d_model,d_k,d_v,sequence_length,h,type=None,is_training=None,mask=None,dropout_rate=0.1)
a07_Transformer/a2_multi_head_attention.py:19
Method__init__
:param d_model: :param d_k: :param d_v: :param sequence_length: :param h: :param batch_size:
a07_Transformer/a2_encoder.py:14
Method__init__
:param d_model: :param d_k: :param d_v: :param sequence_length: :param h: :param batch_size:
a07_Transformer/a2_decoder.py:19
Method__init__
:param d_model: :param d_k: :param d_v: :param sequence_length: :param h: :param batch_size:
a07_Transformer/a2_attention_between_enc_dec.py:14
Method__init__
init all hyperparameter here
a01_FastText/p6_fastTextB_model_multilabel.py:7
Method__init__
init all hyperparameter here
a01_FastText/old_single_label/p5_fastTextB_model.py:8
Method__init__
init all hyperparameter here
aa6_TwoCNNTextRelation/p9_twoCNNTextRelation_model.py:10
Method__init__
init all hyperparameter here
a02_TextCNN/p7_TextCNN_model.py:8
Method__init__
init all hyperparameter here
a02_TextCNN/other_experiement/p7_TextCNN_model_multilayers.py:8
Method__init__
init all hyperparameter here
aa5_BiLstmTextRelation/p9_BiLstmTextRelation_model.py:13
Method__init__
init all hyperparameter here
a03_TextRNN/p8_TextRNN_model_multi_layers.py:8
Method__init__
init all hyperparameter here
a03_TextRNN/p8_TextRNN_model.py:8
Method__init__
init all hyperparameter here
a08_EntityNetwork/a3_entity_network.py:11
Method__init__
init all hyperparameter here
a06_Seq2seqWithAttention/a1_seq2seq_attention_model.py:11
Method__init__
init all hyperparameter here
a04_TextRCNN/p71_TextRCNN_model.py:7
Method__init__
init all hyperparameter here
a04_TextRCNN/p71_TextRCNN_mode2.py:7
Method_read_tsv
Reads a tab separated value file.
a00_Bert/run_classifier_predict_online.py:106
Methodapply_dropout
()
a00_Bert/bert_modeling.py:168
Functionbert_predict_fn
()
a00_Bert/train_bert_toy_task.py:49
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_train.py:209
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
a09_DynamicMemoryNet/a8_train.py:203
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
a00_Bert/utils.py:222
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
aa4_TextCNN_with_RCNN/p72_TextCNN_with_RCNN_train.py:179
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
aa6_TwoCNNTextRelation/p9_twoCNNTextRelation_train.py:174
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp_512_0609.py:198
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp.py:180
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp512.py:183
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
aa5_BiLstmTextRelation/p9_BiLstmTextRelation_train.py:174
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
a03_TextRNN/p8_TextRNN_train.py:165
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
a08_EntityNetwork/a3_train.py:210
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
a06_Seq2seqWithAttention/a1_seq2seq_attention_train.py:207
Functioncalculate_accuracy
(labels_predicted, labels,eval_counter)
a04_TextRCNN/p71_TextRCNN_train.py:176
Methodcnn_multiple_layers
(self)
a02_TextCNN/p7_TextCNN_model.py:120
Functioncompute_f1_score
compoute f1_score. :param logits: [batch_size,label_size] :param evalY: [batch_size,label_size] :return:
a00_Bert/utils.py:43
Functioncompute_f1_score_removed
compoute f1_score. :param logits: [batch_size,label_size] :param evalY: [batch_size,label_size] :return:
a00_Bert/utils.py:55
Functioncompute_labels_weights
compute weights for labels in current batch, and update weights_label(a dict) :param weights_label:a dict :param logit: [None,Vocabula
a00_boosting/a08_boosting.py:14
Functionconvert_examples_to_features
Convert a set of `InputExample`s to a list of `InputFeatures`.
a00_Bert/unused/run_classifier_multi_labels_bert.py:905
Functionconvert_ids_to_tokens
(inv_vocab, ids)
a00_Bert/tokenization.py:97
Methodconvert_ids_to_tokens
(self, ids)
a00_Bert/tokenization.py:130
Functionconvert_tokens_to_ids
(vocab, tokens)
a00_Bert/tokenization.py:93
Functioncreate_int_feature
(values)
a00_Bert/run_classifier_predict_online.py:259
Functioncreate_model_original
Creates a classification model.
a00_Bert/unused/run_classifier_multi_labels_bert.py:655
Functioncreate_optimizer
Creates an optimizer training op.
a00_Bert/optimization.py:25
Functioncreate_voabulary_labelO
()
aa1_data_util/data_util_zhihu.py:101
Functioncreate_voabulary_labelO
()
a07_Transformer/data_util_zhihu.py:101
Functioncreate_voabulary_labelO
()
a02_TextCNN/other_experiement/data_util_zhihu.py:103
Functioncreate_voabulary_labelO
()
a08_EntityNetwork/data_util_zhihu.py:101
Functioncreate_vocabulary
create vocabulary :param training_data_path: :param vocab_size: :param name_scope: :return:
a02_TextCNN/data_util.py:65
Functionextract_argmax_and_embed
Get a loop_function that extracts the previous symbol and embeds it. Used by decoder. :param embedding: embedding tensor for symbol :para
a05_HierarchicalAttentionNetwork/p1_seq2seq.py:5
Functiongelu
Gaussian Error Linear Unit. This is a smoother version of the RELU. Original paper: https://arxiv.org/abs/1606.08415 Args: input_tensor: f
a00_Bert/bert_modeling.py:276
Methodget_all_encoder_layers
(self)
a00_Bert/bert_modeling.py:258
Functionget_assignment_map_from_checkpoint
Compute the union of the current variables and checkpoint variables.
a00_Bert/bert_modeling.py:329
Methodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
a00_Bert/run_classifier_predict_online.py:93
Methodget_dev_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:221
Methodget_dev_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:252
Methodget_dev_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:293
Methodget_dev_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:333
Methodget_dev_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:373
Methodget_dev_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:424
Methodget_embedding_output
Gets output of the embedding lookup (i.e., input to the transformer). Returns: float Tensor of shape [batch_size, seq_length, hidden_size]
a00_Bert/bert_modeling.py:261
Methodget_embedding_table
(self)
a00_Bert/bert_modeling.py:272
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a08_predict_ensemble.py:186
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_predict.py:93
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_train.py:198
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
a09_DynamicMemoryNet/a8_train.py:192
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a09_DynamicMemoryNet/a8_predict.py:96
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
aa4_TextCNN_with_RCNN/p72_TextCNN_with_RCNN_train.py:168
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a07_Transformer/a2_predict_classification.py:115
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
aa6_TwoCNNTextRelation/p9_twoCNNTextRelation_train.py:163
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp_512_0609.py:187
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp.py:169
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp512.py:172
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
aa5_BiLstmTextRelation/p9_BiLstmTextRelation_train.py:163
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a03_TextRNN/p8_TextRNN_predict.py:83
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
a03_TextRNN/p8_TextRNN_train.py:154
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
a08_EntityNetwork/a3_train.py:199
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a08_EntityNetwork/a3_predict.py:91
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
a06_Seq2seqWithAttention/a1_seq2seq_attention_train.py:196
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=1)
a04_TextRCNN/p71_TextRCNN_train.py:165
Functionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a04_TextRCNN/p71_TextRCNN_predict.py:84
Functionget_label_using_logitsO
(pred_list, vocabulary_index2word_label,vocabulary_word2index_label, top_number=5)
a06_Seq2seqWithAttention/a1_seq2seq_attention_predict.py:125
Functionget_label_using_logits_with_value
(logits,vocabulary_index2word_label,top_number=5)
a08_predict_ensemble.py:196
Functionget_label_using_logits_with_value
(logits,vocabulary_index2word_label,top_number=5)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_predict.py:103
Functionget_label_using_logits_with_value
(logits,vocabulary_index2word_label,top_number=5)
a09_DynamicMemoryNet/a8_predict.py:106
Functionget_label_using_logits_with_value
(logits,vocabulary_index2word_label,top_number=5)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512_simple.py:95
Functionget_label_using_logits_with_value
(logits,vocabulary_index2word_label,top_number=5)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512.py:95
Functionget_label_using_logits_with_value
(logits,vocabulary_index2word_label,top_number=5)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512_0609.py:95
Functionget_label_using_logits_with_value
(logits,vocabulary_index2word_label,top_number=5)
a08_EntityNetwork/a3_predict.py:101
Functionget_label_using_logits_with_value
(logits,vocabulary_index2word_label,top_number=5)
a04_TextRCNN/p71_TextRCNN_predict.py:94
← previousnext →401–500 of 642, ranked by callers