MCPcopy Create free account

hub / github.com/Tencent/NeuralNLP-NeuralClassifier / functions

Functions190 in github.com/Tencent/NeuralNLP-NeuralClassifier

Method__init__
(self, dataset, config)
model/classification/hmcn.py:28
Method__init__
(self, dataset, config)
model/classification/dpcnn.py:28
Method__init__
(self, dataset, config)
model/classification/transformer.py:25
Method__init__
(self, dataset, config)
model/classification/textrnn.py:45
Method__init__
(self, dataset, config)
model/classification/attentive_convolution.py:49
Method__init__
all convolutional blocks 4 kinds of conv blocks, which #feature_map are 64,128,256,512 Depth: 9 17 29 49 --------
model/classification/textvdcnn.py:27
Method__init__
(self, dataset, config)
model/classification/drnn.py:25
Method__new__
(cls, *args, **kw)
util.py:47
Method_append_vocab
(ori_vocabs, vocabs, max_len)
dataset/collator.py:84
Method_append_vocab
(sample, vocabs, offsets, lens, name)
dataset/collator.py:174
Method_format
Format evaluation string. Args: category: Category evaluation to format. Returns:
evaluate/classification_evaluate.py:400
Method_get_attn_key_pad_mask
For masking out the padding part of key sequence.
model/classification/transformer.py:82
Method_get_non_pad_mask
(seq, pad)
model/classification/transformer.py:78
Method_get_vocab_id_list
Use dict to convert all vocabs to ids
dataset/classification_dataset.py:148
Method_init_confusion_matrix
Init confusion matrix. Args: label_map: Label map. Returns: confusion_matrix.
evaluate/classification_evaluate.py:183
Method_init_count_dict
Init count dict. Args: label_map: Label map. Returns: count_dict.
evaluate/classification_evaluate.py:197
Method_init_dict
(self)
dataset/classification_dataset.py:58
Method_init_weight
(self, m)
model/classification/hmcn.py:66
Method_insert_vocab
(files, _mode=InsertVocabMode.ALL)
dataset/dataset.py:85
Method_insert_vocab
Insert vocab to dict
dataset/classification_dataset.py:130
Method_reshape_permute
(x, d, head_number)
model/layers.py:134
Methodcal_angle
(position, hid_idx)
model/embedding.py:231
Methodconvolutional_block
Convolutional Block of VDCNN Convolutional block contains 2 conv layers, and can be repeated Temp Conv-->Batch Norm-->ReLU-->T
model/classification/textvdcnn.py:95
Methoddebug
Log debug message msg: Message to log
util.py:70
Methoderror
Log error message msg: Message to log
util.py:94
Methodforward
Args: logits: model's output, shape of [batch_size, num_cls] target: ground truth labels, shape of [batch_size]
model/loss.py:64
Methodforward
(self, logits, target, use_hierar=False, is_multi=False, *argv
model/loss.py:119
Methodforward
(self, inputs)
model/layers.py:36
Methodforward
(self, s, h)
model/layers.py:59
Methodforward
(self, s, h)
model/layers.py:69
Methodforward
(self, s, h)
model/layers.py:84
Methodforward
(self, q, k, v)
model/layers.py:108
Methodforward
(self, q, k, v)
model/layers.py:133
Methodforward
(self, x, gate_input=None, forward_input=None)
model/layers.py:163
Methodforward
(self, x)
model/transformer_encoder.py:39
Methodforward
(self, enc_input, non_pad_mask=None, slf_attn_mask=None)
model/transformer_encoder.py:58
Methodforward
(self, h, e, s, non_pad_mask=None, slf_attn_mask=None)
model/transformer_encoder.py:79
Methodforward
(self, q, k, v, mask=None)
model/attention.py:32
Methodforward
(self, q, k, v, mask=None)
model/attention.py:74
Methodforward
Args: inputs: seq_lengths: init_state: ori_state: If true, will return ori state generate by
model/rnn.py:63
Methodforward
(self, vocab_ids, offset=None)
model/embedding.py:94
Methodforward
(self, vocab_ids)
model/embedding.py:169
Methodforward
(self, src_pos)
model/embedding.py:225
Methodforward
(self, batch)
model/classification/textcnn.py:56
Methodforward
(self, batch)
model/classification/fasttext.py:109
Methodforward
(self, batch)
model/classification/classifier.py:129
Methodforward
(self, batch)
model/classification/region_embedding.py:41
Methodforward
(self, batch)
model/classification/textrcnn.py:70
Methodforward
(self, batch)
model/classification/hmcn.py:88
Methodforward
(self, batch)
model/classification/dpcnn.py:61
Methodforward
(self, batch)
model/classification/transformer.py:77
Methodforward
(self, batch)
model/classification/textrnn.py:78
Methodforward
(self, batch)
model/classification/attentive_convolution.py:136
Methodforward
(self, batch)
model/classification/textvdcnn.py:94
Methodforward
(self, batch)
model/classification/drnn.py:56
Methodget_lr
(self)
model/optimizer.py:106
Methodget_parameter_optimizer_dict
(self)
model/classification/textcnn.py:38
Methodget_parameter_optimizer_dict
(self)
model/classification/fasttext.py:87
Methodget_parameter_optimizer_dict
(self)
model/classification/classifier.py:111
Methodget_parameter_optimizer_dict
(self)
model/classification/region_embedding.py:37
Methodget_parameter_optimizer_dict
(self)
model/classification/textrcnn.py:51
Methodget_parameter_optimizer_dict
(self)
model/classification/dpcnn.py:54
Methodget_parameter_optimizer_dict
(self)
model/classification/transformer.py:60
Methodget_parameter_optimizer_dict
(self)
model/classification/textrnn.py:62
Methodget_parameter_optimizer_dict
(self)
model/classification/attentive_convolution.py:111
Methodget_parameter_optimizer_dict
(self)
model/classification/textvdcnn.py:71
Methodget_parameter_optimizer_dict
(self)
model/classification/drnn.py:46
Methodget_posi_angle_vec
(position)
model/embedding.py:234
Methodstr
(cls)
util.py:24
Methodstr
(cls)
util.py:40
Methodstr
(self)
dataset/dataset.py:40
Methodstr
(cls)
model/loss.py:44
Methodstr
(cls)
model/model_util.py:31
Methodstr
(self)
model/model_util.py:59
Methodstr
(self)
model/model_util.py:119
Methodstr
(cls)
model/embedding.py:38
Methodstr
(cls)
model/embedding.py:58
Methodstr
(cls)
model/embedding.py:137
Methodstr
(cls)
model/classification/attentive_convolution.py:30
Methodstr
(cls)
model/classification/attentive_convolution.py:40
Methodupdate_lr
Update lr
model/classification/textcnn.py:46
Methodupdate_lr
Update lr
model/classification/fasttext.py:99
Methodupdate_lr
Update lr
model/classification/classifier.py:119
Methodupdate_lr
model/classification/textrcnn.py:60
Methodupdate_lr
(self, optimizer, epoch)
model/classification/transformer.py:69
Methodupdate_lr
(self, optimizer, epoch)
model/classification/textrnn.py:70
Methodupdate_lr
Update lr
model/classification/textvdcnn.py:84
Functionwarmup_constant
(x, warmup=0.002)
model/optimizer.py:44
Functionwarmup_cosine
(x, warmup=0.002)
model/optimizer.py:38
Functionwarmup_linear
(x, warmup=0.002)
model/optimizer.py:50
← previous101–190 of 190, ranked by callers