MCPcopy Create free account

hub / github.com/brightmart/albert_zh / functions

Functions427 in github.com/brightmart/albert_zh

↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
tokenization.py:121
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
tokenization_google.py:193
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
run_pretraining_google_fast.py:133
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
run_pretraining.py:109
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
run_classifier_clue.py:569
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
run_pretraining_google.py:133
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
run_classifier.py:465
↓ 1 callersFunctionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
run_classifier_sp_google.py:682
↓ 1 callersMethodmodel_fn_builder
Returns `model_fn` closurimport_tfe for TPUEstimator.
similarity.py:53
↓ 1 callersMethodpredict_sentences
(self,sentences)
similarity.py:126
↓ 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.
modeling.py:1074
↓ 1 callersMethodstart_model
(self)
similarity.py:49
↓ 1 callersFunctiontest_sentence_order_prediction
sentence order prediction. check method of create_instances_from_document_albert from create_pretrining_data.py :return:
test_changes.py:64
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
modeling_google_fast.py:116
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
modeling.py:97
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
modeling_google.py:116
↓ 1 callersFunctiontransformer_model
Multi-headed, multi-layer Transformer from "Attention is All You Need". This is almost an exact implementation of the original Transformer encoder.
modeling_google_fast.py:1000
↓ 1 callersFunctiontransformer_model
Multi-headed, multi-layer Transformer from "Attention is All You Need". This is almost an exact implementation of the original Transformer encoder.
modeling_google.py:913
↓ 1 callersFunctiontruncate_seq_pair
Truncates a pair of sequences to a maximum sequence length.
create_pretraining_data_google.py:603
↓ 1 callersFunctiontruncate_seq_pair
Truncates a pair of sequences to a maximum sequence length.
resources/create_pretraining_data_roberta.py:579
↓ 1 callersFunctionwrite_instance_to_example_files
Create TF example files from `TrainingInstance`s.
create_pretraining_data.py:99
↓ 1 callersFunctionwrite_instance_to_example_files
Create TF example files from `TrainingInstance`s.
create_pretraining_data_google.py:128
↓ 1 callersFunctionwrite_instance_to_example_files
Create TF example files from `TrainingInstance`s.
resources/create_pretraining_data_roberta.py:98
Method__init__
Constructs a LAMBOptimizer.
lamb_optimizer_google.py:42
Method__init__
Constructs a AdamWeightDecayOptimizer.
optimization_google.py:121
Method__init__
Constructs AlbertConfig. Args: vocab_size: Vocabulary size of `inputs_ids` in `AlbertModel`. embedding_size: size of voc embeddings.
modeling_google_fast.py:41
Method__init__
Constructor for AlbertModel. Args: config: `AlbertConfig` instance. is_training: bool. true for training model, false for eval model.
modeling_google_fast.py:145
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
run_classifier_clue.py:137
Method__init__
(self, tokens, segment_ids, masked_lm_positions, masked_lm_labels, is_random_next)
create_pretraining_data.py:74
Method__init__
(self, vocab_file, do_lower_case=True)
tokenization.py:166
Method__init__
Constructs a BasicTokenizer. Args: do_lower_case: Whether to lower case the input.
tokenization.py:190
Method__init__
(self, vocab, unk_token="[UNK]", max_input_chars_per_word=200)
tokenization.py:305
Method__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first sequence. For sing
classifier_utils.py:59
Method__init__
(self)
classifier_utils.py:844
Method__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first sequence. For sing
run_classifier.py:131
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
run_classifier.py:162
Method__init__
(self)
run_classifier.py:612
Method__init__
(self)
run_classifier.py:657
Method__init__
(self, vocab_file, do_lower_case=True, spm_model_file=None)
tokenization_google.py:235
Method__init__
Constructs a BasicTokenizer. Args: do_lower_case: Whether to lower case the input.
tokenization_google.py:285
Method__init__
(self, vocab, unk_token="[UNK]", max_input_chars_per_word=200)
tokenization_google.py:400
Method__init__
Constructs a AdamWeightDecayOptimizer.
optimization.py:90
Method__init__
(self, batch_size=args.batch_size)
similarity.py:37
Method__init__
Constructs a AdamWeightDecayOptimizer.
optimization_finetuning.py:90
Method__init__
Constructs BertConfig. Args: vocab_size: Vocabulary size of `inputs_ids` in `BertModel`. hidden_size: Size of the encoder layers and
modeling.py:34
Method__init__
Constructor for BertModel. Args: config: `BertConfig` instance. is_training: bool. true for training model, false for eval model. Con
modeling.py:131
Method__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first sequence. For sing
run_classifier_sp_google.py:142
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
run_classifier_sp_google.py:173
Method__init__
(self)
run_classifier_sp_google.py:219
Method__init__
(self)
run_classifier_sp_google.py:308
Method__init__
(self, tokens, segment_ids, masked_lm_positions, masked_lm_labels, is_random_next, token_bounda
create_pretraining_data_google.py:100
Method__init__
Constructs AlbertConfig. Args: vocab_size: Vocabulary size of `inputs_ids` in `AlbertModel`. embedding_size: size of voc embeddings.
modeling_google.py:41
Method__init__
Constructor for AlbertModel. Args: config: `AlbertConfig` instance. is_training: bool. true for training model, false for eval model.
modeling_google.py:145
Method__init__
(self, tokens, segment_ids, masked_lm_positions, masked_lm_labels, is_random_next)
resources/create_pretraining_data_roberta.py:73
Method__repr__
(self)
create_pretraining_data.py:95
Method__repr__
(self)
create_pretraining_data_google.py:124
Method__repr__
(self)
resources/create_pretraining_data_roberta.py:94
Method_create_examples_one
(self, lines, set_type)
classifier_utils.py:868
Function_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
resources/create_pretraining_data_roberta.py:229
Method_read_tsv
Reads a tab separated value file.
classifier_utils.py:107
Method_read_txt
Reads a tab separated value file.
classifier_utils.py:117
Methodapply_gradients
See base class.
lamb_optimizer_google.py:68
Methodapply_gradients
See base class.
optimization.py:108
Functionconvert_examples_to_features
Convert a set of `InputExample`s to a list of `InputFeatures`.
run_classifier_clue.py:717
Functionconvert_examples_to_features
Convert a set of `InputExample`s to a list of `InputFeatures`.
run_classifier_sp_google.py:831
Functionconvert_ids_to_tokens
(inv_vocab, ids)
tokenization.py:150
Functionconvert_ids_to_tokens
(inv_vocab, ids)
tokenization_google.py:219
Methodconvert_ids_to_tokens
(self, ids)
tokenization.py:183
Methodconvert_ids_to_tokens
(self, ids)
tokenization_google.py:274
Methodconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
similarity.py:148
Functionconvert_tokens_to_ids
(vocab, tokens)
tokenization.py:146
Functionconvert_tokens_to_ids
(vocab, tokens)
tokenization_google.py:215
Methodconvert_tokens_to_ids
(self, tokens)
tokenization_google.py:266
Functioncreate_instances_from_document_original
Creates `TrainingInstance`s for a single document.
create_pretraining_data.py:372
Functioncreate_instances_from_document_original
Creates `TrainingInstance`s for a single document.
resources/create_pretraining_data_roberta.py:376
Functioncreate_masked_lm_predictions_original
Creates the predictions for the masked LM objective.
create_pretraining_data.py:581
Functioncreate_optimizer
Creates an optimizer training op.
optimization_google.py:32
Functioncreate_optimizer
Creates an optimizer training op.
optimization.py:25
Functioncreate_optimizer
Creates an optimizer training op.
optimization_finetuning.py:25
Functiondense_layer_2d_old
A dense layer with 2D kernel. 添加分组全连接的方式 Args: input_tensor: Float tensor with rank 3. [ batch_size,sequence_length, hidden_size] output_siz
modeling_google_fast.py:721
Functionembedding_lookup
Looks up words embeddings for id tensor. Args: input_ids: int32 Tensor of shape [batch_size, seq_length] containing word ids. vocab_s
modeling.py:402
Functionencode_ids
(sp_model, text, sample=False)
tokenization_google.py:144
Methodfrom_json_file
Constructs a `AlbertConfig` from a json file of parameters.
modeling_google_fast.py:110
Methodfrom_json_file
Constructs a `AlbertConfig` from a json file of parameters.
modeling_google.py:110
Functiongather_indexes
Gathers the vectors at the specific positions over a minibatch.
bert_utils.py:103
Functiongelu
Gaussian Error Linear Unit. This is a smoother version of the RELU. Original paper: https://arxiv.org/abs/1606.08415 Args: x: float Tensor t
modeling_google_fast.py:282
Functiongelu
Gaussian Error Linear Unit. This is a smoother version of the RELU. Original paper: https://arxiv.org/abs/1606.08415 Args: x: float Tensor
modeling.py:286
Functiongelu
Gaussian Error Linear Unit. This is a smoother version of the RELU. Original paper: https://arxiv.org/abs/1606.08415 Args: x: float Tensor t
modeling_google.py:282
Functiongenerate_from_input
()
similarity.py:256
Functiongenerate_seq2seq_mask
(attention_mask, mask_sequence, seq_type, **kargs)
bert_utils.py:122
Methodget_all_encoder_layers
(self)
modeling_google_fast.py:255
Methodget_all_encoder_layers
(self)
modeling.py:266
Methodget_all_encoder_layers
(self)
modeling_google.py:255
Functionget_assignment_map_from_checkpoint
Compute the union of the current variables and checkpoint variables.
modeling_google_fast.py:332
Functionget_assignment_map_from_checkpoint
Compute the union of the current variables and checkpoint variables.
modeling.py:339
Functionget_assignment_map_from_checkpoint
Compute the union of the current variables and checkpoint variables.
modeling_google.py:330
Methodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
classifier_utils.py:94
Methodget_dev_examples
See base class.
classifier_utils.py:145
Methodget_dev_examples
See base class.
classifier_utils.py:222
Methodget_dev_examples
See base class.
classifier_utils.py:302
← previousnext →201–300 of 427, ranked by callers