MCPcopy Create free account

hub / github.com/Happleasei/Chinese-Grammatical-error-diagnosis / functions

Functions1,299 in github.com/Happleasei/Chinese-Grammatical-error-diagnosis

↓ 2 callersMethodproject_layer
hidden layer between lstm layer and logits :param lstm_outputs: [batch_size, num_steps, emb_size] :return: [batch_size, num_
BERT_BILSTM_CRF/model.py:128
↓ 2 callersMethodprune_heads
(self, heads)
BERT_CRF/models/transformers/modeling_xlm.py:116
↓ 2 callersMethodprune_heads
(self, heads)
BERT_CRF/models/transformers/modeling_gpt2.py:121
↓ 2 callersFunctionread_squad_examples
Read a SQuAD json file into a list of SquadExample.
BERT_BILSTM_CRF/bert/run_squad.py:227
↓ 2 callersFunctionreshape_from_matrix
Reshapes a rank 2 tensor back to its original rank >= 2 tensor.
BERT_BILSTM_CRF/bert/modeling.py:946
↓ 2 callersMethodresult
(self)
BERT_CRF/metrics/ner_metrics.py:22
↓ 2 callersMethodretrieve
(self, key)
BERT_CRF/callback/lr_finder.py:429
↓ 2 callersFunctionsave_model
(sess, model, path, logger, global_steps)
BERT_BILSTM_CRF/utils.py:169
↓ 2 callersFunctionsave_model
用于保存模型
HMM/utils.py:12
↓ 2 callersFunctionsent2features
抽取序列特征
CRF/util.py:26
↓ 2 callersFunctionsplit_s3_path
Split a full s3 path into the bucket name and path.
BERT_CRF/models/transformers/file_utils.py:188
↓ 2 callersFunctionstart_of_chunk
(prev_tag, tag, prev_type, type_)
BERT_BILSTM_CRF/conlleval.py:258
↓ 2 callersMethodstore
(self, key, state_dict)
BERT_CRF/callback/lr_finder.py:421
↓ 2 callersMethodstream_iterator
(self, sent_stream)
BERT_CRF/models/transformers/tokenization_transfo_xl.py:353
↓ 2 callersMethodto_json_string
Serializes this instance to a JSON string.
BERT_CRF/models/transformers/configuration_utils.py:202
↓ 2 callersMethodtokenize
(self, text)
BERT_CRF/processors/utils_ner.py:12
↓ 2 callersFunctiontranspose_for_scores
(input_tensor, batch_size, num_attention_heads, seq_length, width)
BERT_BILSTM_CRF/bert/modeling.py:629
↓ 1 callersMethod__init__
(self, *args, **kwargs)
BERT_CRF/models/transformers/tokenization_transfo_xl.py:487
↓ 1 callersMethod__init__
Reference : https://github.com/tensorflow/tensorflow/blob/r1.10/tensorflow/python/ops/candidate_sampling_ops.py `P(class) = (log(
BERT_CRF/models/transformers/modeling_transfo_xl_utilities.py:261
↓ 1 callersMethod__init__
(self,optimizer,learning_rate,t_total,warmup)
BERT_CRF/callback/lr_scheduler.py:111
↓ 1 callersMethod__next__
(self)
BERT_CRF/callback/lr_finder.py:465
↓ 1 callersMethod__repr__
(self)
BERT_BILSTM_CRF/bert/run_squad.py:182
↓ 1 callersMethod__str__
(self)
BERT_BILSTM_CRF/bert/create_pretraining_data.py:79
↓ 1 callersMethod_attn
(self, q, k, v, attention_mask=None, head_mask=None)
BERT_CRF/models/transformers/modeling_gpt2.py:143
↓ 1 callersMethod_attn
(self, q, k, v, attention_mask=None, head_mask=None)
BERT_CRF/models/transformers/modeling_openai.py:166
↓ 1 callersMethod_build_from_file
(self, vocab_file)
BERT_CRF/models/transformers/tokenization_transfo_xl.py:133
↓ 1 callersFunction_cache_mem
cache hidden states into memory.
XLNET_BILSTM_CRF/modeling.py:189
↓ 1 callersMethod_cal_weighted_average
(self)
HMM/evaluating.py:103
↓ 1 callersFunction_check_is_max_context
Check if this is the 'max context' doc span for the token.
BERT_BILSTM_CRF/bert/run_squad.py:513
↓ 1 callersMethod_check_shape
output1 - True - algorithm for matrix, False - vector; output2 - need reshape
BERT_CRF/callback/optimizater/adafactor.py:50
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
BERT_BILSTM_CRF/bert/tokenization.py:286
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
BERT_CRF/models/transformers/tokenization_albert.py:244
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
BERT_CRF/models/transformers/tokenization_bert.py:391
↓ 1 callersMethod_compute_normalizer
(self, emissions: torch.Tensor, mask: torch.ByteTensor)
BERT_CRF/models/layers/crf.py:197
↓ 1 callersMethod_compute_score
(self, emissions: torch.Tensor, tags: torch.LongTensor, mask: to
BERT_CRF/models/layers/crf.py:164
↓ 1 callersFunction_compute_softmax
Compute softmax probability over raw logits.
BERT_BILSTM_CRF/bert/run_squad.py:1035
↓ 1 callersFunction_create_mask
create causal attention mask.
XLNET_BILSTM_CRF/modeling.py:175
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
BERT_BILSTM_CRF/bert/run_squad.py:701
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
BERT_BILSTM_CRF/bert/run_pretraining.py:391
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
BERT_BILSTM_CRF/bert/run_classifier.py:521
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
BERT_BILSTM_CRF/bert/optimization.py:159
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
XLNET_BILSTM_CRF/model_utils.py:370
↓ 1 callersMethod_experimental_reshape
(self, shape)
BERT_CRF/callback/optimizater/adafactor.py:38
↓ 1 callersMethod_from_pretrained
(cls, pretrained_model_name_or_path, *init_inputs, **kwargs)
BERT_CRF/models/transformers/tokenization_utils.py:286
↓ 1 callersFunction_get_initializer
Get variable intializer.
XLNET_BILSTM_CRF/xlnet.py:11
↓ 1 callersFunction_get_sharded_variable
Get a list of sharded variables with the given dtype.
BERT_BILSTM_CRF/rnncell.py:44
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
BERT_BILSTM_CRF/bert/optimization.py:169
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
XLNET_BILSTM_CRF/model_utils.py:385
↓ 1 callersFunction_improve_answer_span
Returns tokenized answer spans that better match the annotated answer.
BERT_BILSTM_CRF/bert/run_squad.py:476
↓ 1 callersMethod_init_weights
Initialize the weights.
BERT_CRF/models/transformers/modeling_xlm.py:230
↓ 1 callersMethod_init_xlnet_placeholder
(self)
XLNET_BILSTM_CRF/main_xlnet_bilstm_crf.py:114
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
BERT_BILSTM_CRF/bert/tokenization.py:264
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
BERT_CRF/models/transformers/tokenization_albert.py:222
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
BERT_CRF/models/transformers/tokenization_bert.py:369
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
BERT_BILSTM_CRF/bert/tokenization.py:374
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
BERT_CRF/models/transformers/tokenization_albert.py:328
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
BERT_CRF/models/transformers/tokenization_bert.py:477
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
BERT_BILSTM_CRF/bert/tokenization.py:386
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
BERT_CRF/models/transformers/tokenization_albert.py:339
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
BERT_CRF/models/transformers/tokenization_bert.py:489
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
BERT_BILSTM_CRF/bert/tokenization.py:362
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
BERT_CRF/models/transformers/tokenization_albert.py:316
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
BERT_CRF/models/transformers/tokenization_bert.py:465
↓ 1 callersMethod_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTraine
BERT_CRF/models/transformers/modeling_xlm.py:414
↓ 1 callersMethod_rel_shift
(self, x)
BERT_CRF/models/transformers/modeling_transfo_xl.py:266
↓ 1 callersMethod_remove_Otags
(self)
HMM/evaluating.py:123
↓ 1 callersMethod_resize_token_embeddings
(self, new_num_tokens)
BERT_CRF/models/transformers/modeling_xlm.py:410
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
BERT_BILSTM_CRF/bert/tokenization.py:231
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
BERT_CRF/models/transformers/tokenization_albert.py:189
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
BERT_CRF/models/transformers/tokenization_bert.py:334
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
BERT_BILSTM_CRF/bert/tokenization.py:220
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
BERT_CRF/models/transformers/tokenization_albert.py:178
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
BERT_CRF/models/transformers/tokenization_bert.py:323
↓ 1 callersMethod_schedule_eta
Threshold value could be adjusted to shrink eta_min and eta_max values.
BERT_CRF/callback/lr_scheduler.py:442
↓ 1 callersMethod_set_learning_rate
(self, new_lrs)
BERT_CRF/callback/lr_finder.py:210
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
BERT_BILSTM_CRF/bert/tokenization.py:251
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
BERT_CRF/models/transformers/tokenization_albert.py:209
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
BERT_CRF/models/transformers/tokenization_bert.py:356
↓ 1 callersMethod_train_batch
(self, iter_wrapper, accumulation_steps)
BERT_CRF/callback/lr_finder.py:227
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
BERT_BILSTM_CRF/bert/run_classifier.py:557
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
BERT_BILSTM_CRF/bert/extract_features.py:302
↓ 1 callersMethod_update_mems
(self, hids, mems, qlen, mlen)
BERT_CRF/models/transformers/modeling_transfo_xl.py:670
↓ 1 callersMethod_validate
(self, dataloader)
BERT_CRF/callback/lr_finder.py:280
↓ 1 callersMethod_viterbi_decode
(self, emissions: torch.FloatTensor, mask: torch.ByteTensor, p
BERT_CRF/models/layers/crf.py:243
↓ 1 callersMethod_viterbi_decode_nbest
(self, emissions: torch.FloatTensor, mask: torch.ByteTensor,
BERT_CRF/models/layers/crf.py:325
↓ 1 callersFunctionabs_attn_core
Core absolute positional attention operations.
XLNET_BILSTM_CRF/modeling.py:109
↓ 1 callersMethodadd_special
(self, sym)
BERT_CRF/models/transformers/tokenization_transfo_xl.py:207
↓ 1 callersFunctionangle_defn
(pos, i, d_model_size)
BERT_CRF/models/transformers/modeling_ctrl.py:42
↓ 1 callersMethodapply_gradients
See base class.
XLNET_BILSTM_CRF/model_utils.py:318
↓ 1 callersMethodarrange_batch
把batch整理为一个[5, ]的数组 :param batch: :return:
BERT_BILSTM_CRF/data_utils.py:281
↓ 1 callersMethodassert_all_tensors_reachable
Checks that all the tensors in the graph are reachable from outputs.
BERT_BILSTM_CRF/bert/modeling_test.py:162
↓ 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
BERT_BILSTM_CRF/bert/modeling.py:959
↓ 1 callersFunctionattention_layer
Performs multi-headed attention from `from_tensor` to `to_tensor`. This is an implementation of multi-headed attention based on "Attention is all
BERT_BILSTM_CRF/bert/modeling.py:558
↓ 1 callersMethodbatch_step
(self, batch_iteration=None)
BERT_CRF/callback/lr_scheduler.py:220
↓ 1 callersMethodbert_embedding
(self)
BERT_BILSTM_CRF/model.py:93
↓ 1 callersMethodbiLSTM_layer
:param lstm_inputs: [batch_size, num_steps, emb_size] :return: [batch_size, num_steps, 2*lstm_dim]
BERT_BILSTM_CRF/model.py:106
↓ 1 callersMethodbiLSTM_layer
(self)
XLNET_BILSTM_CRF/main_xlnet_bilstm_crf.py:181
↓ 1 callersFunctionbio_to_json
(string, tags)
BERT_BILSTM_CRF/utils.py:214
↓ 1 callersMethodbpe
(self, token)
BERT_CRF/models/transformers/tokenization_gpt2.py:139
↓ 1 callersMethodbpe
(self, token)
BERT_CRF/models/transformers/tokenization_ctrl.py:92
← previousnext →201–300 of 1,299, ranked by callers