Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WenRichard/KBQA-BERT
/ functions
Functions
292 in github.com/WenRichard/KBQA-BERT
⨍
Functions
292
◇
Types & classes
37
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
Function
adam_filter
去掉模型中的Adam相关参数,这些参数在测试的时候是没有用的 :param model_path: :return:
run_ner.py:839
Function
append_feature
(feature)
bert/run_squad.py:1222
Function
convert_examples_to_features
Convert a set of `InputExample`s to a list of `InputFeatures`.
bert/run_classifier.py:725
Function
convert_ids_to_tokens
(inv_vocab, ids)
bert/tokenization.py:97
Method
convert_ids_to_tokens
(self, ids)
bert/tokenization.py:130
Function
convert_tokens_to_ids
(vocab, tokens)
bert/tokenization.py:93
Method
create_int_feature
(values)
run_similarity.py:529
Method
create_int_feature
(values)
bert/run_squad.py:1070
Function
create_optimizer
Creates an optimizer training op.
bert/optimization.py:25
Function
dataset_test
用训练问答对中的实体+属性,去知识库中进行问答测试准确率上限 :return:
kbqa_test.py:25
Method
end
(self)
terminal_predict.py:325
Function
f1
(labels, predictions, num_classes, pos_indices=None, weights=None, average='micro')
tf_metrics.py:91
Function
gelu
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
Method
generate_from_queue
(self)
run_similarity.py:399
Function
get_assignment_map_from_checkpoint
Compute the union of the current variables and checkpoint variables.
bert/modeling.py:318
Method
get_dev_examples
Gets a collection of `InputExample`s for the dev set.
run_similarity.py:55
Method
get_dev_examples
Gets a collection of `InputExample`s for the dev set.
run_ner.py:168
Method
get_dev_examples
See base class.
bert/run_classifier.py:213
Method
get_dev_examples
See base class.
bert/run_classifier.py:244
Method
get_dev_examples
See base class.
bert/run_classifier.py:285
Method
get_dev_examples
See base class.
bert/run_classifier.py:325
Method
get_labels
Gets the list of labels for this data set.
run_similarity.py:63
Method
get_labels
Gets the list of labels for this data set.
run_ner.py:172
Method
get_labels
See base class.
bert/run_classifier.py:231
Method
get_labels
See base class.
bert/run_classifier.py:255
Method
get_labels
See base class.
bert/run_classifier.py:295
Method
get_labels
See base class.
bert/run_classifier.py:335
Method
get_test_examples
Gets a collection of `InputExample`s for prediction.
run_similarity.py:59
Method
get_test_examples
(self, data_dir)
run_similarity.py:93
Method
get_test_examples
See base class.
bert/run_classifier.py:250
Method
get_test_examples
See base class.
bert/run_classifier.py:290
Method
get_test_examples
See base class.
bert/run_classifier.py:330
Method
get_train_examples
Gets a collection of `InputExample`s for the train set.
run_similarity.py:51
Method
get_train_examples
Gets a collection of `InputExample`s for the train set.
run_ner.py:164
Method
get_train_examples
See base class.
bert/run_classifier.py:194
Method
get_train_examples
See base class.
bert/run_classifier.py:239
Method
get_train_examples
See base class.
bert/run_classifier.py:280
Method
get_train_examples
See base class.
bert/run_classifier.py:320
Function
input_fn
(params)
run_ner.py:405
Function
input_fn
The actual input function.
bert/run_squad.py:714
Function
input_fn
The actual input function.
bert/run_pretraining.py:331
Function
input_fn
The actual input function.
bert/run_classifier.py:502
Function
input_fn
The actual input function.
bert/extract_features.py:114
Method
input_fn
The actual input function.
run_similarity.py:566
Function
input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
bert/run_classifier.py:671
Function
main
(_)
run_ner.py:563
Function
main
(_)
bert/run_squad.py:1122
Function
main
(_)
bert/run_pretraining.py:406
Function
main
(_)
bert/create_pretraining_data.py:408
Function
main
(_)
bert/run_classifier.py:741
Function
main
(_)
bert/extract_features.py:343
Method
merge
(self)
terminal_predict.py:328
Function
metric_fn
Computes the loss and accuracy of the model.
bert/run_pretraining.py:187
Function
metric_fn
(per_example_loss, label_ids, logits)
bert/run_classifier.py:646
Method
metric_fn
(per_example_loss, label_ids, logits)
run_similarity.py:231
Function
model_fn
(features, labels, mode, params)
run_ner.py:474
Function
model_fn
The `model_fn` for TPUEstimator.
bert/run_squad.py:594
Function
model_fn
The `model_fn` for TPUEstimator.
bert/run_pretraining.py:114
Function
model_fn
The `model_fn` for TPUEstimator.
bert/run_classifier.py:591
Function
model_fn
The `model_fn` for TPUEstimator.
bert/extract_features.py:152
Method
model_fn
(features, labels, mode, params)
run_similarity.py:186
Function
precision
Multi-class precision metric for Tensorflow Parameters ---------- labels : Tensor of tf.int32 or tf.int64 The true labels pred
tf_metrics.py:15
Method
predict_from_queue
(self)
run_similarity.py:288
Function
printable_text
Returns text encoded in a way suitable for print or `tf.logging`.
bert/tokenization.py:47
Method
queue_predict_input_fn
(self)
run_similarity.py:292
Function
recall
Multi-class recall metric for Tensorflow Parameters ---------- labels : Tensor of tf.int32 or tf.int64 The true labels predict
tf_metrics.py:53
Method
test_adam
(self)
bert/optimization_test.py:25
Method
test_basic_tokenizer_lower
(self)
bert/tokenization_test.py:54
Method
test_basic_tokenizer_no_lower
(self)
bert/tokenization_test.py:62
Method
test_chinese
(self)
bert/tokenization_test.py:47
Method
test_config_to_json_string
(self)
bert/modeling_test.py:129
Method
test_convert_tokens_to_ids
(self)
bert/tokenization_test.py:89
Method
test_default
(self)
bert/modeling_test.py:126
Method
test_full_tokenizer
(self)
bert/tokenization_test.py:28
Method
test_is_control
(self)
bert/tokenization_test.py:113
Method
test_is_punctuation
(self)
bert/tokenization_test.py:121
Method
test_is_whitespace
(self)
bert/tokenization_test.py:103
Method
test_wordpiece_tokenizer
(self)
bert/tokenization_test.py:69
Function
tpu_scaffold
()
run_ner.py:500
Function
tpu_scaffold
()
bert/run_squad.py:625
Function
tpu_scaffold
()
bert/run_pretraining.py:159
Function
tpu_scaffold
()
bert/run_classifier.py:617
Function
tpu_scaffold
()
bert/extract_features.py:178
Method
types
(self)
terminal_predict.py:335
Method
word
(self)
terminal_predict.py:331
← previous
201–292 of 292, ranked by callers