MCPcopy Create free account

hub / github.com/ChineseGLUE/ChineseGLUE / functions

Functions3,165 in github.com/ChineseGLUE/ChineseGLUE

↓ 1 callersFunctiongather_indexes
Gathers the vectors at the specific positions over a minibatch.
baselines/models/roberta_wwm_ext/run_pretraining.py:308
↓ 1 callersFunctiongather_indexes
Gathers the vectors at the specific positions over a minibatch.
baselines/models/ernie/run_pretraining.py:308
↓ 1 callersFunctiongather_indexes
Gathers the vectors at the specific positions over a minibatch.
baselines/models/bert_wwm_ext/run_pretraining.py:308
↓ 1 callersFunctiongather_indexes
Gathers the vectors at the specific positions over a minibatch.
baselines/models/roberta_wwm_large_ext/run_pretraining.py:308
↓ 1 callersFunctiongather_indexes
Gathers the vectors at the specific positions over a minibatch.
baselines/models/bert/run_pretraining.py:308
↓ 1 callersFunctiongelu
(x)
baselines/models_pytorch/classifier_pytorch/transformers/modeling_distilbert.py:49
↓ 1 callersFunctiongelu
GELU activation https://arxiv.org/abs/1606.08415 https://github.com/huggingface/pytorch-openai-transformer-lm/blob/master/model_pytorch.p
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlm.py:61
↓ 1 callersFunctiongenerate_broadcast_enqueue_ops_fn
Generates infeed enqueue ops for one input_fn on all the hosts.
baselines/models/xlnet/tpu_estimator.py:908
↓ 1 callersMethodgenerate_infeed_enqueue_ops_and_dequeue_fn
Generates infeed enqueue ops and dequeue_fn.
baselines/models/xlnet/tpu_estimator.py:1161
↓ 1 callersFunctiongenerate_per_core_enqueue_ops_fn_for_host
Generates infeed enqueue ops for per-core input_fn on a single host.
baselines/models/xlnet/tpu_estimator.py:703
↓ 1 callersFunctiongenerate_per_host_enqueue_ops_fn_for_host
Generates infeed enqueue ops for per-host input_fn on a single host.
baselines/models/xlnet/tpu_estimator.py:746
↓ 1 callersFunctiongenerate_per_host_v2_enqueue_ops_fn_for_host
Generates infeed enqueue ops for per-host input_fn on a single host.
baselines/models/xlnet/tpu_estimator.py:821
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
baselines/models/roberta/modeling.py:280
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
baselines/models/roberta_wwm_ext/modeling.py:280
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
baselines/models/ernie/modeling.py:280
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
baselines/models/bert_wwm_ext/modeling.py:280
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
baselines/models/roberta_wwm_large_ext/modeling.py:280
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
baselines/models/bert/modeling.py:280
↓ 1 callersFunctionget_assigment_map_from_checkpoint
Compute the union of the current variables and checkpoint variables.
baselines/models_pytorch/mrc_pytorch/tools/utils.py:46
↓ 1 callersFunctionget_assignment_map_from_checkpoint
Compute the union of the current variables and checkpoint variables.
baselines/models/xlnet/model_utils.py:266
↓ 1 callersFunctionget_dataset
(params, num_hosts, num_core_per_host, split, file_names, num_batch, seq_len, reuse_len, perm_
baselines/models/xlnet/data_utils.py:646
↓ 1 callersMethodget_dev_examples
See base class.
baselines/models_pytorch/classifier_pytorch/processors/glue.py:527
↓ 1 callersMethodget_dev_examples
See base class.
baselines/models/roberta/run_classifier.py:601
↓ 1 callersMethodget_dev_examples
(self, data_dir)
baselines/models/roberta/run_ner.py:198
↓ 1 callersMethodget_dev_examples
See base class.
baselines/models/albert/run_classifier.py:552
↓ 1 callersMethodget_dev_examples
See base class.
baselines/models/roberta_wwm_ext/run_classifier.py:659
↓ 1 callersMethodget_dev_examples
See base class.
baselines/models/ernie/run_classifier.py:778
↓ 1 callersMethodget_dev_examples
See base class.
baselines/models/bert_wwm_ext/run_classifier.py:708
↓ 1 callersMethodget_dev_examples
See base class.
baselines/models/roberta_wwm_large_ext/run_classifier.py:703
↓ 1 callersMethodget_dev_examples
See base class.
baselines/models/bert/run_classifier.py:702
↓ 1 callersMethodget_devtest_examples
(self, data_dir, set_type="dev")
baselines/models/xlnet/run_classifier_thucnews.py:739
↓ 1 callersMethodget_devtest_examples
See base class.
baselines/models/xlnet/run_classifier.py:471
↓ 1 callersMethodget_embedding_output
Gets output of the embedding lookup (i.e., input to the transformer). Returns: float Tensor of shape [batch_size, seq_length, hidden_size]
baselines/models/roberta_wwm_ext/modeling.py:249
↓ 1 callersMethodget_embedding_output
Gets output of the embedding lookup (i.e., input to the transformer). Returns: float Tensor of shape [batch_size, seq_length, hidden_size]
baselines/models/ernie/modeling.py:249
↓ 1 callersMethodget_embedding_output
Gets output of the embedding lookup (i.e., input to the transformer). Returns: float Tensor of shape [batch_size, seq_length, hidden_size]
baselines/models/bert_wwm_ext/modeling.py:249
↓ 1 callersMethodget_embedding_output
Gets output of the embedding lookup (i.e., input to the transformer). Returns: float Tensor of shape [batch_size, seq_length, hidden_size]
baselines/models/roberta_wwm_large_ext/modeling.py:249
↓ 1 callersMethodget_embedding_output
Gets output of the embedding lookup (i.e., input to the transformer). Returns: float Tensor of shape [batch_size, seq_length, hidden_size]
baselines/models/bert/modeling.py:249
↓ 1 callersMethodget_embedding_table
(self)
baselines/models/roberta/modeling.py:260
↓ 1 callersMethodget_embedding_table
(self)
baselines/models/albert/modeling.py:280
↓ 1 callersMethodget_embedding_table
(self)
baselines/models/roberta_wwm_ext/modeling.py:260
↓ 1 callersMethodget_embedding_table
(self)
baselines/models/ernie/modeling.py:260
↓ 1 callersMethodget_embedding_table
(self)
baselines/models/bert_wwm_ext/modeling.py:260
↓ 1 callersMethodget_embedding_table
(self)
baselines/models/roberta_wwm_large_ext/modeling.py:260
↓ 1 callersMethodget_embedding_table
(self)
baselines/models/bert/modeling.py:260
↓ 1 callersMethodget_embedding_table
Returns: float32 Tensor in shape [n_token, d_model]. The embedding lookup table. Used for tying embeddings between input and output l
baselines/models/xlnet/xlnet.py:278
↓ 1 callersMethodget_embedding_table_2
(self)
baselines/models/albert/modeling.py:283
↓ 1 callersFunctionget_eval
(original_file, prediction_file)
baselines/models_pytorch/mrc_pytorch/preprocess/cmrc2018_evaluate.py:186
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
baselines/models_pytorch/mrc_pytorch/preprocess/cmrc2018_output.py:345
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
baselines/models/roberta_wwm_ext/run_squad.py:927
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
baselines/models/ernie/run_squad.py:927
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
baselines/models/bert_wwm_ext/run_squad.py:927
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
baselines/models/roberta_wwm_large_ext/run_squad.py:927
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
baselines/models/bert/run_squad.py:927
↓ 1 callersMethodget_fixlen_iter
(self, start=0)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_transfo_xl.py:310
↓ 1 callersFunctionget_from_cache
Given a URL, look for the corresponding dataset in the local cache. If it's not there, download it. Then return the path to the cached file.
baselines/models_pytorch/classifier_pytorch/transformers/file_utils.py:249
↓ 1 callersFunctionget_from_cache
Given a URL, look for the corresponding dataset in the local cache. If it's not there, download it. Then return the path to the cached file.
baselines/models_pytorch/mrc_pytorch/tools/file_utils.py:164
↓ 1 callersMethodget_labels
See base class.
baselines/models/roberta/run_classifier.py:611
↓ 1 callersMethodget_labels
(self)
baselines/models/roberta/run_ner.py:207
↓ 1 callersMethodget_labels
See base class.
baselines/models/albert/run_classifier.py:562
↓ 1 callersMethodget_labels
See base class.
baselines/models/roberta_wwm_ext/run_classifier.py:669
↓ 1 callersMethodget_labels
See base class.
baselines/models/ernie/run_classifier.py:788
↓ 1 callersMethodget_labels
See base class.
baselines/models/bert_wwm_ext/run_classifier.py:718
↓ 1 callersMethodget_labels
See base class.
baselines/models/roberta_wwm_large_ext/run_classifier.py:713
↓ 1 callersMethodget_labels
See base class.
baselines/models/bert/run_classifier.py:712
↓ 1 callersMethodget_labels
See base class.
baselines/models/xlnet/run_classifier_thucnews.py:561
↓ 1 callersMethodget_labels
(self)
baselines/models/xlnet/run_classifier_thucnews.py:718
↓ 1 callersMethodget_labels
(self)
baselines/models/xlnet/run_classifier_thucnews.py:771
↓ 1 callersMethodget_labels
See base class.
baselines/models/xlnet/run_classifier.py:481
↓ 1 callersMethodget_labels
See base class.
baselines/models/xlnet/run_classifier.py:539
↓ 1 callersMethodget_labels
(self)
baselines/models/xlnet/run_classifier.py:749
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
baselines/models/roberta/run_pretraining.py:243
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
baselines/models/albert/run_pretraining.py:241
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
baselines/models/roberta_wwm_ext/run_pretraining.py:240
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
baselines/models/ernie/run_pretraining.py:240
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
baselines/models/bert_wwm_ext/run_pretraining.py:240
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
baselines/models/roberta_wwm_large_ext/run_pretraining.py:240
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
baselines/models/bert/run_pretraining.py:240
↓ 1 callersFunctionget_masks
Generate hidden states mask, and optionally an attention mask.
baselines/models_pytorch/classifier_pytorch/transformers/modeling_xlm.py:72
↓ 1 callersFunctionget_model_fn
(n_class)
baselines/models/xlnet/run_classifier_thucnews.py:934
↓ 1 callersFunctionget_model_fn
(n_class)
baselines/models/xlnet/run_classifier.py:912
↓ 1 callersFunctionget_model_fn
()
baselines/models/xlnet/run_cmrc_drcd.py:1015
↓ 1 callersMethodget_new_memory
Returns: list of float32 Tensors in shape [mem_len, bsz, d_model], the new memory that concatenates the previous memory with the curr
baselines/models/xlnet/xlnet.py:268
↓ 1 callersFunctionget_new_segment
输入一句话,返回一句经过处理的话: 为了支持中文全称mask,将被分开的词,将上特殊标记("#"),使得后续处理模块,能够知道哪些字是属于同一个词的。 :param segment: 一句话. e.g. ['悬', '灸', '技', '术', '培', '训', '专', '家
baselines/models/albert/create_pretraining_data.py:227
↓ 1 callersFunctionget_next_sentence_output
Get loss and log probs for the next sentence prediction.
baselines/models/roberta/run_pretraining.py:287
↓ 1 callersFunctionget_next_sentence_output
Get loss and log probs for the next sentence prediction.
baselines/models/albert/run_pretraining.py:290
↓ 1 callersFunctionget_next_sentence_output
Get loss and log probs for the next sentence prediction.
baselines/models/roberta_wwm_ext/run_pretraining.py:285
↓ 1 callersFunctionget_next_sentence_output
Get loss and log probs for the next sentence prediction.
baselines/models/ernie/run_pretraining.py:285
↓ 1 callersFunctionget_next_sentence_output
Get loss and log probs for the next sentence prediction.
baselines/models/bert_wwm_ext/run_pretraining.py:285
↓ 1 callersFunctionget_next_sentence_output
Get loss and log probs for the next sentence prediction.
baselines/models/roberta_wwm_large_ext/run_pretraining.py:285
↓ 1 callersFunctionget_next_sentence_output
Get loss and log probs for the next sentence prediction.
baselines/models/bert/run_pretraining.py:285
↓ 1 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
↓ 1 callersFunctionget_raw_instance
获取初步的训练实例,将整段按照max_sequence_length切分成多个部分,并以多个处理好的实例的形式返回。 :param document: 一整段 :param max_sequence_length: :return: a list. each ele
baselines/models/roberta/create_pretraining_data.py:282
↓ 1 callersFunctionget_raw_instance
获取初步的训练实例,将整段按照max_sequence_length切分成多个部分,并以多个处理好的实例的形式返回。 :param document: 一整段 :param max_sequence_length: :return: a list. each ele
baselines/models/albert/resources/create_pretraining_data_roberta.py:282
↓ 1 callersFunctionget_raw_scores
(dataset, preds)
baselines/models/xlnet/squad_utils.py:81
↓ 1 callersMethodget_sent_stream
(self)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_transfo_xl.py:344
↓ 1 callersMethodget_sent_stream
(self, path)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_transfo_xl.py:424
↓ 1 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/albert/modeling.py:257
↓ 1 callersMethodget_special_tokens_mask
Retrieves sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:941
↓ 1 callersMethodget_test_examples
See base class.
baselines/models_pytorch/classifier_pytorch/processors/glue.py:259
↓ 1 callersMethodget_test_examples
(self, data_dir)
baselines/models/roberta/run_ner.py:203
← previousnext →1,101–1,200 of 3,165, ranked by callers