Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brightmart/text_classification
/ functions
Functions
642 in github.com/brightmart/text_classification
⨍
Functions
642
◇
Types & classes
45
Method
get_labels
See base class.
a00_Bert/run_classifier_predict_online.py:135
Method
get_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:239
Method
get_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:263
Method
get_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:303
Method
get_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:343
Method
get_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:383
Method
get_labels
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:434
Method
get_mask
(self,sequence_length)
a07_Transformer/a2_transformer_classification.py:132
Method
get_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
Method
get_test_examples
Gets a collection of `InputExample`s for prediction.
a00_Bert/run_classifier_predict_online.py:97
Method
get_test_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:258
Method
get_test_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:298
Method
get_test_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:338
Method
get_test_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:378
Method
get_test_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:429
Method
get_train_examples
Gets a collection of `InputExample`s for the train set.
a00_Bert/run_classifier_predict_online.py:89
Method
get_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:202
Method
get_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:247
Method
get_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:288
Method
get_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:328
Method
get_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:368
Method
get_train_examples
See base class.
a00_Bert/unused/run_classifier_multi_labels_bert.py:419
Function
get_unique_labels_batch
(batch_size,length=None)
a07_Transformer/a2_transformer_classification.py:227
Function
get_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
Function
get_weights_label_as_standard_dict
(weights_label)
a00_boosting/a08_boosting.py:65
Method
gru_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
Method
gru_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
Function
input_fn
The actual input function.
a00_Bert/unused/run_classifier_multi_labels_bert.py:616
Function
input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
a00_Bert/unused/run_classifier_multi_labels_bert.py:851
Function
load_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
Function
load_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
Function
load_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
Function
load_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
Function
load_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
Function
load_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
Function
load_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
Function
load_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
Function
load_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
Function
load_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
Function
load_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
Function
load_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
Function
loss
(logits,labels,weights)
a00_boosting/a08_boosting.py:59
Method
loss_multilabel
(self,l2_lambda=0.001)
aa6_TwoCNNTextRelation/p9_twoCNNTextRelation_model.py:124
Method
loss_nce
calculate loss using (NCE)cross entropy here
a03_TextRNN/p8_TextRNN_model_multi_layers.py:94
Method
loss_nce
calculate loss using (NCE)cross entropy here
a03_TextRNN/p8_TextRNN_model.py:86
Function
main
(_)
a08_predict_ensemble.py:69
Function
main
(_)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_predict.py:43
Function
main
(_)
a05_HierarchicalAttentionNetwork/p1_HierarchicalAttention_train.py:42
Function
main
(_)
a09_DynamicMemoryNet/a8_train.py:45
Function
main
(_)
a09_DynamicMemoryNet/a8_predict.py:46
Function
main
(_)
a00_Bert/train_bert_multi-label.py:35
Function
main
(_)
a00_Bert/run_classifier_predict_online.py:322
Function
main
(_)
a00_Bert/unused/run_classifier_multi_labels_bert.py:921
Function
main
(_)
a00_Bert/unused/train_bert_multi-label_old.py:35
Function
main
(_)
aa4_TextCNN_with_RCNN/p72_TextCNN_with_RCNN_train.py:39
Function
main
(_)
a07_Transformer/a2_train.py:46
Function
main
(_)
a07_Transformer/a2_predict_classification.py:44
Function
main
(_)
a07_Transformer/a2_predict.py:47
Function
main
(_)
a07_Transformer/a2_train_classification.py:45
Function
main
(_)
a01_FastText/p5_fastTextB_predict_multilabel.py:33
Function
main
(_)
a01_FastText/p6_fastTextB_train_multilabel.py:39
Function
main
(_)
a01_FastText/old_single_label/p5_fastTextB_train.py:34
Function
main
(_)
a01_FastText/old_single_label/p5_fastTextB_predict.py:37
Function
main
(_)
aa6_TwoCNNTextRelation/p9_twoCNNTextRelation_train.py:36
Function
main
(_)
a02_TextCNN/p7_TextCNN_train.py:46
Function
main
(_)
a02_TextCNN/p7_TextCNN_predict.py:94
Function
main
(_)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512_simple.py:40
Function
main
(_)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp_512_0609.py:43
Function
main
(_)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512.py:40
Function
main
(_)
a02_TextCNN/other_experiement/p8_TextCNN_predict_exp.py:85
Function
main
(_)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp.py:40
Function
main
(_)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp512_0609.py:40
Function
main
(_)
a02_TextCNN/other_experiement/p7_TextCNN_predict_ensemble.py:4
Function
main
(_)
a02_TextCNN/other_experiement/p7_TextCNN_train_exp512.py:40
Function
main
(_)
a02_TextCNN/other_experiement/p7_TextCNN_predict_exp.py:91
Function
main
(_)
aa5_BiLstmTextRelation/p9_BiLstmTextRelation_train.py:33
Function
main
(_)
a03_TextRNN/p8_TextRNN_predict.py:32
Function
main
(_)
a03_TextRNN/p8_TextRNN_train.py:33
Function
main
(_)
a08_EntityNetwork/a3_train.py:44
Function
main
(_)
a08_EntityNetwork/a3_predict.py:43
Function
main
(_)
a06_Seq2seqWithAttention/a1_seq2seq_attention_predict.py:50
Function
main
(_)
a06_Seq2seqWithAttention/a1_seq2seq_attention_train.py:41
Function
main
(_)
a04_TextRCNN/p71_TextRCNN_train.py:36
Function
main
(_)
a04_TextRCNN/p71_TextRCNN_predict.py:35
Function
metric_fn
(per_example_loss, label_ids, logits)
a00_Bert/unused/run_classifier_multi_labels_bert.py:816
Function
model_fn
The `model_fn` for TPUEstimator.
a00_Bert/unused/run_classifier_multi_labels_bert.py:759
Function
multi_head_attention_for_sentence_vectorized
(layer_number)
a07_Transformer/a2_multi_head_attention.py:119
Method
not_apply_dropout
()
a00_Bert/bert_modeling.py:163
Function
predict
()
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:356
Function
predict
()
a08_EntityNetwork/a3_entity_network.py:325
Function
printable_text
Returns text encoded in a way suitable for print or `tf.logging`.
a00_Bert/tokenization.py:47
Function
process_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
Function
read_topic_info
()
aa1_data_util/data_util_zhihu.py:467
Function
read_topic_info
()
a07_Transformer/data_util_zhihu.py:466
Function
read_topic_info
()
a02_TextCNN/other_experiement/data_util_zhihu.py:468
Function
read_topic_info
()
a08_EntityNetwork/data_util_zhihu.py:466
Method
residual_connection
(self)
a07_Transformer/a2_layer_norm_residual_conn.py:25
Function
rnn_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
Method
scaled_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
Method
smoothing_cross_entropy
Cross entropy with label smoothing to limit over-confidence.
a09_DynamicMemoryNet/a8_dynamic_memory_network.py:263
← previous
next →
501–600 of 642, ranked by callers