MCPcopy Create free account

hub / github.com/ChineseGLUE/ChineseGLUE / functions

Functions3,165 in github.com/ChineseGLUE/ChineseGLUE

↓ 6 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_roberta.py:165
↓ 6 callersMethod__init__
(self, features=None, labels=None, dataset=None, signals=None)
baselines/models/xlnet/tpu_estimator.py:3114
↓ 6 callersMethod_compute_logit
(self, hidden, weight, bias, proj)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_transfo_xl_utilities.py:78
↓ 6 callersMethod_create_examples
Creates examples for the training and dev sets.
baselines/models/ernie/run_classifier.py:246
↓ 6 callersMethod_create_examples
Creates examples for the training and dev sets.
baselines/models/bert_wwm_ext/run_classifier.py:247
↓ 6 callersMethod_init_weight
(self, weight)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_transfo_xl.py:466
↓ 6 callersMethod_read_txt
Reads a tab separated value file.
baselines/models_pytorch/classifier_pytorch/processors/utils.py:113
↓ 6 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/albert/tokenization.py:180
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/roberta/create_pretraining_data.py:172
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/albert/create_pretraining_data.py:172
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/albert/resources/create_pretraining_data_roberta.py:172
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_ext/create_pretraining_data.py:169
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/ernie/create_pretraining_data.py:169
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/bert_wwm_ext/create_pretraining_data.py:169
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_large_ext/create_pretraining_data.py:169
↓ 6 callersFunctioncreate_int_feature
(values)
baselines/models/bert/create_pretraining_data.py:169
↓ 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 callersFunctionpreprocess_text
(inputs, lower=False, remove_space=True, keep_accents=False)
baselines/models/xlnet/prepro_utils.py:49
↓ 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 callersMethodtokenize
(self, text)
baselines/models_pytorch/mrc_pytorch/tools/offical_tokenization.py:79
↓ 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 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/roberta/tokenization.py:180
↓ 5 callersFunctioncreate_float_feature
(values)
baselines/models/xlnet/run_classifier.py:826
↓ 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_pytorch/mrc_pytorch/pytorch_modeling.py:134
↓ 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_initializer
Returns: A tf initializer. Used to initialize variables in layers on top of XLNet.
baselines/models/xlnet/xlnet.py:286
↓ 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 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 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 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
baselines/models/roberta/run_classifier.py:850
↓ 4 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
baselines/models/albert/run_classifier.py:843
↓ 4 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
baselines/models/roberta_wwm_ext/run_classifier.py:917
↓ 4 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
baselines/models/ernie/run_classifier.py:956
↓ 4 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
baselines/models/bert_wwm_ext/run_classifier.py:967
↓ 4 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
baselines/models/roberta_wwm_large_ext/run_classifier.py:961
↓ 4 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
baselines/models/bert/run_classifier.py:960
↓ 4 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
baselines/models/xlnet/run_classifier_thucnews.py:816
↓ 4 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
baselines/models/xlnet/run_classifier.py:794
↓ 4 callersFunctionfile_based_convert_examples_to_features_for_inews
Convert a set of `InputExample`s to a TFRecord file.
baselines/models/xlnet/run_classifier_thucnews.py:368
↓ 4 callersFunctionfile_based_convert_examples_to_features_for_inews
Convert a set of `InputExample`s to a TFRecord file.
baselines/models/xlnet/run_classifier.py:257
↓ 4 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
baselines/models/roberta/run_classifier.py:880
↓ 4 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
baselines/models/albert/run_classifier.py:873
↓ 4 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
baselines/models/roberta_wwm_ext/run_classifier.py:947
↓ 4 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
baselines/models/ernie/run_classifier.py:986
↓ 4 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
baselines/models/bert_wwm_ext/run_classifier.py:997
↓ 4 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
baselines/models/roberta_wwm_large_ext/run_classifier.py:991
↓ 4 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
baselines/models/bert/run_classifier.py:990
↓ 4 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
baselines/models/xlnet/run_classifier_thucnews.py:868
← previousnext →101–200 of 3,165, ranked by callers