Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HIT-SCIR/plm-nlp-code
/ functions
Functions
157 in github.com/HIT-SCIR/plm-nlp-code
⨍
Functions
157
◇
Types & classes
37
Method
__len__
(self)
chp5/glove.py:33
Method
__len__
(self)
chp6/train_elmo.py:82
Method
__len__
(self)
chp6/vocab.py:29
Function
collate_fn
(examples)
chp8/textbrewer_example.py:21
Function
collate_fn
(examples)
chp4/transformer_sent_polarity.py:24
Function
collate_fn
(examples)
chp4/lstm_postag.py:27
Function
collate_fn
(examples)
chp4/transformer_postag.py:24
Function
collate_fn
(examples)
chp4/cnn_sent_polarity.py:20
Function
collate_fn
(examples)
chp4/mlp_sent_polarity.py:19
Function
collate_fn
(examples)
chp4/lstm_sent_polarity.py:23
Method
collate_fn
(self, examples)
chp5/sgns.py:41
Method
collate_fn
(self, examples)
chp5/rnnlm.py:32
Method
collate_fn
(self, examples)
chp5/skipgram.py:35
Method
collate_fn
(self, examples)
chp5/ffnnlm.py:35
Method
collate_fn
(self, examples)
chp5/cbow.py:35
Method
collate_fn
(self, examples)
chp5/glove.py:39
Method
collate_fn
(self, examples)
chp6/train_elmo.py:88
Function
compute_metrics
(eval_pred)
chp7/finetune_bert_spc.py:24
Function
compute_metrics
(eval_pred)
chp7/finetune_bert_ssc.py:24
Function
compute_metrics
(p)
chp7/finetune_bert_ner.py:46
Method
convert_ids_to_tokens
(self, indices)
chp4/vocab.py:38
Method
convert_ids_to_tokens
(self, indices)
chp6/vocab.py:38
Function
encode
(examples)
chp8/textbrewer_example.py:13
Method
forward
(self, x)
chp4/transformer_sent_polarity.py:44
Method
forward
(self, inputs, lengths)
chp4/transformer_sent_polarity.py:63
Method
forward
(self, inputs, lengths)
chp4/lstm_postag.py:48
Method
forward
(self, x)
chp4/transformer_postag.py:47
Method
forward
(self, inputs, lengths)
chp4/transformer_postag.py:65
Method
forward
(self, inputs)
chp4/mlp_train.py:12
Method
forward
(self, inputs)
chp4/cnn_sent_polarity.py:34
Method
forward
(self, inputs)
chp4/mlp_embedding.py:17
Method
forward
(self, inputs, offsets)
chp4/mlp_sent_polarity.py:34
Method
forward
(self, inputs)
chp4/mlp.py:17
Method
forward
(self, inputs, lengths)
chp4/lstm_sent_polarity.py:38
Method
forward
(self, inputs)
chp5/rnnlm.py:51
Method
forward
(self, inputs)
chp5/skipgram.py:47
Method
forward
(self, inputs)
chp5/ffnnlm.py:54
Method
forward
(self, inputs)
chp5/cbow.py:49
Method
forward
(self, inputs)
chp6/train_elmo.py:128
Method
forward
(self, inputs)
chp6/train_elmo.py:174
Method
forward
(self, inputs, lengths)
chp6/train_elmo.py:238
Method
forward
(self, inputs, lengths)
chp6/train_elmo.py:304
Function
init_weights
(model)
chp6/utils.py:61
Function
load_pretrained
(load_path)
chp6/utils.py:37
Method
load_pretrained
(self, path)
chp6/train_elmo.py:317
Function
load_reuters
()
chp6/utils.py:14
Function
prepare_train_features
(examples)
chp7/finetune_bert_mrc.py:14
Function
read_vocab
(path)
chp4/vocab.py:47
Function
read_vocab
(path)
chp5/vocab.py:47
Function
read_vocab
(path)
chp6/vocab.py:47
Function
save_pretrained
Save pretrained token vectors in a unified format, where the first line specifies the `number_of_tokens` and `embedding_dim` followed with al
chp6/utils.py:24
Function
save_vocab
(vocab, path)
chp4/vocab.py:42
Function
save_vocab
(vocab, path)
chp5/vocab.py:42
Function
simple_adaptor
(batch, model_outputs)
chp8/textbrewer_example.py:46
Function
tokenize
(examples)
chp7/finetune_bert_spc.py:14
Function
tokenize
(examples)
chp7/finetune_bert_ssc.py:14
Function
tokenize_and_align_labels
(examples)
chp7/finetune_bert_ner.py:12
← previous
101–157 of 157, ranked by callers