MCPcopy Create free account

hub / github.com/ChineseGLUE/ChineseGLUE / functions

Functions3,165 in github.com/ChineseGLUE/ChineseGLUE

↓ 1 callersFunctionmodel_fn_builder
(bert_config, num_labels, init_checkpoint, learning_rate, num_train_steps, num_warmup_ste
baselines/models/bert_wwm_ext/run_ner.py:548
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
baselines/models/roberta_wwm_large_ext/run_squad.py:590
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
baselines/models/roberta_wwm_large_ext/run_classifier_with_tfhub.py:87
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
baselines/models/roberta_wwm_large_ext/run_pretraining.py:109
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
baselines/models/roberta_wwm_large_ext/run_classifier.py:1101
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
baselines/models/roberta_wwm_large_ext/extract_features.py:148
↓ 1 callersFunctionmodel_fn_builder
(bert_config, num_labels, init_checkpoint, learning_rate, num_train_steps, num_warmup_ste
baselines/models/roberta_wwm_large_ext/run_ner.py:548
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
baselines/models/bert/run_squad.py:590
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
baselines/models/bert/run_classifier_with_tfhub.py:87
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
baselines/models/bert/run_pretraining.py:109
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
baselines/models/bert/run_classifier.py:1100
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
baselines/models/bert/extract_features.py:148
↓ 1 callersFunctionmodel_fn_builder
(bert_config, num_labels, init_checkpoint, learning_rate, num_train_steps, num_warmup_ste
baselines/models/bert/run_ner.py:555
↓ 1 callersMethodmoses_punct_norm
(self, text, lang)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_xlm.py:574
↓ 1 callersMethodmoses_tokenize
(self, text, lang)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_xlm.py:582
↓ 1 callersFunctionmultihead_attn
Standard multi-head attention with absolute positional embedding.
baselines/models/xlnet/modeling.py:255
↓ 1 callersMethodnum_added_tokens
Returns the number of added tokens when encoding a sequence with special tokens. Note: This encodes inputs and checks th
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:528
↓ 1 callersMethodpad_features_and_labels
Pads out the batch dimension of features and labels.
baselines/models/xlnet/tpu_estimator.py:3350
↓ 1 callersFunctionparse_args
()
baselines/models/xlnet/squad_utils.py:19
↓ 1 callersFunctionparse_files_to_dataset
(parser, file_names, split, num_batch, num_hosts, host_id, num_core_per_host, bsz_p
baselines/models/xlnet/data_utils.py:545
↓ 1 callersFunctionpearson_and_spearman
(preds, labels)
baselines/models_pytorch/classifier_pytorch/metrics/glue_compute_metrics.py:47
↓ 1 callersFunctionplot_pr_curve
(precisions, recalls, out_image, title)
baselines/models/xlnet/squad_utils.py:132
↓ 1 callersFunctionpoint_wise_feed_forward_network
(d_model_size, dff)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_ctrl.py:131
↓ 1 callersFunctionpositional_encoding
(position, d_model_size, dtype)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_ctrl.py:46
↓ 1 callersFunctionprelln_transformer_model
Multi-headed, multi-layer Transformer from "Attention is All You Need". This is almost an exact implementation of the original Transformer encoder.
baselines/models/albert/modeling.py:1074
↓ 1 callersFunctionprepare_device
setup GPU device if available, move model into configured device # 如果n_gpu_use为数字,则使用range生成list # 如果输入的是一个list,则默认使用list[0]作为controll
baselines/models_pytorch/classifier_pytorch/tools/common.py:61
↓ 1 callersMethodprepare_for_model
Prepares a sequence of input id, or a pair of sequences of inputs ids so that it can be used by the model. It adds special tokens, tr
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:797
↓ 1 callersFunctionpreprocess
()
baselines/models/xlnet/run_cmrc_drcd.py:1101
↓ 1 callersMethodpreprocess_text
(self, inputs)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_xlnet.py:111
↓ 1 callersFunctionprint_summary
()
baselines/models/xlnet/summary.py:21
↓ 1 callersMethodprocess_feature
Write a InputFeature to the TFRecordWriter as a tf.train.Example.
baselines/models/roberta_wwm_ext/run_squad.py:1067
↓ 1 callersMethodprocess_feature
Write a InputFeature to the TFRecordWriter as a tf.train.Example.
baselines/models/ernie/run_squad.py:1067
↓ 1 callersMethodprocess_feature
Write a InputFeature to the TFRecordWriter as a tf.train.Example.
baselines/models/bert_wwm_ext/run_squad.py:1067
↓ 1 callersMethodprocess_feature
Write a InputFeature to the TFRecordWriter as a tf.train.Example.
baselines/models/roberta_wwm_large_ext/run_squad.py:1067
↓ 1 callersMethodprocess_feature
Write a InputFeature to the TFRecordWriter as a tf.train.Example.
baselines/models/bert/run_squad.py:1067
↓ 1 callersMethodprocess_feature
Write a InputFeature to the TFRecordWriter as a tf.train.Example.
baselines/models/xlnet/run_cmrc_drcd.py:686
↓ 1 callersMethodprune_heads
(self, heads)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_distilbert.py:118
↓ 1 callersMethodprune_heads
Prunes heads of the base model. Arguments: heads_to_prune: dict with keys being selected layer indices (`int`) and asso
baselines/models_pytorch/classifier_pytorch/transformers/modeling_utils.py:189
↓ 1 callersMethodprune_heads
(self, heads)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:259
↓ 1 callersMethodprune_heads
(self, heads)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_albert.py:186
↓ 1 callersMethodprune_heads
(self, heads)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_openai.py:147
↓ 1 callersFunctionread_examples
Read a list of `InputExample`s from an input file.
baselines/models/roberta_wwm_ext/extract_features.py:319
↓ 1 callersFunctionread_examples
Read a list of `InputExample`s from an input file.
baselines/models/ernie/extract_features.py:319
↓ 1 callersFunctionread_examples
Read a list of `InputExample`s from an input file.
baselines/models/bert_wwm_ext/extract_features.py:319
↓ 1 callersFunctionread_examples
Read a list of `InputExample`s from an input file.
baselines/models/roberta_wwm_large_ext/extract_features.py:319
↓ 1 callersFunctionread_examples
Read a list of `InputExample`s from an input file.
baselines/models/bert/extract_features.py:319
↓ 1 callersFunctionrel_multihead_attn
Multi-head attention with relative positional encoding.
baselines/models/xlnet/modeling.py:282
↓ 1 callersFunctionrel_shift
perform relative shift to form the relative attention score.
baselines/models/xlnet/modeling.py:163
↓ 1 callersMethodrel_shift_bnij
(x, klen=-1)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlnet.py:243
↓ 1 callersFunctionrelative_positional_encoding
create relative positional encoding.
baselines/models/xlnet/modeling.py:205
↓ 1 callersMethodrelative_positional_encoding
create relative positional encoding.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlnet.py:677
↓ 1 callersFunctionremove_articles
(text)
baselines/models/xlnet/squad_utils.py:47
↓ 1 callersFunctionremove_non_printing_char
Port of https://github.com/moses-smt/mosesdecoder/blob/master/scripts/tokenizer/remove-non-printing-char.perl
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_xlm.py:488
↓ 1 callersFunctionremove_punc
(text)
baselines/models/xlnet/squad_utils.py:52
↓ 1 callersFunctionreplace_unicode_punct
Port of https://github.com/moses-smt/mosesdecoder/blob/master/scripts/tokenizer/replace-unicode-punctuation.perl
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_xlm.py:445
↓ 1 callersFunctionreport
(counts, out=None)
baselines/models/roberta/conlleval.py:173
↓ 1 callersFunctionreport
(counts, out=None)
baselines/models/roberta_wwm_ext/conlleval.py:173
↓ 1 callersFunctionreport
(counts, out=None)
baselines/models/ernie/conlleval.py:173
↓ 1 callersFunctionreport
(counts, out=None)
baselines/models/bert_wwm_ext/conlleval.py:173
↓ 1 callersFunctionreport
(counts, out=None)
baselines/models/roberta_wwm_large_ext/conlleval.py:173
↓ 1 callersFunctionreport
(counts, out=None)
baselines/models/bert/conlleval.py:173
↓ 1 callersFunctionreport_notprint
(counts, out=None)
baselines/models/roberta/conlleval.py:199
↓ 1 callersFunctionreport_notprint
(counts, out=None)
baselines/models/roberta_wwm_ext/conlleval.py:199
↓ 1 callersFunctionreport_notprint
(counts, out=None)
baselines/models/ernie/conlleval.py:199
↓ 1 callersFunctionreport_notprint
(counts, out=None)
baselines/models/bert_wwm_ext/conlleval.py:199
↓ 1 callersFunctionreport_notprint
(counts, out=None)
baselines/models/roberta_wwm_large_ext/conlleval.py:199
↓ 1 callersFunctionreport_notprint
(counts, out=None)
baselines/models/bert/conlleval.py:199
↓ 1 callersMethodreset
(self)
baselines/models_pytorch/classifier_pytorch/tools/common.py:233
↓ 1 callersMethodreset_length
(self, tgt_len, ext_len, mem_len)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_transfo_xl.py:648
↓ 1 callersFunctionromanian_preprocessing
Sennrich's WMT16 scripts for Romanian preprocessing, used by model `xlm-mlm-enro-1024`
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_xlm.py:501
↓ 1 callersFunctionrun
()
baselines/models_pytorch/mrc_pytorch/tools/langconv.py:236
↓ 1 callersFunctionrun_precision_recall_analysis
(main_eval, exact_raw, f1_raw, na_probs, qid_to_has_ans, out_image_dir)
baselines/models/xlnet/squad_utils.py:166
↓ 1 callersMethodrun_tester
(self, tester)
baselines/models/roberta_wwm_ext/modeling_test.py:135
↓ 1 callersMethodrun_tester
(self, tester)
baselines/models/ernie/modeling_test.py:135
↓ 1 callersMethodrun_tester
(self, tester)
baselines/models/bert_wwm_ext/modeling_test.py:135
↓ 1 callersMethodrun_tester
(self, tester)
baselines/models/roberta_wwm_large_ext/modeling_test.py:135
↓ 1 callersMethodrun_tester
(self, tester)
baselines/models/bert/modeling_test.py:135
↓ 1 callersFunctions3_etag
Check ETag on S3 object.
baselines/models_pytorch/classifier_pytorch/transformers/file_utils.py:221
↓ 1 callersFunctions3_etag
Check ETag on S3 object.
baselines/models_pytorch/mrc_pytorch/tools/file_utils.py:136
↓ 1 callersFunctions3_get
Pull a file directly from S3.
baselines/models_pytorch/classifier_pytorch/transformers/file_utils.py:230
↓ 1 callersFunctions3_get
Pull a file directly from S3.
baselines/models_pytorch/mrc_pytorch/tools/file_utils.py:145
↓ 1 callersMethodsample
labels: [b1, b2] Return true_log_probs: [b1, b2] samp_log_probs: [n_sample] neg_samples: [n_s
baselines/models_pytorch/classifier_pytorch/transformers/modeling_transfo_xl_utilities.py:280
↓ 1 callersFunctionsample_logits
embedding: an nn.Embedding layer bias: [n_vocab] labels: [b1, b2] inputs: [b1, b2, n_emb] sampler: you may us
baselines/models_pytorch/classifier_pytorch/transformers/modeling_transfo_xl_utilities.py:301
↓ 1 callersFunctionsave_model
(state_dict, dump_path)
baselines/models_pytorch/classifier_pytorch/convert_ernie_original_pad_checkpoint_to_pytorch.py:183
↓ 1 callersMethodsave_vocabulary
Save the tokenizer vocabulary and merge files to a directory.
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_xlm.py:812
↓ 1 callersMethodsave_vocabulary
Save the tokenizer vocabulary to a directory. This method does *NOT* save added tokens and special token mappings. Please us
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:469
↓ 1 callersFunctionscaled_dot_product_attention
(q, k, v, mask, attention_mask=None, head_mask=None)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_ctrl.py:58
↓ 1 callersMethodset_convert_map
(self, mapping)
baselines/models_pytorch/mrc_pytorch/tools/langconv.py:69
↓ 1 callersMethodslice_tensor_or_dict
Slice the real Tensors according to padding mask in signals.
baselines/models/xlnet/tpu_estimator.py:3389
↓ 1 callersMethodstop
(self)
baselines/models/xlnet/tpu_estimator.py:376
↓ 1 callersFunctiontest_sentence_order_prediction
sentence order prediction. check method of create_instances_from_document_albert from create_pretrining_data.py :return:
baselines/models/albert/test_changes.py:64
↓ 1 callersFunctiontext_standardize
fixes some issues the spacy tokenizer had on books corpus also does some whitespace standardization
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_openai.py:62
↓ 1 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 ins
baselines/models_pytorch/classifier_pytorch/transformers/modeling_distilbert.py:518
↓ 1 callersMethodtie_weights
Make sure we are sharing the embeddings
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlnet.py:926
↓ 1 callersMethodtie_weights
Make sure we are sharing the embeddings
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlm.py:623
↓ 1 callersMethodtie_weights
Run this to be sure output and input (adaptive) softmax weights are tied
baselines/models_pytorch/classifier_pytorch/transformers/modeling_transfo_xl.py:831
↓ 1 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 ins
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:684
↓ 1 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 ins
baselines/models_pytorch/classifier_pytorch/transformers/modeling_bert.py:756
↓ 1 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 ins
baselines/models_pytorch/classifier_pytorch/transformers/modeling_gpt2.py:519
↓ 1 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 ins
baselines/models_pytorch/classifier_pytorch/transformers/modeling_gpt2.py:627
← previousnext →1,301–1,400 of 3,165, ranked by callers