MCPcopy Create free account

hub / github.com/CLUEbenchmark/CLUE / functions

Functions2,799 in github.com/CLUEbenchmark/CLUE

↓ 3 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
baselines/models/bert/run_classifier.py:437
↓ 3 callersFunctionfile_based_input_fn_builder
(input_file, seq_length, is_training, drop_remainder)
baselines/models/bert/run_ner.py:475
↓ 3 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
baselines/models/xlnet/run_classifier.py:482
↓ 3 callersFunctionformat_filename
docs.
baselines/models/xlnet/data_utils.py:51
↓ 3 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
baselines/models/roberta/modeling.py:91
↓ 3 callersFunctiongenerate_input
(data_file, label_file, example_file, feature_file, tokenizer, max_seq_length, max_num_choices,
baselines/models_pytorch/mrc_pytorch/preprocess/CHID_preprocess.py:408
↓ 3 callersMethodget_dev_examples
(self, data_dir)
baselines/models/roberta_wwm_ext/run_ner.py:198
↓ 3 callersMethodget_dev_examples
(self, data_dir)
baselines/models/ernie/run_ner.py:198
↓ 3 callersMethodget_dev_examples
(self, data_dir)
baselines/models/bert_wwm_ext/run_ner.py:198
↓ 3 callersMethodget_dev_examples
(self, data_dir)
baselines/models/roberta_wwm_large_ext/run_ner.py:198
↓ 3 callersMethodget_labels
See base class.
baselines/models_pytorch/classifier_pytorch/processors/clue.py:344
↓ 3 callersMethodget_labels
(self)
baselines/models/roberta_wwm_ext/run_ner.py:207
↓ 3 callersMethodget_labels
(self)
baselines/models/ernie/run_ner.py:207
↓ 3 callersMethodget_labels
(self)
baselines/models/bert_wwm_ext/run_ner.py:207
↓ 3 callersMethodget_labels
(self)
baselines/models/roberta_wwm_large_ext/run_ner.py:207
↓ 3 callersFunctionget_optimization
(model, float16, learning_rate, total_steps, schedule, warmup_rate, weight_decay_rate, ma
baselines/models_pytorch/mrc_pytorch/tools/pytorch_optimization.py:158
↓ 3 callersMethodget_pooled_out
Args: summary_type: str, "last", "first", "mean", or "attn". The method to pool the input to get a vector representation. use
baselines/models/xlnet/xlnet.py:229
↓ 3 callersMethodget_pooled_output
(self)
baselines/models/roberta_wwm_ext/modeling.py:234
↓ 3 callersMethodget_pooled_output
(self)
baselines/models/ernie/modeling.py:234
↓ 3 callersMethodget_pooled_output
(self)
baselines/models/bert_wwm_ext/modeling.py:234
↓ 3 callersMethodget_pooled_output
(self)
baselines/models/roberta_wwm_large_ext/modeling.py:234
↓ 3 callersMethodget_pooled_output
(self)
baselines/models/bert/modeling.py:234
↓ 3 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: (opti
baselines/models/albert/bert_utils.py:13
↓ 3 callersMethodget_test_examples
(self, data_dir)
baselines/models/roberta_wwm_ext/run_ner.py:203
↓ 3 callersMethodget_test_examples
(self, data_dir)
baselines/models/ernie/run_ner.py:203
↓ 3 callersMethodget_test_examples
(self, data_dir)
baselines/models/bert_wwm_ext/run_ner.py:203
↓ 3 callersMethodget_test_examples
(self, data_dir)
baselines/models/roberta_wwm_large_ext/run_ner.py:203
↓ 3 callersMethodget_train_examples
(self, data_dir)
baselines/models/roberta_wwm_ext/run_ner.py:193
↓ 3 callersMethodget_train_examples
(self, data_dir)
baselines/models/ernie/run_ner.py:193
↓ 3 callersMethodget_train_examples
(self, data_dir)
baselines/models/bert_wwm_ext/run_ner.py:193
↓ 3 callersMethodget_train_examples
(self, data_dir)
baselines/models/roberta_wwm_large_ext/run_ner.py:193
↓ 3 callersMethodids_tensor
Creates a random int32 tensor of the shape within the vocab size.
baselines/models/roberta_wwm_ext/modeling_test.py:147
↓ 3 callersMethodids_tensor
Creates a random int32 tensor of the shape within the vocab size.
baselines/models/ernie/modeling_test.py:147
↓ 3 callersMethodids_tensor
Creates a random int32 tensor of the shape within the vocab size.
baselines/models/bert_wwm_ext/modeling_test.py:147
↓ 3 callersMethodids_tensor
Creates a random int32 tensor of the shape within the vocab size.
baselines/models/roberta_wwm_large_ext/modeling_test.py:147
↓ 3 callersMethodids_tensor
Creates a random int32 tensor of the shape within the vocab size.
baselines/models/bert/modeling_test.py:147
↓ 3 callersMethodinsert_stopping_signal
Inserts stopping_signal into dataset via _map_fn. Here we change the data structure in the dataset, such that the return value is a dictionar
baselines/models/xlnet/tpu_estimator.py:3252
↓ 3 callersFunctionis_tf_available
()
baselines/models_pytorch/classifier_pytorch/transformers/file_utils.py:78
↓ 3 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
baselines/models/roberta/modeling.py:362
↓ 3 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
baselines/models/roberta_wwm_ext/modeling.py:362
↓ 3 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
baselines/models/ernie/modeling.py:362
↓ 3 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
baselines/models/bert_wwm_ext/modeling.py:362
↓ 3 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
baselines/models/roberta_wwm_large_ext/modeling.py:362
↓ 3 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
baselines/models/bert/modeling.py:362
↓ 3 callersFunctionload_and_cache_examples
(args, task, tokenizer, data_type='train')
baselines/models_pytorch/classifier_pytorch/run_classifier.py:296
↓ 3 callersFunctionmake_eval_dict
(exact_scores, f1_scores, qid_list=None)
baselines/models/xlnet/squad_utils.py:112
↓ 3 callersFunctionmake_precision_recall_eval
(scores, na_probs, num_true_pos, qid_to_has_ans, out_image=None, title=None)
baselines/models/xlnet/squad_utils.py:143
↓ 3 callersMethodpost_attention
Post-attention processing.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlnet.py:299
↓ 3 callersMethodread_iteration_counts
(self)
baselines/models/xlnet/tpu_estimator.py:382
↓ 3 callersMethodrecord
Records the host_call structure.
baselines/models/xlnet/tpu_estimator.py:1694
↓ 3 callersFunctionreset_model
(args, bert_config, model_cls)
baselines/models_pytorch/mrc_pytorch/run_multichoice_mrc.py:42
↓ 3 callersFunctionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
baselines/models/roberta/modeling.py:932
↓ 3 callersFunctionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
baselines/models/albert/modeling.py:1018
↓ 3 callersFunctionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
baselines/models/roberta_wwm_ext/modeling.py:932
↓ 3 callersFunctionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
baselines/models/ernie/modeling.py:932
↓ 3 callersFunctionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
baselines/models/bert_wwm_ext/modeling.py:932
↓ 3 callersFunctionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
baselines/models/roberta_wwm_large_ext/modeling.py:932
↓ 3 callersFunctionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
baselines/models/bert/modeling.py:932
↓ 3 callersMethodsplit_heads
(self, x, k=False)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_gpt2.py:172
↓ 3 callersMethodsplit_heads
(self, x, k=False)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_openai.py:196
↓ 3 callersMethodsplit_into_heads
(self, x, batch_size)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_ctrl.py:98
↓ 3 callersMethodstart
(self)
baselines/models_pytorch/mrc_pytorch/tools/langconv.py:207
↓ 3 callersMethodtie_weights
Make sure we are sharing the input and output embeddings. Export to TorchScript can't handle parameter sharing so we are cloning them
baselines/models_pytorch/classifier_pytorch/transformers/modeling_ctrl.py:454
↓ 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
baselines/models/roberta_wwm_ext/tokenization.py:308
↓ 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
baselines/models/ernie/tokenization.py:308
↓ 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
baselines/models/bert_wwm_ext/tokenization.py:308
↓ 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
baselines/models/roberta_wwm_large_ext/tokenization.py:308
↓ 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
baselines/models/bert/tokenization.py:308
↓ 3 callersMethodtranspose_for_scores
(self, x)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:196
↓ 3 callersMethodtranspose_for_scores
(self, x)
baselines/models_pytorch/mrc_pytorch/google_albert_pytorch_modeling.py:209
↓ 3 callersMethodtranspose_for_scores
(self, x)
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:357
↓ 3 callersFunctionwarmup_linear
(x, warmup=0.002)
baselines/models_pytorch/mrc_pytorch/tools/pytorch_optimization.py:36
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_bert.py:100
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a peice of text.
baselines/models_pytorch/mrc_pytorch/tools/official_tokenization.py:58
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
baselines/models/roberta/tokenization.py:154
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
baselines/models/albert/tokenization.py:154
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
baselines/models/roberta_wwm_ext/tokenization.py:152
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
baselines/models/ernie/tokenization.py:152
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
baselines/models/bert_wwm_ext/tokenization.py:152
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
baselines/models/roberta_wwm_large_ext/tokenization.py:152
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
baselines/models/bert/tokenization.py:152
↓ 2 callersMethod_clean
(self)
baselines/models_pytorch/mrc_pytorch/tools/langconv.py:200
↓ 2 callersFunction_compute_softmax
Compute softmax probability over raw logits.
baselines/models_pytorch/mrc_pytorch/preprocess/cmrc2018_output.py:451
↓ 2 callersFunction_compute_softmax
Compute softmax probability over raw logits.
baselines/models_pytorch/mrc_pytorch/preprocess/DRCD_output.py:449
↓ 2 callersMethod_convert_id_to_token
(self, index)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:980
↓ 2 callersMethod_convert_token_to_id
(self, token)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:688
↓ 2 callersMethod_convert_token_to_id_with_added_voc
(self, token)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:680
↓ 2 callersFunction_find_valid_cands
(curr_step)
baselines/models/roberta/run_classifier.py:918
↓ 2 callersFunction_get_best_indexes
Get the n-best logits from a list.
baselines/models_pytorch/mrc_pytorch/preprocess/cmrc2018_output.py:439
↓ 2 callersFunction_get_best_indexes
Get the n-best logits from a list.
baselines/models_pytorch/mrc_pytorch/preprocess/DRCD_output.py:437
↓ 2 callersFunction_get_best_indexes
Get the n-best logits from a list.
baselines/models/roberta_wwm_ext/run_squad.py:1023
↓ 2 callersFunction_get_best_indexes
Get the n-best logits from a list.
baselines/models/ernie/run_squad.py:1023
↓ 2 callersFunction_get_best_indexes
Get the n-best logits from a list.
baselines/models/bert_wwm_ext/run_squad.py:1023
↓ 2 callersFunction_get_best_indexes
Get the n-best logits from a list.
baselines/models/roberta_wwm_large_ext/run_squad.py:1023
↓ 2 callersFunction_get_best_indexes
Get the n-best logits from a list.
baselines/models/bert/run_squad.py:1023
↓ 2 callersFunction_get_spm_basename
()
baselines/models/xlnet/run_cmrc_drcd.py:1096
↓ 2 callersFunction_is_start_piece
(piece)
baselines/models/xlnet/data_utils.py:322
↓ 2 callersFunction_local_perm
Sample a permutation of the factorization order, and create an attention mask accordingly. Args: inputs: int64 Tensor in shape [seq_len],
baselines/models/xlnet/data_utils.py:579
↓ 2 callersFunction_loop
:param example: :param unique_id: :return: input_ids = (C, seq_len) token_type_ids = (C, seq_len) = s
baselines/models_pytorch/mrc_pytorch/preprocess/CHID_preprocess.py:222
↓ 2 callersMethod_next_iterations
(self, global_step, last_step)
baselines/models/xlnet/tpu_estimator.py:612
← previousnext →301–400 of 2,799, ranked by callers