MCPcopy Create free account

hub / github.com/HuiResearch/cail2019_track2 / functions

Functions274 in github.com/HuiResearch/cail2019_track2

↓ 15 callersMethodclose
(self)
bert/run_squad.py:1093
↓ 14 callersMethodtokenize
(self, text)
bert/tokenization.py:170
↓ 12 callersFunctioncreate_int_feature
(values)
bert/run_classifier.py:492
↓ 11 callersMethod_read_tsv
Reads a tab separated value file.
bert/run_classifier.py:197
↓ 11 callersMethodconvert_tokens_to_ids
(self, tokens)
bert/tokenization.py:178
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
bert/modeling.py:375
↓ 9 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank:
bert/modeling.py:895
↓ 7 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
bert/modeling.py:91
↓ 7 callersMethodget_pooled_output
(self)
bert/modeling.py:234
↓ 7 callersMethodpredict
预测小批量句子
utils/predict.py:153
↓ 6 callersFunctioncreate_int_feature
(values)
createPretrainData.py:179
↓ 6 callersFunctioncreate_int_feature
(values)
bert/create_pretraining_data.py:165
↓ 6 callersMethodget_sequence_output
Gets final hidden layer of encoder. Returns: float Tensor of shape [batch_size, seq_length, hidden_size] corresponding to the final h
bert/modeling.py:237
↓ 5 callersFunctioncreate_int_feature
(values)
train.py:433
↓ 5 callersMethodtokenize
Tokenizes a piece of text.
bert/tokenization.py:196
↓ 4 callersFunctionconvert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
bert/tokenization.py:136
↓ 4 callersFunctiondropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *keepi
bert/modeling.py:344
↓ 3 callersMethod_create_examples
得到的lines是一个元素为字典形式的列表,sentence是句子,labels是一个含有多标签的列表
train.py:295
↓ 3 callersMethod_create_examples
Creates examples for the training and dev sets.
bert/run_classifier.py:278
↓ 3 callersMethod_create_examples
Creates examples for the training and dev sets.
bert/run_classifier.py:318
↓ 3 callersMethod_create_examples
Creates examples for the training and dev sets.
bert/run_classifier.py:358
↓ 3 callersMethod_read_json
(cls, input_file)
train.py:251
↓ 3 callersFunctionconvert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
bert/tokenization.py:78
↓ 3 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
train.py:420
↓ 3 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
bert/run_classifier.py:479
↓ 3 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
train.py:454
↓ 3 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
bert/run_classifier.py:509
↓ 3 callersMethodids_tensor
Creates a random int32 tensor of the shape within the vocab size.
bert/modeling_test.py:147
↓ 3 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
bert/modeling.py:362
↓ 3 callersFunctionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
bert/modeling.py:932
↓ 3 callersMethodtokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the given voca
bert/tokenization.py:308
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
bert/tokenization.py:152
↓ 2 callersFunction_get_best_indexes
Get the n-best logits from a list.
bert/run_squad.py:1023
↓ 2 callersFunction_strip_spaces
(text)
bert/run_squad.py:955
↓ 2 callersMethodapply_gradients
See base class.
bert/optimization.py:108
↓ 2 callersFunctioncompute_loss
(logits, positions)
bert/run_squad.py:646
↓ 2 callersMethodconvert
(self, line)
utils/predict.py:122
↓ 2 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
bert/run_squad.py:309
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
train.py:311
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
bert/run_classifier.py:377
↓ 2 callersFunctionevaluate
传入预测标签,目标标签,tags地址。
utils/evaluate.py:108
↓ 2 callersMethodgetLogits
(self)
utils/models.py:40
↓ 2 callersMethodgetProb
(self, sentences)
utils/predict.py:189
↓ 2 callersFunctiongetSentences
(filename)
genPretrainData.py:3
↓ 2 callersMethodget_all_encoder_layers
(self)
bert/modeling.py:246
↓ 2 callersMethodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
bert/run_classifier.py:184
↓ 2 callersMethodget_embedding_table
(self)
bert/modeling.py:260
↓ 2 callersMethodget_labels
Gets the list of labels for this data set.
bert/run_classifier.py:192
↓ 2 callersMethodget_test_examples
Gets a collection of `InputExample`s for prediction.
bert/run_classifier.py:188
↓ 2 callersMethodget_train_examples
Gets a collection of `InputExample`s for the train set.
bert/run_classifier.py:180
↓ 2 callersMethodget_value
(res)
utils/evaluate.py:59
↓ 2 callersFunctioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
run_pretrain.py:334
↓ 2 callersFunctioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
bert/run_squad.py:687
↓ 2 callersFunctioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
bert/run_pretraining.py:324
↓ 2 callersFunctionread_squad_examples
Read a SQuAD json file into a list of SquadExample.
bert/run_squad.py:227
↓ 2 callersFunctionreshape_from_matrix
Reshapes a rank 2 tensor back to its original rank >= 2 tensor.
bert/modeling.py:946
↓ 2 callersFunctiontranspose_for_scores
(input_tensor, batch_size, num_attention_heads, seq_length, width)
bert/modeling.py:629
↓ 1 callersMethod__repr__
(self)
bert/run_squad.py:182
↓ 1 callersMethod__str__
(self)
createPretrainData.py:89
↓ 1 callersMethod__str__
(self)
bert/create_pretraining_data.py:75
↓ 1 callersFunction_check_is_max_context
Check if this is the 'max context' doc span for the token.
bert/run_squad.py:513
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
bert/tokenization.py:286
↓ 1 callersFunction_compute_softmax
Compute softmax probability over raw logits.
bert/run_squad.py:1035
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
train.py:466
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
run_pretrain.py:401
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
bert/run_squad.py:701
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
bert/run_pretraining.py:391
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
bert/run_classifier.py:521
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
bert/optimization.py:159
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
bert/optimization.py:169
↓ 1 callersFunction_improve_answer_span
Returns tokenized answer spans that better match the annotated answer.
bert/run_squad.py:476
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
bert/tokenization.py:264
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
bert/tokenization.py:374
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
bert/tokenization.py:386
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
bert/tokenization.py:362
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
bert/tokenization.py:231
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
bert/tokenization.py:220
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
bert/tokenization.py:251
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
train.py:502
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
bert/run_classifier.py:557
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
bert/extract_features.py:302
↓ 1 callersMethodassert_all_tensors_reachable
Checks that all the tensors in the graph are reachable from outputs.
bert/modeling_test.py:162
↓ 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
bert/modeling.py:959
↓ 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
bert/modeling.py:558
↓ 1 callersMethodcheck_output
(self, result)
bert/modeling_test.py:114
↓ 1 callersFunctionconvert
:param task: 任务名,divorce,labor, loan :param tagDir: 任务标签文件,tags.txt :param originDir: 若是文件夹,则选择最后一个模型,若是文件名,则选择该模型文件。 :param convertD
utils/ckpt2pb.py:57
↓ 1 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
bert/extract_features.py:210
↓ 1 callersFunctionconvert_single_example
(sent, label_list, max_seq_length, tokenizer)
utils/predict.py:28
↓ 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
bert/modeling.py:524
↓ 1 callersFunctioncreate_float_feature
(values)
createPretrainData.py:184
↓ 1 callersFunctioncreate_float_feature
(values)
bert/create_pretraining_data.py:170
↓ 1 callersFunctioncreate_instances_from_document
Creates `TrainingInstance`s for a single document.
createPretrainData.py:233
↓ 1 callersFunctioncreate_instances_from_document
Creates `TrainingInstance`s for a single document.
bert/create_pretraining_data.py:219
↓ 1 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective.
createPretrainData.py:352
↓ 1 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective.
bert/create_pretraining_data.py:338
↓ 1 callersFunctioncreate_model
(bert_config, is_training, input_ids, input_mask, segment_ids, labels, num_labels, use_one_ho
train.py:594
↓ 1 callersFunctioncreate_model
:param bert_config: :param input_ids: :param input_mask: :param segment_ids: :param num_labels: 类别数 :param model_type: bert后接
utils/ckpt2pb.py:13
↓ 1 callersFunctioncreate_model
Creates a classification model.
bert/run_squad.py:550
↓ 1 callersFunctioncreate_model
Creates a classification model.
bert/run_classifier_with_tfhub.py:37
↓ 1 callersFunctioncreate_model
Creates a classification model.
bert/run_classifier.py:574
next →1–100 of 274, ranked by callers