MCPcopy Create free account

hub / github.com/brightmart/text_classification / functions

Functions642 in github.com/brightmart/text_classification

↓ 2 callersMethodx1Wx2_parallel
:param x1: [batch_size,story_length,hidden_size] :param x2: [batch_size,1,hidden_size] :param scope: a string :re
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:206
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
a00_Bert/tokenization.py:235
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
a00_Bert/unused/run_classifier_multi_labels_bert.py:602
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
a00_Bert/optimization.py:156
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
a00_Bert/optimization.py:166
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
a00_Bert/tokenization.py:213
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
a00_Bert/tokenization.py:323
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
a00_Bert/tokenization.py:335
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
a00_Bert/tokenization.py:311
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
a00_Bert/tokenization.py:180
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
a00_Bert/tokenization.py:169
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
a00_Bert/tokenization.py:200
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
a00_Bert/run_classifier_predict_online.py:243
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
a00_Bert/unused/run_classifier_multi_labels_bert.py:638
↓ 1 callersMethodanswer_module
Answer Module:generate an answer from the final memory vector. Input: hidden state from episodic memory module:[batch_size,hidd
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:140
↓ 1 callersFunctionapply_dropout_last_layer
(output_layer)
a00_Bert/train_bert_multi-label.py:123
↓ 1 callersFunctionassert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python i
a00_Bert/bert_modeling.py:979
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,model,word2vec_model_path=None)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_train.py:149
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,model,word2vec_model_path=None)
a09_DynamicMemoryNet/a8_train.py:144
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,textCNN,word2vec_model_path=None)
aa4_TextCNN_with_RCNN/p72_TextCNN_with_RCNN_train.py:119
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,model,word2vec_model_path=None)
a07_Transformer/a2_train.py:147
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,model,word2vec_model_path=None)
a07_Transformer/a2_train_classification.py:140
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,fast_text)
a01_FastText/p6_fastTextB_train_multilabel.py:142
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,fast_text)
a01_FastText/old_single_label/p5_fastTextB_train.py:118
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,textRNN,word2vec_model_path=None)
aa6_TwoCNNTextRelation/p9_twoCNNTextRelation_train.py:117
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,textCNN,word2vec_model_path)
a02_TextCNN/p7_TextCNN_train.py:190
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,textCNN,word2vec_model_path=None)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp_512_0609.py:138
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,textCNN,word2vec_model_path=None)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp.py:120
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,textCNN,word2vec_model_path=None)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp512.py:123
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,textRNN,word2vec_model_path=None)
aa5_BiLstmTextRelation/p9_BiLstmTextRelation_train.py:117
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,textRNN,word2vec_model_path=None)
a03_TextRNN/p8_TextRNN_train.py:108
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,model,word2vec_model_path=None)
a08_EntityNetwork/a3_train.py:146
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,model,word2vec_model_path=None)
a06_Seq2seqWithAttention/a1_seq2seq_attention_train.py:142
↓ 1 callersFunctionassign_pretrained_word_embedding
(sess,vocabulary_index2word,vocab_size,textRCNN,word2vec_model_path=None)
a04_TextRCNN/p71_TextRCNN_train.py:116
↓ 1 callersFunctionattention_layer
Performs multi-headed attention from `from_tensor` to `to_tensor`. This is an implementation of multi-headed attention based on "Attention is all
a00_Bert/bert_modeling.py:578
↓ 1 callersMethodattention_mechanism_parallel
parallel implemtation of gate function given a list of candidate sentence, a query, and previous memory. Input: c_full: candidat
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:177
↓ 1 callersMethodattention_sentence_level
input1: hidden_state_sentence: a list,len:num_sentence,element:[None,hidden_size*4] input2: sentence level context vector:[self.hidde
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_model.py:101
↓ 1 callersMethodattention_sentence_level
input1: hidden_state_sentence: a list,len:num_sentence,element:[None,hidden_size*4] input2: sentence level context vector:[self.hidde
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_model_transformer.py:93
↓ 1 callersMethodattention_word_level
input1:self.hidden_state: hidden_state:list,len:sentence_length,element:[batch_size*num_sentences,hidden_size*2] input2:sentence leve
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_model.py:65
↓ 1 callersMethodattention_word_level
input1:self.hidden_state: hidden_state:list,len:sentence_length,element:[batch_size*num_sentences,hidden_size*2] input2:sentence leve
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_model_transformer.py:66
↓ 1 callersFunctionbert_train_fn
()
a00_Bert/train_bert_toy_task.py:15
↓ 1 callersFunctioncalculate_accuracy
(labels_predicted, labels,eval_counter)
a01_FastText/p6_fastTextB_train_multilabel.py:186
↓ 1 callersMethodcell
parallel implementation of single time step for compute of input with memory :param s_t: [batch_size,hidden_size].vector represen
a08_EntityNetwork/a3_entity_network.py:174
↓ 1 callersMethodcnn_single_layer
(self)
a02_TextCNN/p7_TextCNN_model.py:83
↓ 1 callersFunctioncompute_TF_FP_FN_micro
compute micro FP,FP,FN :param label_dict_accusation: a dict. {label:(TP, FP, FN)} :return:TP_micro,FP_micro,FN_micro
a00_Bert/utils.py:114
↓ 1 callersFunctioncompute_confuse_matrix
compute true postive(TP), false postive(FP), false negative(FN) given target lable and predict label :param target_y: :param predict_y:
a00_Bert/utils.py:76
↓ 1 callersFunctioncompute_f1_macro_use_TFFPFN
compute f1_macro :param label_dict: {label:(TP,FP,FN)} :return: f1_macro
a00_Bert/utils.py:137
↓ 1 callersFunctioncompute_f1_micro_use_TFFPFN
compute f1_micro :param label_dict: {label:(TP,FP,FN)} :return: f1_micro: a scalar
a00_Bert/utils.py:127
↓ 1 callersFunctioncompute_single_label
(listt)
a02_TextCNN/p7_TextCNN_model.py:244
↓ 1 callersFunctioncompute_single_label
(listt)
a02_TextCNN/other_experiement/p7_TextCNN_model_multilayers.py:189
↓ 1 callersMethodconv_layer_with_recurrent_structure
input:self.embedded_words:[None,sentence_length,embed_size] :return: shape:[None,sentence_length,embed_size*3]
aa4_TextCNN_with_RCNN/p72_TextCNN_with_RCNN_model.py:150
↓ 1 callersMethodconv_layer_with_recurrent_structure
input:self.embedded_words:[None,sentence_length,embed_size] :return: shape:[None,sentence_length,embed_size*3]
a04_TextRCNN/p71_TextRCNN_model.py:90
↓ 1 callersMethodconv_layer_with_recurrent_structure
input:self.embedded_words:[None,sentence_length,embed_size] :return: shape:[None,sentence_length,embed_size*3]
a04_TextRCNN/p71_TextRCNN_mode2.py:100
↓ 1 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
a00_Bert/run_classifier_predict_online.py:153
↓ 1 callersFunctioncreate_attention_mask_from_input_mask
Create 3D attention mask from a 2D tensor mask. Args: from_tensor: 2D or 3D Tensor of shape [batch_size, from_seq_length, ...]. to_mask: in
a00_Bert/bert_modeling.py:544
↓ 1 callersFunctioncreate_model
Creates a classification model.
a00_Bert/train_bert_multi-label.py:103
↓ 1 callersFunctioncreate_model
Creates a classification model.
a00_Bert/train_bert_toy_task.py:53
↓ 1 callersFunctioncreate_model
Creates a classification model.
a00_Bert/run_classifier_predict_online.py:263
↓ 1 callersFunctioncreate_model
Creates a classification model.
a00_Bert/unused/run_classifier_multi_labels_bert.py:699
↓ 1 callersFunctioncreate_model
Creates a classification model.
a00_Bert/unused/train_bert_multi-label_old.py:104
↓ 1 callersFunctiondo_eval
evalution on model using validation data
a00_Bert/train_bert_multi-label.py:143
↓ 1 callersFunctiondo_eval
evalution on model using validation data :param sess: :param input_ids: :param input_mask: :param segment_ids: :param label_i
a00_Bert/unused/train_bert_multi-label_old.py:135
↓ 1 callersFunctionembedding_lookup
Looks up words embeddings for id tensor. Args: input_ids: int32 Tensor of shape [batch_size, seq_length] containing word ids. vocab_s
a00_Bert/bert_modeling.py:392
↓ 1 callersFunctionembedding_postprocessor
Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_size, seq_length, embedding
a00_Bert/bert_modeling.py:441
↓ 1 callersMethodembedding_with_mask
(self)
a08_EntityNetwork/a3_entity_network.py:83
↓ 1 callersMethodencoder_single_layer
singel layer for encoder.each layers has two sub-layers: the first is multi-head self-attention mechanism; the second is position-w
a07_Transformer/a2_encoder.py:45
↓ 1 callersMethodepisodic_memory_module
episodic memory module 1.combine features 1.attention mechansim using gate function.take fact representation c,question q,
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:103
↓ 1 callersFunctionextract_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
a06_Seq2seqWithAttention/a1_seq2seq.py:5
↓ 1 callersFunctionfastF1
f1 score
a02_TextCNN/p7_TextCNN_train.py:159
↓ 1 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
a00_Bert/bert_modeling.py:82
↓ 1 callersMethodgated_gru
gated gru to get updated hidden state :param c_current: [batch_size,embedding_size] :param h_previous:[batch_size,hidden
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:163
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
a00_Bert/bert_modeling.py:292
↓ 1 callersMethodget_context_left
:param context_left:[batch_size,self.embed_size] :param embedding_previous:[batch_size,self.embed_size] :return: output:[None
aa4_TextCNN_with_RCNN/p72_TextCNN_with_RCNN_model.py:126
↓ 1 callersMethodget_context_left
:param context_left: :param embedding_previous: :return: output:[None,embed_size]
a04_TextRCNN/p71_TextRCNN_model.py:66
↓ 1 callersMethodget_context_left
:param context_left: :param embedding_previous: :return: output:[None,embed_size]
a04_TextRCNN/p71_TextRCNN_mode2.py:74
↓ 1 callersMethodget_context_right
:param context_right:[batch_size,self.embed_size] :param embedding_afterward:[batch_size,self.embed_size] :return: output:[ba
aa4_TextCNN_with_RCNN/p72_TextCNN_with_RCNN_model.py:138
↓ 1 callersMethodget_context_right
:param context_right: :param embedding_afterward: :return: output:[None,embed_size]
a04_TextRCNN/p71_TextRCNN_model.py:78
↓ 1 callersMethodget_context_right
:param context_right: :param embedding_afterward: :return: output:[None,embed_size]
a04_TextRCNN/p71_TextRCNN_mode2.py:87
↓ 1 callersMethodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
a00_Bert/unused/run_classifier_multi_labels_bert.py:173
↓ 1 callersFunctionget_input_y
(i,input_x,batch_size)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_model_transformer.py:461
↓ 1 callersFunctionget_label_using_logits
(logits, predictions,vocabulary_index2word_label,vocabulary_word2index_label, top_number=5)
a07_Transformer/a2_predict.py:112
↓ 1 callersFunctionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a01_FastText/p5_fastTextB_predict_multilabel.py:83
↓ 1 callersFunctionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a01_FastText/p6_fastTextB_train_multilabel.py:176
↓ 1 callersFunctionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a01_FastText/old_single_label/p5_fastTextB_predict.py:84
↓ 1 callersFunctionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a02_TextCNN/p7_TextCNN_predict.py:139
↓ 1 callersFunctionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512_simple.py:85
↓ 1 callersFunctionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512.py:85
↓ 1 callersFunctionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a02_TextCNN/other_experiement/p8_TextCNN_predict_exp.py:130
↓ 1 callersFunctionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512_0609.py:85
↓ 1 callersFunctionget_label_using_logits
(logits,vocabulary_index2word_label,top_number=5)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp.py:136
↓ 1 callersFunctionget_label_using_logits
(logits, predictions,vocabulary_index2word_label,vocabulary_word2index_label, top_number=5)
a06_Seq2seqWithAttention/a1_seq2seq_attention_predict.py:96
↓ 1 callersFunctionget_label_using_logits_batch
(question_id_sublist,logits_batch,vocabulary_index2word_label,f,top_number=5)
a08_predict_ensemble.py:213
↓ 1 callersFunctionget_label_using_logits_batch
(question_id_sublist,logits_batch,vocabulary_index2word_label,f,top_number=5)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_predict.py:120
↓ 1 callersFunctionget_label_using_logits_batch
(question_id_sublist,logits_batch,vocabulary_index2word_label,f,top_number=5)
a09_DynamicMemoryNet/a8_predict.py:123
↓ 1 callersFunctionget_label_using_logits_batch
(question_id_sublist, logits_batch, vocabulary_index2word_label, f, top_number=5)
a07_Transformer/a2_predict_classification.py:98
↓ 1 callersFunctionget_label_using_logits_batch
(question_id_sublist,logits_batch,vocabulary_index2word_label,f,top_number=5)
a03_TextRNN/p8_TextRNN_predict.py:96
↓ 1 callersFunctionget_label_using_logits_batch
(question_id_sublist,logits_batch,vocabulary_index2word_label,f,top_number=5)
a08_EntityNetwork/a3_predict.py:118
↓ 1 callersFunctionget_label_using_logits_batch
(question_id_sublist,logits_batch,vocabulary_index2word_label,f,top_number=5)
a04_TextRCNN/p71_TextRCNN_predict.py:111
↓ 1 callersFunctionget_label_using_logits_with_value
(logits,vocabulary_index2word_label,top_number=5)
a02_TextCNN/p7_TextCNN_predict.py:149
↓ 1 callersFunctionget_label_using_logits_with_value
(logits,vocabulary_index2word_label,top_number=5)
a02_TextCNN/other_experiement/p8_TextCNN_predict_exp.py:140
← previousnext →101–200 of 642, ranked by callers