MCPcopy Create free account

hub / github.com/ProHiryu/albert-chinese-ner / functions

Functions141 in github.com/ProHiryu/albert-chinese-ner

Functionconvert_tokens_to_ids
(vocab, tokens)
tokenization.py:146
Functioncreate_instances_from_document_original
Creates `TrainingInstance`s for a single document.
create_pretraining_data.py:372
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.py:25
Functioncreate_optimizer
Creates an optimizer training op.
optimization_finetuning.py:25
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
Functionf1
(labels, predictions, num_classes, pos_indices=None, weights=None, average='micro')
tf_metrics.py:91
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
modeling.py:286
Functiongenerate_seq2seq_mask
(attention_mask, mask_sequence, seq_type, **kargs)
bert_utils.py:122
Methodget_all_encoder_layers
(self)
modeling.py:266
Functionget_assignment_map_from_checkpoint
Compute the union of the current variables and checkpoint variables.
modeling.py:339
Methodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
albert_ner.py:184
Methodget_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]
modeling.py:269
Methodget_labels
Gets the list of labels for this data set.
albert_ner.py:192
Methodget_test_examples
Gets a collection of `InputExample`s for prediction.
albert_ner.py:188
Methodget_train_examples
Gets a collection of `InputExample`s for the train set.
albert_ner.py:180
Functioninput_fn
The actual input function.
run_pretraining.py:336
Functioninput_fn
The actual input function.
albert_ner.py:399
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
albert_ner.py:560
Functionlayer_norm
Run layer normalization on the last dimension of the tensor.
albert_ner.py:459
Functionmain
(_)
run_pretraining.py:411
Functionmain
(_)
create_pretraining_data.py:675
Functionmain
(_)
albert_ner.py:629
Functionmetric_fn
Computes the loss and accuracy of the model.
run_pretraining.py:188
Functionmetric_fn
(per_example_loss, label_ids, logits)
albert_ner.py:529
Functionmodel_fn
The `model_fn` for TPUEstimator.
run_pretraining.py:114
Functionmodel_fn
The `model_fn` for TPUEstimator.
albert_ner.py:469
Functionprecision
Multi-class precision metric for Tensorflow Parameters ---------- labels : Tensor of tf.int32 or tf.int64 The true labels
tf_metrics.py:15
Functionprintable_text
Returns text encoded in a way suitable for print or `tf.logging`.
tokenization.py:98
Functionrecall
Multi-class recall metric for Tensorflow Parameters ---------- labels : Tensor of tf.int32 or tf.int64 The true labels pr
tf_metrics.py:53
Functionreshape_from_matrix
Reshapes a rank 2 tensor back to its original rank >= 2 tensor.
bert_utils.py:62
Functionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
bert_utils.py:49
Functiontest_factorized_embedding
test of Factorized embedding parameterization :return:
test_changes.py:35
Functiontest_share_parameters
test of share parameters across all layers: how many parameter after share parameter across layers of transformer. :return:
test_changes.py:44
Methodto_json_string
Serializes this instance to a JSON string.
modeling.py:102
Methodtokenize
Tokenizes a piece of text.
tokenization.py:198
Methodtokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the given voca
tokenization.py:310
Functiontpu_scaffold
()
run_pretraining.py:160
Functiontpu_scaffold
()
albert_ner.py:500
Functionvalidate_case_matches_checkpoint
Checks whether the casing config is consistent with the checkpoint name.
tokenization.py:28
← previous101–141 of 141, ranked by callers