Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ProHiryu/albert-chinese-ner
/ functions
Functions
141 in github.com/ProHiryu/albert-chinese-ner
⨍
Functions
141
◇
Types & classes
14
Function
convert_tokens_to_ids
(vocab, tokens)
tokenization.py:146
Function
create_instances_from_document_original
Creates `TrainingInstance`s for a single document.
create_pretraining_data.py:372
Function
create_masked_lm_predictions_original
Creates the predictions for the masked LM objective.
create_pretraining_data.py:581
Function
create_optimizer
Creates an optimizer training op.
optimization.py:25
Function
create_optimizer
Creates an optimizer training op.
optimization_finetuning.py:25
Function
embedding_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
Function
f1
(labels, predictions, num_classes, pos_indices=None, weights=None, average='micro')
tf_metrics.py:91
Function
gather_indexes
Gathers the vectors at the specific positions over a minibatch.
bert_utils.py:103
Function
gelu
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
Function
generate_seq2seq_mask
(attention_mask, mask_sequence, seq_type, **kargs)
bert_utils.py:122
Method
get_all_encoder_layers
(self)
modeling.py:266
Function
get_assignment_map_from_checkpoint
Compute the union of the current variables and checkpoint variables.
modeling.py:339
Method
get_dev_examples
Gets a collection of `InputExample`s for the dev set.
albert_ner.py:184
Method
get_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
Method
get_labels
Gets the list of labels for this data set.
albert_ner.py:192
Method
get_test_examples
Gets a collection of `InputExample`s for prediction.
albert_ner.py:188
Method
get_train_examples
Gets a collection of `InputExample`s for the train set.
albert_ner.py:180
Function
input_fn
The actual input function.
run_pretraining.py:336
Function
input_fn
The actual input function.
albert_ner.py:399
Function
input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
albert_ner.py:560
Function
layer_norm
Run layer normalization on the last dimension of the tensor.
albert_ner.py:459
Function
main
(_)
run_pretraining.py:411
Function
main
(_)
create_pretraining_data.py:675
Function
main
(_)
albert_ner.py:629
Function
metric_fn
Computes the loss and accuracy of the model.
run_pretraining.py:188
Function
metric_fn
(per_example_loss, label_ids, logits)
albert_ner.py:529
Function
model_fn
The `model_fn` for TPUEstimator.
run_pretraining.py:114
Function
model_fn
The `model_fn` for TPUEstimator.
albert_ner.py:469
Function
precision
Multi-class precision metric for Tensorflow Parameters ---------- labels : Tensor of tf.int32 or tf.int64 The true labels
tf_metrics.py:15
Function
printable_text
Returns text encoded in a way suitable for print or `tf.logging`.
tokenization.py:98
Function
recall
Multi-class recall metric for Tensorflow Parameters ---------- labels : Tensor of tf.int32 or tf.int64 The true labels pr
tf_metrics.py:53
Function
reshape_from_matrix
Reshapes a rank 2 tensor back to its original rank >= 2 tensor.
bert_utils.py:62
Function
reshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
bert_utils.py:49
Function
test_factorized_embedding
test of Factorized embedding parameterization :return:
test_changes.py:35
Function
test_share_parameters
test of share parameters across all layers: how many parameter after share parameter across layers of transformer. :return:
test_changes.py:44
Method
to_json_string
Serializes this instance to a JSON string.
modeling.py:102
Method
tokenize
Tokenizes a piece of text.
tokenization.py:198
Method
tokenize
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
Function
tpu_scaffold
()
run_pretraining.py:160
Function
tpu_scaffold
()
albert_ner.py:500
Function
validate_case_matches_checkpoint
Checks whether the casing config is consistent with the checkpoint name.
tokenization.py:28
← previous
101–141 of 141, ranked by callers