MCPcopy Create free account

hub / github.com/ChineseGLUE/ChineseGLUE / functions

Functions3,165 in github.com/ChineseGLUE/ChineseGLUE

↓ 1,163 callersMethodjoin
(self)
baselines/models/xlnet/tpu_estimator.py:391
↓ 61 callersMethodget
(self)
baselines/models/xlnet/tpu_estimator.py:3047
↓ 44 callersMethodinit_weights
Initialize and prunes weights if needed.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:180
↓ 38 callersMethodload
(module, prefix='')
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:715
↓ 36 callersMethoddecode
Converts a sequence of ids (integer) in a string, using the tokenizer and vocabulary with options to remove special tokens and clean
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:990
↓ 36 callersMethodevaluate
(self, input_fn, steps=None, hooks=None, checkpoin
baselines/models/xlnet/tpu_estimator.py:2481
↓ 36 callersMethodtrain
(self, input_fn, hooks=None, steps=None, max_steps=None,
baselines/models/xlnet/tpu_estimator.py:2460
↓ 31 callersMethodpredict
(self, input_fn, predict_keys=None, hooks=None, checkp
baselines/models/xlnet/tpu_estimator.py:2502
↓ 31 callersMethodshape
projection
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlm.py:153
↓ 30 callersMethod__init__
(self, config)
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:464
↓ 25 callersMethod_read_tsv
Reads a tab separated value file.
baselines/models_pytorch/classifier_pytorch/processors/utils.py:103
↓ 25 callersMethodfrom_pretrained
r""" Instantiates one of the base model classes of the library from a pre-trained model configuration. The model class to instantiate
baselines/models_pytorch/classifier_pytorch/transformers/modeling_auto.py:67
↓ 25 callersMethodupdate
(self, val, n=1)
baselines/models_pytorch/classifier_pytorch/tools/common.py:239
↓ 22 callersMethodencode
Converts a string in a sequence of ids (integer), using the tokenizer and vocabulary. Same as doing ``self.convert_tokens_to_ids(sel
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:691
↓ 21 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:319
↓ 21 callersMethod_read_tsv
Reads a tab separated value file.
baselines/models/roberta_wwm_large_ext/run_classifier.py:202
↓ 21 callersMethod_read_tsv
Reads a tab separated value file.
baselines/models/bert/run_classifier.py:202
↓ 21 callersMethodload
(module, prefix='')
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:402
↓ 18 callersMethod_read_tsv
Reads a tab separated value file.
baselines/models/roberta_wwm_ext/run_classifier.py:202
↓ 18 callersMethod_read_tsv
Reads a tab separated value file.
baselines/models/ernie/run_classifier.py:202
↓ 18 callersMethod_read_tsv
Reads a tab separated value file.
baselines/models/bert_wwm_ext/run_classifier.py:202
↓ 17 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_albert.py:243
↓ 17 callersFunctionprune_linear_layer
Prune a linear layer (a model parameters) to keep only entries in index. Return the pruned layer as a new layer with requires_grad=True.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:758
↓ 15 callersMethod_read_txt
Reads a tab separated value file.
baselines/models/ernie/run_classifier.py:212
↓ 15 callersMethod_read_txt
Reads a tab separated value file.
baselines/models/bert_wwm_ext/run_classifier.py:212
↓ 15 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/albert/modeling.py:397
↓ 15 callersFunctioncreate_int_feature
(values)
baselines/models/xlnet/run_classifier.py:273
↓ 15 callersFunctionprint_
(*args)
baselines/models/xlnet/prepro_utils.py:37
↓ 14 callersMethod_tie_or_clone_weights
Tie or clone module weights depending of weither we are using TorchScript or not
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:120
↓ 14 callersMethodclose
(self)
baselines/models/bert/run_squad.py:1093
↓ 14 callersMethodconvert_tokens_to_ids
Converts a single token, or a sequence of tokens, (str/unicode) in a single integer id (resp. a sequence of ids), using the vocabulary.
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:661
↓ 14 callersMethodtokenize
(self, text)
baselines/models/bert/tokenization.py:170
↓ 13 callersMethod_read_tsv
Reads a tab separated value file.
baselines/models/xlnet/run_classifier.py:192
↓ 12 callersMethod_read_tsv
Reads a tab separated value file.
baselines/models/roberta/run_classifier.py:200
↓ 12 callersMethod_read_tsv
Reads a tab separated value file.
baselines/models/albert/run_classifier.py:200
↓ 12 callersMethod_read_txt
Reads a tab separated value file.
baselines/models/roberta/run_classifier.py:210
↓ 12 callersMethod_read_txt
Reads a tab separated value file.
baselines/models/albert/run_classifier.py:210
↓ 12 callersMethod_read_txt
Reads a tab separated value file.
baselines/models/roberta_wwm_ext/run_classifier.py:212
↓ 12 callersMethod_read_txt
Reads a tab separated value file.
baselines/models/roberta_wwm_large_ext/run_classifier.py:212
↓ 12 callersMethod_read_txt
Reads a tab separated value file.
baselines/models/bert/run_classifier.py:212
↓ 12 callersMethod_read_txt
Reads a tab separated value file.
baselines/models/xlnet/run_classifier.py:204
↓ 12 callersMethodcapture
(self, o)
baselines/models/xlnet/tpu_estimator.py:3039
↓ 12 callersMethodclone
(self, pool)
baselines/models_pytorch/mrc_pytorch/tools/langconv.py:108
↓ 12 callersMethodclose
(self)
baselines/models/roberta_wwm_ext/run_squad.py:1093
↓ 12 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_ext/run_ner.py:454
↓ 12 callersFunctioncreate_int_feature
(values)
baselines/models/ernie/run_ner.py:454
↓ 12 callersFunctioncreate_int_feature
(values)
baselines/models/bert_wwm_ext/run_ner.py:454
↓ 12 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_large_ext/run_ner.py:454
↓ 12 callersFunctioncreate_int_feature
(values)
baselines/models/bert/run_ner.py:461
↓ 12 callersFunctionhead_projection
Project hidden states to a specific head with a 4D-shape.
baselines/models/xlnet/modeling.py:80
↓ 12 callersMethodtokenize
(self, text)
baselines/models/roberta_wwm_ext/tokenization.py:170
↓ 12 callersMethodtokenize
(self, text)
baselines/models/ernie/tokenization.py:170
↓ 12 callersMethodtokenize
(self, text)
baselines/models/bert_wwm_ext/tokenization.py:170
↓ 12 callersMethodtokenize
(self, text)
baselines/models/roberta_wwm_large_ext/tokenization.py:170
↓ 11 callersFunctionsimple_accuracy
(preds, labels)
baselines/models_pytorch/classifier_pytorch/metrics/glue_compute_metrics.py:33
↓ 10 callersMethod_read_tsv
Reads a tab separated value file.
baselines/models/xlnet/run_classifier_thucnews.py:187
↓ 10 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/bert/tokenization.py:178
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/roberta/modeling.py:375
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/roberta_wwm_ext/modeling.py:375
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/ernie/modeling.py:375
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/bert_wwm_ext/modeling.py:375
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/roberta_wwm_large_ext/modeling.py:375
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
baselines/models/bert/modeling.py:375
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/roberta/run_classifier.py:397
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/albert/run_classifier.py:474
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_ext/run_classifier.py:394
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/ernie/run_classifier.py:471
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/bert_wwm_ext/run_classifier.py:479
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/roberta_wwm_large_ext/run_classifier.py:471
↓ 10 callersFunctioncreate_int_feature
(values)
baselines/models/bert/run_classifier.py:393
↓ 10 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:
baselines/models/albert/modeling.py:981
↓ 9 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_distilbert.py:198
↓ 9 callersMethod_read_txt
Reads a tab separated value file.
baselines/models/xlnet/run_classifier_thucnews.py:199
↓ 9 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/roberta_wwm_ext/tokenization.py:178
↓ 9 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/ernie/tokenization.py:178
↓ 9 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/bert_wwm_ext/tokenization.py:178
↓ 9 callersMethodconvert_tokens_to_ids
(self, tokens)
baselines/models/roberta_wwm_large_ext/tokenization.py:178
↓ 9 callersFunctioncreate_int_feature
(values)
baselines/models/xlnet/run_classifier_thucnews.py:381
↓ 9 callersMethodencode_file
(self, path, ordered=False, verbose=False, add_eos=True, add_double_eos=False)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_transfo_xl.py:176
↓ 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:
baselines/models/roberta/modeling.py:895
↓ 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:
baselines/models/roberta_wwm_ext/modeling.py:895
↓ 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:
baselines/models/ernie/modeling.py:895
↓ 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:
baselines/models/bert_wwm_ext/modeling.py:895
↓ 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:
baselines/models/roberta_wwm_large_ext/modeling.py:895
↓ 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:
baselines/models/bert/modeling.py:895
↓ 8 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlnet.py:428
↓ 8 callersMethod__init__
(self, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlm.py:340
↓ 8 callersFunction_create_or_get_iterations_per_loop
Creates or gets the iterations_per_loop variable. In TPUEstimator, the user provided computation, the model_fn, is wrapped inside a tf.while_loop
baselines/models/xlnet/tpu_estimator.py:139
↓ 8 callersMethod_get_resized_embeddings
Build a resized Embedding Module from a provided token Embedding Module. Increasing the size will add newly initialized vectors at the en
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:86
↓ 8 callersFunctionencode_ids
(sp_model, text, sample=False)
baselines/models/xlnet/prepro_utils.py:106
↓ 7 callersMethod__init__
Conv1D layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2) Basically works like a Linear layer but the weights are
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:443
↓ 7 callersFunctionadd_w_and_b
(ernie_pre, pytroch_pre)
baselines/models_pytorch/classifier_pytorch/convert_ernie_original_pad_checkpoint_to_pytorch.py:108
↓ 7 callersMethodclose
(self)
baselines/models/ernie/run_squad.py:1093
↓ 7 callersMethodclose
(self)
baselines/models/bert_wwm_ext/run_squad.py:1093
↓ 7 callersMethodclose
(self)
baselines/models/roberta_wwm_large_ext/run_squad.py:1093
↓ 7 callersMethodclose
(self)
baselines/models/xlnet/run_cmrc_drcd.py:719
↓ 7 callersMethodfeatures_and_labels
Gets `features` and `labels`.
baselines/models/xlnet/tpu_estimator.py:3159
↓ 7 callersMethodtokenize
Basic Tokenization of a piece of text. Split on "white spaces" only, for sub-word tokenization, see WordPieceTokenizer. Args:
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_bert.py:292
↓ 6 callersMethod__init__
(self, d_model, d_inner, dropout, pre_lnorm=False, layer_norm_epsilon=1e-5)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_transfo_xl.py:197
↓ 6 callersMethod__init__
(self, n_state, config)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_gpt2.py:204
next →1–100 of 3,165, ranked by callers