MCPcopy Create free account

hub / github.com/CLUEbenchmark/CLUE / functions

Functions2,799 in github.com/CLUEbenchmark/CLUE

↓ 6 callersFunctiondropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *keepi
baselines/models/albert/modeling.py:366
↓ 6 callersFunctionencode_pieces
(sp_model, text, return_unicode=True, sample=False)
baselines/models/xlnet/prepro_utils.py:68
↓ 6 callersFunctioninput_fn
docs.
baselines/models/xlnet/data_utils.py:851
↓ 6 callersFunctionmetrics_from_confusion_matrix
Precision, Recall and F1 from the confusion matrix Parameters ---------- cm : tf.Tensor of type tf.int32, of shape (num_classes, num_cl
baselines/models/roberta/tf_metrics.py:168
↓ 6 callersFunctionmetrics_from_confusion_matrix
Precision, Recall and F1 from the confusion matrix Parameters ---------- cm : tf.Tensor of type tf.int32, of shape (num_classes, num_cl
baselines/models/roberta_wwm_ext/tf_metrics.py:168
↓ 6 callersFunctionmetrics_from_confusion_matrix
Precision, Recall and F1 from the confusion matrix Parameters ---------- cm : tf.Tensor of type tf.int32, of shape (num_classes, num_cl
baselines/models/ernie/tf_metrics.py:168
↓ 6 callersFunctionmetrics_from_confusion_matrix
Precision, Recall and F1 from the confusion matrix Parameters ---------- cm : tf.Tensor of type tf.int32, of shape (num_classes, num_cl
baselines/models/bert_wwm_ext/tf_metrics.py:168
↓ 6 callersFunctionmetrics_from_confusion_matrix
Precision, Recall and F1 from the confusion matrix Parameters ---------- cm : tf.Tensor of type tf.int32, of shape (num_classes, num_cl
baselines/models/roberta_wwm_large_ext/tf_metrics.py:168
↓ 6 callersFunctionmetrics_from_confusion_matrix
Precision, Recall and F1 from the confusion matrix Parameters ---------- cm : tf.Tensor of type tf.int32, of shape (num_classes, num_cl
baselines/models/bert/tf_metrics.py:168
↓ 6 callersMethodreset
(self)
baselines/models_pytorch/classifier_pytorch/tools/common.py:267
↓ 6 callersFunctionsafe_div
Safe division, return 0 if denominator is 0
baselines/models/roberta/tf_metrics.py:137
↓ 6 callersFunctionsafe_div
Safe division, return 0 if denominator is 0
baselines/models/roberta_wwm_ext/tf_metrics.py:137
↓ 6 callersFunctionsafe_div
Safe division, return 0 if denominator is 0
baselines/models/ernie/tf_metrics.py:137
↓ 6 callersFunctionsafe_div
Safe division, return 0 if denominator is 0
baselines/models/bert_wwm_ext/tf_metrics.py:137
↓ 6 callersFunctionsafe_div
Safe division, return 0 if denominator is 0
baselines/models/roberta_wwm_large_ext/tf_metrics.py:137
↓ 6 callersFunctionsafe_div
Safe division, return 0 if denominator is 0
baselines/models/bert/tf_metrics.py:137
↓ 6 callersMethodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
baselines/models_pytorch/classifier_pytorch/transformers/optimization.py:130
↓ 6 callersMethodtokenize
(self, text)
baselines/models/roberta/tokenization.py:172
↓ 6 callersMethodtokenize
(self, text)
baselines/models/albert/tokenization.py:172
↓ 5 callersMethod__init__
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-6, weight_decay=0.0, correct_bias=True)
baselines/models_pytorch/classifier_pytorch/transformers/optimization.py:117
↓ 5 callersMethod__init__
(self, n_state, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_openai.py:223
↓ 5 callersFunction_add_item_to_params
Adds a new item into `params`.
baselines/models/xlnet/tpu_estimator.py:3470
↓ 5 callersFunction_int64_feature
(values)
baselines/models/xlnet/data_utils.py:43
↓ 5 callersMethodclose
(self)
baselines/models/xlnet/run_cmrc_drcd.py:719
↓ 5 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/roberta/tokenization.py:180
↓ 5 callersFunctioncreate_float_feature
(values)
baselines/models/xlnet/run_classifier.py:462
↓ 5 callersFunctioncreate_int_feature
(values)
baselines/models/roberta/run_ner.py:454
↓ 5 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
baselines/models/roberta_wwm_ext/modeling.py:91
↓ 5 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
baselines/models/ernie/modeling.py:91
↓ 5 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
baselines/models/bert_wwm_ext/modeling.py:91
↓ 5 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
baselines/models/roberta_wwm_large_ext/modeling.py:91
↓ 5 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
baselines/models/bert/modeling.py:91
↓ 5 callersMethodget_dev_examples
(self, data_dir)
baselines/models/bert/run_ner.py:204
↓ 5 callersMethodget_initializer
Returns: A tf initializer. Used to initialize variables in layers on top of XLNet.
baselines/models/xlnet/xlnet.py:286
↓ 5 callersMethodget_labels
(self)
baselines/models/bert/run_ner.py:213
↓ 5 callersMethodget_test_examples
(self, data_dir)
baselines/models/bert/run_ner.py:209
↓ 5 callersMethodget_train_examples
(self, data_dir)
baselines/models/bert/run_ner.py:199
↓ 5 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
baselines/models/albert/modeling.py:384
↓ 5 callersFunctionload
(module, prefix='')
baselines/models_pytorch/mrc_pytorch/tools/utils.py:111
↓ 5 callersFunctionmerge_eval
(main_eval, new_eval, prefix)
baselines/models/xlnet/squad_utils.py:128
↓ 5 callersFunctionpositional_embedding
(pos_seq, inv_freq, bsz=None)
baselines/models/xlnet/modeling.py:41
↓ 5 callersMethodpositional_embedding
(pos_seq, inv_freq, bsz=None)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlnet.py:667
↓ 5 callersFunctionpreprocess_text
(inputs, lower=False, remove_space=True, keep_accents=False)
baselines/models/xlnet/prepro_utils.py:49
↓ 5 callersFunctionprintable_text
Returns text encoded in a way suitable for print or `tf.logging`.
baselines/models/xlnet/prepro_utils.py:14
↓ 5 callersFunctionprune_conv1d_layer
Prune a Conv1D layer (a model parameters) to keep only entries in index. A Conv1D work as a Linear layer (see e.g. BERT) but the weights are
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:783
↓ 5 callersMethodtokenize
Tokenizes a piece of text.
baselines/models/roberta_wwm_ext/tokenization.py:196
↓ 5 callersMethodtokenize
Tokenizes a piece of text.
baselines/models/ernie/tokenization.py:196
↓ 5 callersMethodtokenize
Tokenizes a piece of text.
baselines/models/bert_wwm_ext/tokenization.py:196
↓ 5 callersMethodtokenize
Tokenizes a piece of text.
baselines/models/roberta_wwm_large_ext/tokenization.py:196
↓ 5 callersMethodtokenize
Tokenizes a piece of text.
baselines/models/bert/tokenization.py:196
↓ 4 callersMethod_call_model_fn
Calls the model_fn with required parameters.
baselines/models/xlnet/tpu_estimator.py:1563
↓ 4 callersFunction_convert_index
(index, pos, M=None, is_start=True)
baselines/models/xlnet/run_cmrc_drcd.py:278
↓ 4 callersFunction_extract_key_names
(tensor_or_dict)
baselines/models/xlnet/tpu_estimator.py:231
↓ 4 callersMethod_init_bias
(self, bias)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_transfo_xl.py:472
↓ 4 callersMethodas_scalar_stopping_signal
(signals)
baselines/models/xlnet/tpu_estimator.py:3329
↓ 4 callersFunctioncached_path
Given something that might be a URL (or might be a local path), determine which. If it's a URL, download the file and cache it, and retur
baselines/models_pytorch/classifier_pytorch/transformers/file_utils.py:155
↓ 4 callersFunctionconvert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
baselines/models/roberta/tokenization.py:136
↓ 4 callersFunctionconvert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
baselines/models/albert/tokenization.py:136
↓ 4 callersFunctionconvert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
baselines/models/roberta_wwm_ext/tokenization.py:136
↓ 4 callersFunctionconvert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
baselines/models/ernie/tokenization.py:136
↓ 4 callersFunctionconvert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
baselines/models/bert_wwm_ext/tokenization.py:136
↓ 4 callersFunctionconvert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
baselines/models/roberta_wwm_large_ext/tokenization.py:136
↓ 4 callersFunctionconvert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
baselines/models/bert/tokenization.py:136
↓ 4 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
baselines/models_pytorch/mrc_pytorch/run_c3.py:175
↓ 4 callersMethodconvert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
baselines/models_pytorch/mrc_pytorch/tools/official_tokenization.py:131
↓ 4 callersMethodcount_file
(self, path, verbose=False, add_eos=False)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_transfo_xl.py:108
↓ 4 callersFunctiondropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *keepi
baselines/models/roberta/modeling.py:344
↓ 4 callersFunctiondropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *keepi
baselines/models/roberta_wwm_ext/modeling.py:344
↓ 4 callersFunctiondropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *keepi
baselines/models/ernie/modeling.py:344
↓ 4 callersFunctiondropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *keepi
baselines/models/bert_wwm_ext/modeling.py:344
↓ 4 callersFunctiondropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *keepi
baselines/models/roberta_wwm_large_ext/modeling.py:344
↓ 4 callersFunctiondropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *keepi
baselines/models/bert/modeling.py:344
↓ 4 callersMethodflatten_features_and_labels
Flattens the `features` and `labels` to a single tensor list.
baselines/models/xlnet/tpu_estimator.py:1107
↓ 4 callersMethodfrom_input_fn
Returns an `_Inputs` instance according to `input_fn` return value.
baselines/models/xlnet/tpu_estimator.py:3129
↓ 4 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
baselines/models_pytorch/classifier_pytorch/transformers/configuration_utils.py:183
↓ 4 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
baselines/models/roberta_wwm_ext/modeling.py:237
↓ 4 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
baselines/models/ernie/modeling.py:237
↓ 4 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
baselines/models/bert_wwm_ext/modeling.py:237
↓ 4 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
baselines/models/roberta_wwm_large_ext/modeling.py:237
↓ 4 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
baselines/models/bert/modeling.py:237
↓ 4 callersFunctionis_torch_available
()
baselines/models_pytorch/classifier_pytorch/transformers/file_utils.py:75
↓ 4 callersFunctionjson2features
(input_file, output_files, tokenizer, is_training=False, repeat_limit=3, max_query_length=64,
baselines/models_pytorch/mrc_pytorch/preprocess/cmrc2018_preprocess.py:86
↓ 4 callersMethodmoses_pipeline
(self, text, lang)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_xlm.py:590
↓ 4 callersFunctionnormalize_answer
Lower text and remove punctuation, articles and extra whitespace.
baselines/models/xlnet/squad_utils.py:45
↓ 4 callersFunctionpost_attention
Post-attention processing.
baselines/models/xlnet/modeling.py:90
↓ 4 callersFunctionrel_attn_core
Core relative positional attention operations.
baselines/models/xlnet/modeling.py:128
↓ 4 callersMethodrel_attn_core
Core relative positional attention operations.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlnet.py:257
↓ 4 callersMethodshould_stop
Detects whether scalar_stopping_signal indicates stopping.
baselines/models/xlnet/tpu_estimator.py:3333
↓ 4 callersMethodsignals
(self)
baselines/models/xlnet/tpu_estimator.py:3170
↓ 4 callersMethodvalidate_and_record_structure
Validates and records the structure of `features` and `labels`.
baselines/models/xlnet/tpu_estimator.py:1078
↓ 3 callersFunctionTraditional2Simplified
将sentence中的繁体字转为简体字 :param sentence: 待转换的句子 :return: 将句子中繁体字转换为简体字之后的句子
baselines/models_pytorch/mrc_pytorch/preprocess/DRCD_preprocess.py:95
↓ 3 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_ctrl.py:269
↓ 3 callersMethod_create_example
(self, lines, set_type)
baselines/models/roberta/run_ner.py:211
↓ 3 callersMethod_create_example
(self, lines, set_type)
baselines/models/roberta/run_ner.py:243
↓ 3 callersMethod_create_example
(self, lines, set_type)
baselines/models/roberta/run_ner.py:305
↓ 3 callersMethod_create_example
(self, lines, set_type)
baselines/models/roberta_wwm_ext/run_ner.py:211
↓ 3 callersMethod_create_example
(self, lines, set_type)
baselines/models/roberta_wwm_ext/run_ner.py:243
↓ 3 callersMethod_create_example
(self, lines, set_type)
baselines/models/roberta_wwm_ext/run_ner.py:305
↓ 3 callersMethod_create_example
(self, lines, set_type)
baselines/models/ernie/run_ner.py:211
↓ 3 callersMethod_create_example
(self, lines, set_type)
baselines/models/ernie/run_ner.py:243
← previousnext →101–200 of 2,799, ranked by callers