MCPcopy Create free account

hub / github.com/WenRichard/KBQA-BERT / functions

Functions292 in github.com/WenRichard/KBQA-BERT

Method__init__
Constructor for BertModel. Args: config: `BertConfig` instance. is_training: bool. rue for training model, false for eval model. Cont
bert/modeling.py:130
Method__init__
(self, unique_id, text_a, text_b)
bert/extract_features.py:83
Method__init__
(self, unique_id, tokens, input_ids, input_mask, input_type_ids)
bert/extract_features.py:92
Method__repr__
(self)
bert/create_pretraining_data.py:89
Method__str__
(self)
terminal_predict.py:354
Method__str__
(self)
bert/run_squad.py:179
Method_decode_record
Decodes a record to a TensorFlow example.
run_similarity.py:552
Functionadam_filter
去掉模型中的Adam相关参数,这些参数在测试的时候是没有用的 :param model_path: :return:
run_ner.py:839
Functionappend_feature
(feature)
bert/run_squad.py:1222
Functionconvert_examples_to_features
Convert a set of `InputExample`s to a list of `InputFeatures`.
bert/run_classifier.py:725
Functionconvert_ids_to_tokens
(inv_vocab, ids)
bert/tokenization.py:97
Methodconvert_ids_to_tokens
(self, ids)
bert/tokenization.py:130
Functionconvert_tokens_to_ids
(vocab, tokens)
bert/tokenization.py:93
Methodcreate_int_feature
(values)
run_similarity.py:529
Methodcreate_int_feature
(values)
bert/run_squad.py:1070
Functioncreate_optimizer
Creates an optimizer training op.
bert/optimization.py:25
Functiondataset_test
用训练问答对中的实体+属性,去知识库中进行问答测试准确率上限 :return:
kbqa_test.py:25
Methodend
(self)
terminal_predict.py:325
Functionf1
(labels, predictions, num_classes, pos_indices=None, weights=None, average='micro')
tf_metrics.py:91
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
bert/modeling.py:265
Methodgenerate_from_queue
(self)
run_similarity.py:399
Functionget_assignment_map_from_checkpoint
Compute the union of the current variables and checkpoint variables.
bert/modeling.py:318
Methodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
run_similarity.py:55
Methodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
run_ner.py:168
Methodget_dev_examples
See base class.
bert/run_classifier.py:213
Methodget_dev_examples
See base class.
bert/run_classifier.py:244
Methodget_dev_examples
See base class.
bert/run_classifier.py:285
Methodget_dev_examples
See base class.
bert/run_classifier.py:325
Methodget_labels
Gets the list of labels for this data set.
run_similarity.py:63
Methodget_labels
Gets the list of labels for this data set.
run_ner.py:172
Methodget_labels
See base class.
bert/run_classifier.py:231
Methodget_labels
See base class.
bert/run_classifier.py:255
Methodget_labels
See base class.
bert/run_classifier.py:295
Methodget_labels
See base class.
bert/run_classifier.py:335
Methodget_test_examples
Gets a collection of `InputExample`s for prediction.
run_similarity.py:59
Methodget_test_examples
(self, data_dir)
run_similarity.py:93
Methodget_test_examples
See base class.
bert/run_classifier.py:250
Methodget_test_examples
See base class.
bert/run_classifier.py:290
Methodget_test_examples
See base class.
bert/run_classifier.py:330
Methodget_train_examples
Gets a collection of `InputExample`s for the train set.
run_similarity.py:51
Methodget_train_examples
Gets a collection of `InputExample`s for the train set.
run_ner.py:164
Methodget_train_examples
See base class.
bert/run_classifier.py:194
Methodget_train_examples
See base class.
bert/run_classifier.py:239
Methodget_train_examples
See base class.
bert/run_classifier.py:280
Methodget_train_examples
See base class.
bert/run_classifier.py:320
Functioninput_fn
(params)
run_ner.py:405
Functioninput_fn
The actual input function.
bert/run_squad.py:714
Functioninput_fn
The actual input function.
bert/run_pretraining.py:331
Functioninput_fn
The actual input function.
bert/run_classifier.py:502
Functioninput_fn
The actual input function.
bert/extract_features.py:114
Methodinput_fn
The actual input function.
run_similarity.py:566
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
bert/run_classifier.py:671
Functionmain
(_)
run_ner.py:563
Functionmain
(_)
bert/run_squad.py:1122
Functionmain
(_)
bert/run_pretraining.py:406
Functionmain
(_)
bert/create_pretraining_data.py:408
Functionmain
(_)
bert/run_classifier.py:741
Functionmain
(_)
bert/extract_features.py:343
Methodmerge
(self)
terminal_predict.py:328
Functionmetric_fn
Computes the loss and accuracy of the model.
bert/run_pretraining.py:187
Functionmetric_fn
(per_example_loss, label_ids, logits)
bert/run_classifier.py:646
Methodmetric_fn
(per_example_loss, label_ids, logits)
run_similarity.py:231
Functionmodel_fn
(features, labels, mode, params)
run_ner.py:474
Functionmodel_fn
The `model_fn` for TPUEstimator.
bert/run_squad.py:594
Functionmodel_fn
The `model_fn` for TPUEstimator.
bert/run_pretraining.py:114
Functionmodel_fn
The `model_fn` for TPUEstimator.
bert/run_classifier.py:591
Functionmodel_fn
The `model_fn` for TPUEstimator.
bert/extract_features.py:152
Methodmodel_fn
(features, labels, mode, params)
run_similarity.py:186
Functionprecision
Multi-class precision metric for Tensorflow Parameters ---------- labels : Tensor of tf.int32 or tf.int64 The true labels pred
tf_metrics.py:15
Methodpredict_from_queue
(self)
run_similarity.py:288
Functionprintable_text
Returns text encoded in a way suitable for print or `tf.logging`.
bert/tokenization.py:47
Methodqueue_predict_input_fn
(self)
run_similarity.py:292
Functionrecall
Multi-class recall metric for Tensorflow Parameters ---------- labels : Tensor of tf.int32 or tf.int64 The true labels predict
tf_metrics.py:53
Methodtest_adam
(self)
bert/optimization_test.py:25
Methodtest_basic_tokenizer_lower
(self)
bert/tokenization_test.py:54
Methodtest_basic_tokenizer_no_lower
(self)
bert/tokenization_test.py:62
Methodtest_chinese
(self)
bert/tokenization_test.py:47
Methodtest_config_to_json_string
(self)
bert/modeling_test.py:129
Methodtest_convert_tokens_to_ids
(self)
bert/tokenization_test.py:89
Methodtest_default
(self)
bert/modeling_test.py:126
Methodtest_full_tokenizer
(self)
bert/tokenization_test.py:28
Methodtest_is_control
(self)
bert/tokenization_test.py:113
Methodtest_is_punctuation
(self)
bert/tokenization_test.py:121
Methodtest_is_whitespace
(self)
bert/tokenization_test.py:103
Methodtest_wordpiece_tokenizer
(self)
bert/tokenization_test.py:69
Functiontpu_scaffold
()
run_ner.py:500
Functiontpu_scaffold
()
bert/run_squad.py:625
Functiontpu_scaffold
()
bert/run_pretraining.py:159
Functiontpu_scaffold
()
bert/run_classifier.py:617
Functiontpu_scaffold
()
bert/extract_features.py:178
Methodtypes
(self)
terminal_predict.py:335
Methodword
(self)
terminal_predict.py:331
← previous201–292 of 292, ranked by callers