MCPcopy Create free account

hub / github.com/ChineseGLUE/ChineseGLUE / functions

Functions3,165 in github.com/ChineseGLUE/ChineseGLUE

↓ 2 callersFunctioncalculate_metrics
(correct, guessed, total)
baselines/models/bert_wwm_ext/conlleval.py:152
↓ 2 callersFunctioncalculate_metrics
(correct, guessed, total)
baselines/models/roberta_wwm_large_ext/conlleval.py:152
↓ 2 callersFunctioncalculate_metrics
(correct, guessed, total)
baselines/models/bert/conlleval.py:152
↓ 2 callersFunctioncompute_loss
(logits, positions)
baselines/models/roberta_wwm_ext/run_squad.py:646
↓ 2 callersFunctioncompute_loss
(logits, positions)
baselines/models/ernie/run_squad.py:646
↓ 2 callersFunctioncompute_loss
(logits, positions)
baselines/models/bert_wwm_ext/run_squad.py:646
↓ 2 callersFunctioncompute_loss
(logits, positions)
baselines/models/roberta_wwm_large_ext/run_squad.py:646
↓ 2 callersFunctioncompute_loss
(logits, positions)
baselines/models/bert/run_squad.py:646
↓ 2 callersFunctioncompute_loss
(log_probs, positions)
baselines/models/xlnet/run_cmrc_drcd.py:1052
↓ 2 callersMethodconvert
(self, string)
baselines/models_pytorch/mrc_pytorch/tools/langconv.py:216
↓ 2 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
baselines/models/roberta_wwm_ext/run_squad.py:309
↓ 2 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
baselines/models/ernie/run_squad.py:309
↓ 2 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
baselines/models/bert_wwm_ext/run_squad.py:309
↓ 2 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
baselines/models/roberta_wwm_large_ext/run_squad.py:309
↓ 2 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
baselines/models/xlnet/run_cmrc_drcd.py:317
↓ 2 callersMethodconvert_ids_to_tokens
Converts a single index or a sequence of indices (integers) in a token " (resp.) a sequence of tokens (str/unicode), using the vocabulary
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:958
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
baselines/models/roberta/run_classifier.py:748
↓ 2 callersFunctionconvert_single_example
(ex_index, example, label_list, max_seq_length, tokenizer, output_dir, mode)
baselines/models/roberta/run_ner.py:356
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
baselines/models/albert/run_classifier.py:741
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
baselines/models/roberta_wwm_ext/run_classifier.py:815
↓ 2 callersFunctionconvert_single_example
(ex_index, example, label_list, max_seq_length, tokenizer, output_dir, mode)
baselines/models/roberta_wwm_ext/run_ner.py:356
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
baselines/models/ernie/run_classifier.py:854
↓ 2 callersFunctionconvert_single_example
(ex_index, example, label_list, max_seq_length, tokenizer, output_dir, mode)
baselines/models/ernie/run_ner.py:356
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
baselines/models/bert_wwm_ext/run_classifier.py:865
↓ 2 callersFunctionconvert_single_example
(ex_index, example, label_list, max_seq_length, tokenizer, output_dir, mode)
baselines/models/bert_wwm_ext/run_ner.py:356
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
baselines/models/roberta_wwm_large_ext/run_classifier.py:859
↓ 2 callersFunctionconvert_single_example
(ex_index, example, label_list, max_seq_length, tokenizer, output_dir, mode)
baselines/models/roberta_wwm_large_ext/run_ner.py:356
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
baselines/models/bert/run_classifier.py:858
↓ 2 callersFunctionconvert_single_example
(ex_index, example, label_list, max_seq_length, tokenizer, output_dir, mode)
baselines/models/bert/run_ner.py:363
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
baselines/models/xlnet/classifier_utils.py:61
↓ 2 callersFunctionconvert_single_example_for_inews
(ex_index, tokens_a, tokens_b, label_map, max_seq_length, tokenizer, exam
baselines/models/roberta/run_classifier.py:261
↓ 2 callersFunctionconvert_single_example_for_inews
(ex_index, tokens_a, tokens_b, label_map, max_seq_length, tokenizer, exam
baselines/models/albert/run_classifier.py:338
↓ 2 callersFunctionconvert_single_example_for_inews
(ex_index, tokens_a, tokens_b, label_map, max_seq_length, tokenizer, example)
baselines/models/roberta_wwm_ext/run_classifier.py:262
↓ 2 callersFunctionconvert_single_example_for_inews
(ex_index, tokens_a, tokens_b, label_map, max_seq_length, tokenizer, example)
baselines/models/ernie/run_classifier.py:339
↓ 2 callersFunctionconvert_single_example_for_inews
(ex_index, tokens_a, tokens_b, label_map, max_seq_length, tokenizer, exam
baselines/models/bert_wwm_ext/run_classifier.py:343
↓ 2 callersFunctionconvert_single_example_for_inews
(ex_index, tokens_a, tokens_b, label_map, max_seq_length, tokenizer, example)
baselines/models/roberta_wwm_large_ext/run_classifier.py:339
↓ 2 callersFunctionconvert_single_example_for_inews
(ex_index, tokens_a, tokens_b, label_map, max_seq_length, tokenizer, example)
baselines/models/bert/run_classifier.py:261
↓ 2 callersFunctionconvert_single_example_for_inews
(ex_index, tokens_a, tokens_b, label_map, max_seq_length, tokenizer, example)
baselines/models/xlnet/run_classifier_thucnews.py:249
↓ 2 callersFunctionconvert_single_example_for_inews
(ex_index, tokens_a, tokens_b, label_map, max_seq_length, tokenizer, example)
baselines/models/xlnet/classifier_utils.py:147
↓ 2 callersFunctionconvert_tf_checkpoint_to_pytorch
(tf_checkpoint_path, bert_config_file, pytorch_dump_path)
baselines/models_pytorch/classifier_pytorch/convert_bert_original_tf_checkpoint_to_pytorch.py:29
↓ 2 callersMethodconvert_to_tensor
(self, symbols)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_transfo_xl.py:245
↓ 2 callersMethodconvert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
baselines/models_pytorch/mrc_pytorch/tools/offical_tokenization.py:86
↓ 2 callersMethodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string. The most simple way to do it is ' '.join(self.convert_ids_to_tokens(token_ids)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:983
↓ 2 callersFunctionconvert_xlnet_checkpoint_to_pytorch
(tf_checkpoint_path, bert_config_file, pytorch_dump_folder_path, finetuning_task=None)
baselines/models_pytorch/classifier_pytorch/convert_xlnet_original_tf_checkpoint_to_pytorch.py:46
↓ 2 callersMethodcreate_cpu_hostcall
Runs on the host_call on CPU instead of TPU when use_tpu=False.
baselines/models/xlnet/tpu_estimator.py:1673
↓ 2 callersFunctioncreate_float_feature
(values)
baselines/models/xlnet/run_classifier_thucnews.py:848
↓ 2 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective.
baselines/models/roberta/create_pretraining_data.py:501
↓ 2 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective.
baselines/models/albert/create_pretraining_data.py:498
↓ 2 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective.
baselines/models/albert/resources/create_pretraining_data_roberta.py:501
↓ 2 callersFunctionembedding_lookup_factorized
Looks up words embeddings for id tensor, but in a factorized style followed by albert. it is used to reduce much percentage of parameters previous exi
baselines/models/albert/modeling.py:448
↓ 2 callersMethodencode_plus
Returns a dictionary containing the encoded sequence or sequence pair and additional informations: the mask for sequence classificati
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_utils.py:739
↓ 2 callersFunctionend_of_chunk
(prev_tag, tag, prev_type, type_)
baselines/models/roberta/conlleval.py:233
↓ 2 callersFunctionend_of_chunk
(prev_tag, tag, prev_type, type_)
baselines/models/roberta_wwm_ext/conlleval.py:233
↓ 2 callersFunctionend_of_chunk
(prev_tag, tag, prev_type, type_)
baselines/models/ernie/conlleval.py:233
↓ 2 callersFunctionend_of_chunk
(prev_tag, tag, prev_type, type_)
baselines/models/bert_wwm_ext/conlleval.py:233
↓ 2 callersFunctionend_of_chunk
(prev_tag, tag, prev_type, type_)
baselines/models/roberta_wwm_large_ext/conlleval.py:233
↓ 2 callersFunctionend_of_chunk
(prev_tag, tag, prev_type, type_)
baselines/models/bert/conlleval.py:233
↓ 2 callersFunctionevaluate
(args, model, tokenizer, prefix="")
baselines/models_pytorch/classifier_pytorch/run_classifier.py:164
↓ 2 callersFunctionfind_best_thresh
(preds, scores, na_probs, qid_to_has_ans)
baselines/models/xlnet/squad_utils.py:202
↓ 2 callersFunctionfind_best_thresh_v2
(preds, scores, na_probs, qid_to_has_ans)
baselines/models/xlnet/squad_utils.py:223
↓ 2 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
baselines/models_pytorch/mrc_pytorch/pytorch_modeling.py:126
↓ 2 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
baselines/models/albert/modeling.py:91
↓ 2 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/albert/modeling.py:302
↓ 2 callersMethodget_all_encoder_layers
(self)
baselines/models/roberta_wwm_ext/modeling.py:246
↓ 2 callersMethodget_all_encoder_layers
(self)
baselines/models/ernie/modeling.py:246
↓ 2 callersMethodget_all_encoder_layers
(self)
baselines/models/bert_wwm_ext/modeling.py:246
↓ 2 callersMethodget_all_encoder_layers
(self)
baselines/models/roberta_wwm_large_ext/modeling.py:246
↓ 2 callersMethodget_all_encoder_layers
(self)
baselines/models/bert/modeling.py:246
↓ 2 callersMethodget_batch
(self, i, bptt=None)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_transfo_xl.py:295
↓ 2 callersMethodget_dev_examples
(self, data_dir)
baselines/models/roberta_wwm_ext/run_ner.py:198
↓ 2 callersMethodget_dev_examples
(self, data_dir)
baselines/models/ernie/run_ner.py:198
↓ 2 callersMethodget_dev_examples
(self, data_dir)
baselines/models/bert_wwm_ext/run_ner.py:198
↓ 2 callersMethodget_dev_examples
(self, data_dir)
baselines/models/roberta_wwm_large_ext/run_ner.py:198
↓ 2 callersMethodget_dev_examples
(self, data_dir)
baselines/models/bert/run_ner.py:204
↓ 2 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
baselines/models_pytorch/mrc_pytorch/preprocess/DRCD_output.py:343
↓ 2 callersMethodget_labels
(self)
baselines/models/roberta_wwm_ext/run_ner.py:207
↓ 2 callersMethodget_labels
(self)
baselines/models/ernie/run_ner.py:207
↓ 2 callersMethodget_labels
(self)
baselines/models/bert_wwm_ext/run_ner.py:207
↓ 2 callersMethodget_labels
(self)
baselines/models/roberta_wwm_large_ext/run_ner.py:207
↓ 2 callersMethodget_labels
(self)
baselines/models/bert/run_ner.py:213
↓ 2 callersFunctionget_new_segment
输入一句话,返回一句经过处理的话: 为了支持中文全称mask,将被分开的词,将上特殊标记("#"),使得后续处理模块,能够知道哪些字是属于同一个词的。 :param segment: 一句话 :return: 一句处理过的话
baselines/models/roberta/create_pretraining_data.py:250
↓ 2 callersFunctionget_new_segment
输入一句话,返回一句经过处理的话: 为了支持中文全称mask,将被分开的词,将上特殊标记("#"),使得后续处理模块,能够知道哪些字是属于同一个词的。 :param segment: 一句话 :return: 一句处理过的话
baselines/models/albert/resources/create_pretraining_data_roberta.py:250
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. word is represented as tuple of symbols (symbols being variable-length strings)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_openai.py:50
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_gpt2.py:91
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_ctrl.py:49
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. word is represented as tuple of symbols (symbols being variable-length strings)
baselines/models_pytorch/classifier_pytorch/transformers/tokenization_xlm.py:415
↓ 2 callersMethodget_pooled_output
(self)
baselines/models/roberta/modeling.py:234
↓ 2 callersMethodget_pooled_output
(self)
baselines/models/albert/modeling.py:254
↓ 2 callersMethodget_result
(self)
baselines/models_pytorch/mrc_pytorch/tools/langconv.py:223
↓ 2 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/modeling.py:237
↓ 2 callersMethodget_sequence_output
Returns: float32 Tensor in shape [len, bsz, d_model]. The last layer hidden representation of XLNet.
baselines/models/xlnet/xlnet.py:259
↓ 2 callersMethodget_test_examples
See base class.
baselines/models/roberta/run_classifier.py:606
↓ 2 callersMethodget_test_examples
See base class.
baselines/models/albert/run_classifier.py:557
↓ 2 callersMethodget_test_examples
See base class.
baselines/models/roberta_wwm_ext/run_classifier.py:664
↓ 2 callersMethodget_test_examples
(self, data_dir)
baselines/models/roberta_wwm_ext/run_ner.py:203
↓ 2 callersMethodget_test_examples
See base class.
baselines/models/ernie/run_classifier.py:783
↓ 2 callersMethodget_test_examples
(self, data_dir)
baselines/models/ernie/run_ner.py:203
↓ 2 callersMethodget_test_examples
See base class.
baselines/models/bert_wwm_ext/run_classifier.py:713
↓ 2 callersMethodget_test_examples
(self, data_dir)
baselines/models/bert_wwm_ext/run_ner.py:203
↓ 2 callersMethodget_test_examples
See base class.
baselines/models/roberta_wwm_large_ext/run_classifier.py:708
← previousnext →501–600 of 3,165, ranked by callers