MCPcopy Create free account

hub / github.com/brightmart/albert_zh / functions

Functions427 in github.com/brightmart/albert_zh

↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
run_classifier_sp_google.py:578
↓ 1 callersMethod_do_layer_adaptation
Whether to do layer-wise learning rate adaptation for `param_name`.
lamb_optimizer_google.py:136
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
lamb_optimizer_google.py:126
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
optimization_google.py:190
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
optimization.py:159
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
optimization.py:285
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
optimization_finetuning.py:159
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
lamb_optimizer_google.py:144
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
optimization_google.py:200
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
optimization.py:169
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
optimization.py:295
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
optimization_finetuning.py:169
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
tokenization.py:266
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
tokenization_google.py:361
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
tokenization.py:376
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
tokenization_google.py:471
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
tokenization.py:388
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
tokenization_google.py:483
↓ 1 callersFunction_is_start_piece_bert
Check if the current word piece is the starting piece (BERT).
create_pretraining_data_google.py:412
↓ 1 callersFunction_is_start_piece_sp
Check if the current word piece is the starting piece (sentence piece).
create_pretraining_data_google.py:395
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
tokenization.py:364
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
tokenization_google.py:459
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
tokenization.py:233
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
tokenization_google.py:328
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
tokenization.py:222
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
tokenization_google.py:317
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
tokenization.py:253
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
tokenization_google.py:348
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
run_classifier.py:384
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
run_classifier_sp_google.py:614
↓ 1 callersMethod_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
similarity.py:132
↓ 1 callersMethodapply_gradients
See base class.
optimization_google.py:139
↓ 1 callersMethodapply_gradients
See base class.
optimization.py:213
↓ 1 callersMethodapply_gradients
See base class.
optimization_finetuning.py:108
↓ 1 callersFunctionassert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python in
modeling_google_fast.py:1146
↓ 1 callersFunctionassert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python intege
bert_utils.py:74
↓ 1 callersFunctionassert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python i
modeling.py:1045
↓ 1 callersFunctionassert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python in
modeling_google.py:1059
↓ 1 callersFunctionattention_ffn_block
A network with attention-ffn as sub-block. Args: layer_input: float Tensor of shape [batch_size, from_seq_length, from_width]. hidden_
modeling_google_fast.py:922
↓ 1 callersFunctionattention_ffn_block
A network with attention-ffn as sub-block. Args: layer_input: float Tensor of shape [batch_size, from_seq_length, from_width]. hidden_
modeling_google.py:837
↓ 1 callersFunctionattention_layer
Performs multi-headed attention from `from_tensor` to `to_tensor`. Args: from_tensor: float Tensor of shape [batch_size, from_seq_length,
modeling_google_fast.py:833
↓ 1 callersFunctionattention_layer
Performs multi-headed attention from `from_tensor` to `to_tensor`. Args: from_tensor: float Tensor of shape [batch_size, from_seq_length,
modeling_google.py:748
↓ 1 callersFunctionconvert_example_list_for_inews
Converts a single `InputExample` into a single `InputFeatures`.
run_classifier_clue.py:234
↓ 1 callersFunctionconvert_examples_to_features
Convert a set of `InputExample`s to a list of `InputFeatures`.
run_classifier.py:702
↓ 1 callersFunctioncreate_attention_mask_from_input_mask
Create 3D attention mask from a 2D tensor mask. Args: from_tensor: 2D or 3D Tensor of shape [batch_size, from_seq_length, ...]. to_mask: in
modeling.py:603
↓ 1 callersFunctioncreate_float_feature
(values)
create_pretraining_data.py:177
↓ 1 callersFunctioncreate_float_feature
(values)
create_pretraining_data_google.py:214
↓ 1 callersFunctioncreate_float_feature
(values)
resources/create_pretraining_data_roberta.py:177
↓ 1 callersFunctioncreate_instances_from_document
Creates `TrainingInstance`s for a single document.
create_pretraining_data_google.py:268
↓ 1 callersFunctioncreate_instances_from_document
Creates `TrainingInstance`s for a single document.
resources/create_pretraining_data_roberta.py:319
↓ 1 callersFunctioncreate_instances_from_document_albert
Creates `TrainingInstance`s for a single document. This method is changed to create sentence-order prediction (SOP) followed by idea from paper o
create_pretraining_data.py:260
↓ 1 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective.
create_pretraining_data_google.py:428
↓ 1 callersFunctioncreate_model
Creates a classification model.
run_classifier_clue.py:502
↓ 1 callersFunctioncreate_model
Creates a classification model.
run_classifier_sp_google.py:631
↓ 1 callersFunctioncreate_training_instances
Create `TrainingInstance`s from raw text.
create_pretraining_data.py:182
↓ 1 callersFunctioncreate_training_instances
Create `TrainingInstance`s from raw text.
create_pretraining_data_google.py:219
↓ 1 callersFunctioncreate_training_instances
Create `TrainingInstance`s from raw text.
resources/create_pretraining_data_roberta.py:182
↓ 1 callersFunctiondense_layer_3d_proj
A dense layer with 3D kernel for projection. Args: input_tensor: float Tensor of shape [batch,from_seq_length, num_attention_heads, size_p
modeling_google_fast.py:634
↓ 1 callersFunctiondense_layer_3d_proj
A dense layer with 3D kernel for projection. Args: input_tensor: float Tensor of shape [batch,from_seq_length, num_attention_heads, size_p
modeling_google.py:632
↓ 1 callersFunctiondot_product_attention
Dot-product attention. Args: q: Tensor with shape [..., length_q, depth_k]. k: Tensor with shape [..., length_kv, depth_k]. Leading dimensio
modeling_google_fast.py:789
↓ 1 callersFunctiondot_product_attention
Dot-product attention. Args: q: Tensor with shape [..., length_q, depth_k]. k: Tensor with shape [..., length_kv, depth_k]. Leading dimensio
modeling_google.py:704
↓ 1 callersFunctionembedding_lookup
Looks up words embeddings for id tensor. Args: input_ids: int32 Tensor of shape [batch_size, seq_length] containing word ids. vocab_si
modeling_google_fast.py:455
↓ 1 callersFunctionembedding_lookup
Looks up words embeddings for id tensor. Args: input_ids: int32 Tensor of shape [batch_size, seq_length] containing word ids. vocab_si
modeling_google.py:453
↓ 1 callersFunctionembedding_postprocessor
Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_size, seq_length, embedding_
modeling_google_fast.py:501
↓ 1 callersFunctionembedding_postprocessor
Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_size, seq_length, embedding
modeling.py:507
↓ 1 callersFunctionembedding_postprocessor
Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_size, seq_length, embedding_
modeling_google.py:499
↓ 1 callersMethodfrom_dict
Constructs a `AlbertConfig` from a Python dictionary of parameters.
modeling_google_fast.py:102
↓ 1 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
modeling.py:83
↓ 1 callersMethodfrom_dict
Constructs a `AlbertConfig` from a Python dictionary of parameters.
modeling_google.py:102
↓ 1 callersFunctiongather_indexes
Gathers the vectors at the specific positions over a minibatch.
run_pretraining_google_fast.py:366
↓ 1 callersFunctiongather_indexes
Gathers the vectors at the specific positions over a minibatch.
run_pretraining.py:313
↓ 1 callersFunctiongather_indexes
Gathers the vectors at the specific positions over a minibatch.
run_pretraining_google.py:366
↓ 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:
modeling_google_fast.py:296
↓ 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:
modeling_google.py:296
↓ 1 callersMethodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
run_classifier_sp_google.py:193
↓ 1 callersMethodget_embedding_table
(self)
modeling.py:280
↓ 1 callersMethodget_embedding_table_2
(self)
modeling.py:283
↓ 1 callersMethodget_estimator
(self)
similarity.py:97
↓ 1 callersMethodget_labels
Gets the list of labels for this data set.
run_classifier.py:190
↓ 1 callersMethodget_labels
Gets the list of labels for this data set.
run_classifier_sp_google.py:201
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
run_pretraining_google_fast.py:296
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
run_pretraining.py:241
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
run_pretraining_google.py:296
↓ 1 callersFunctionget_new_segment
输入一句话,返回一句经过处理的话: 为了支持中文全称mask,将被分开的词,将上特殊标记("#"),使得后续处理模块,能够知道哪些字是属于同一个词的。 :param segment: 一句话. e.g. ['悬', '灸', '技', '术', '培', '训', '专', '家
create_pretraining_data.py:227
↓ 1 callersFunctionget_next_sentence_output
Get loss and log probs for the next sentence prediction.
run_pretraining.py:290
↓ 1 callersFunctionget_raw_instance
获取初步的训练实例,将整段按照max_sequence_length切分成多个部分,并以多个处理好的实例的形式返回。 :param document: 一整段 :param max_sequence_length: :return: a list. each ele
resources/create_pretraining_data_roberta.py:282
↓ 1 callersMethodget_sentence_examples
(self, questions)
similarity.py:19
↓ 1 callersFunctionget_sentence_order_output
Get loss and log probs for the next sentence prediction.
run_pretraining_google_fast.py:342
↓ 1 callersFunctionget_sentence_order_output
Get loss and log probs for the next sentence prediction.
run_pretraining_google.py:342
↓ 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
modeling.py:257
↓ 1 callersMethodget_test_examples
Gets a collection of `InputExample`s for prediction.
run_classifier_sp_google.py:197
↓ 1 callersFunctionget_total_parameters
get total parameters of a graph :return:
test_changes.py:16
↓ 1 callersMethodget_train_examples
Gets a collection of `InputExample`s for the train set.
run_classifier_sp_google.py:189
↓ 1 callersFunctioninput_fn_builder
(bertSim,sentences)
similarity.py:241
↓ 1 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
run_classifier_clue.py:563
↓ 1 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
run_classifier.py:460
↓ 1 callersFunctionlayer_norm_and_dropout
Runs layer normalization followed by dropout.
modeling_google_fast.py:413
↓ 1 callersFunctionlayer_norm_and_dropout
Runs layer normalization followed by dropout.
modeling.py:390
↓ 1 callersFunctionlayer_norm_and_dropout
Runs layer normalization followed by dropout.
modeling_google.py:411
↓ 1 callersFunctionlayer_scope
(idx, shared_type)
modeling.py:1150
← previousnext →101–200 of 427, ranked by callers