MCPcopy Create free account

hub / github.com/Tencent/NeuralNLP-NeuralClassifier / types & classes

Types & classes58 in github.com/Tencent/NeuralNLP-NeuralClassifier

↓ 8 callersClassEmbedding
model/embedding.py:62
↓ 5 callersClassConfig
Config load from json file
config.py:18
↓ 5 callersClassRNN
One layer rnn.
model/rnn.py:30
↓ 3 callersClassMultiHeadAttention
Multi-Head Attention module
model/attention.py:47
↓ 2 callersClassDotProductAttention
Reference: Attention is all you need Input shape is: [batch, seq_len, dim_k] and [batch, seq_len, dim_k] [batch, seq_len,
model/layers.py:95
↓ 2 callersClassFocalLoss
Softmax focal loss references: Focal Loss for Dense Object Detection https://github.com/Hsuxu/FocalLoss-PyTorch
model/loss.py:49
↓ 2 callersClassLogger
util.py:44
↓ 2 callersClassRegionEmbeddingLayer
Reference: A New Method of Region Embedding for Text Classification
model/embedding.py:141
↓ 1 callersClassAdditiveAttention2D
Input shape is: [batch, seq_len, dim] and [batch, seq_len, dim] Output is same with the first input
model/layers.py:78
↓ 1 callersClassBertAdam
Implements BERT version of Adam algorithm with weight decay fix. Params: lr: learning rate warmup: portion of t_total for the warm
model/optimizer.py:63
↓ 1 callersClassEncoderLayer
Compose with two layers
model/transformer_encoder.py:49
↓ 1 callersClassHighway
Reference: Highway Networks. For now we don't limit the type of the gate and forward. Caller should init Highway with transformer and car
model/layers.py:150
↓ 1 callersClassPositionEmbedding
Reference: attention is all you need
model/embedding.py:213
↓ 1 callersClassPositionwiseFeedForward
A two-feed-forward-layer module
model/transformer_encoder.py:29
↓ 1 callersClassPredictor
predict.py:44
↓ 1 callersClassScaledDotProductAttention
Scaled Dot-Product Attention
model/attention.py:23
↓ 1 callersClassStarEncoderLayer
Star-Transformer: https://arxiv.org/pdf/1902.09113v2.pdf
model/transformer_encoder.py:69
↓ 1 callersClassSumAttention
Reference: Hierarchical Attention Networks for Document Classification
model/layers.py:22
ClassActivationType
Standard names for activation type
model/loss.py:37
ClassActivationType
Standard names for activation
model/model_util.py:21
ClassAdditiveAttention
Also known as Soft Attention or Bahdanau Attention Reference: Neural machine translation by jointly learning to align and translate
model/layers.py:45
ClassAdditiveAttention1D
Input shape is: [batch, dim] and [batch, seq_len, dim] Output is same with the first input
model/layers.py:63
ClassAttentionType
model/classification/attentive_convolution.py:34
ClassAttentiveConvNet
Attentive Convolution: Equipping CNNs with RNN-style Attention Mechanisms
model/classification/attentive_convolution.py:44
ClassAttentiveConvNetType
model/classification/attentive_convolution.py:25
ClassClassificationCollator
dataset/collator.py:40
ClassClassificationDataset
dataset/classification_dataset.py:21
ClassClassificationEvaluator
evaluate/classification_evaluate.py:27
ClassClassificationLoss
model/loss.py:100
ClassClassificationTrainer
train.py:87
ClassClassificationType
dataset/collator.py:31
ClassClassifier
model/classification/classifier.py:25
ClassCollator
dataset/collator.py:23
ClassDPCNN
Reference: Deep Pyramid Convolutional Neural Networks for Text Categorization
model/classification/dpcnn.py:22
ClassDRNN
model/classification/drnn.py:24
ClassDatasetBase
Base dataset class
dataset/dataset.py:45
ClassDocEmbeddingType
Standard names for doc embedding type.
model/classification/textrnn.py:24
ClassEmbeddingProcessType
Standard names for embedding mode Given the vocab tensor shape[batch_size, sequence_len]. The following keys are defined: * `FLAT`: Normal
model/embedding.py:42
ClassEmbeddingType
Standard names for embedding type The following keys are defined: * `EMBEDDING`: Return the embedding after lookup. * `REGION_EMBEDDING`:
model/embedding.py:27
ClassFAN_MODE
Standard names for fan mode
model/model_util.py:53
ClassFastText
Implement fasttext classification method Reference: "Bag of Tricks for Efficient Text Classification"
model/classification/fasttext.py:23
ClassFastTextCollator
FastText Collator Extra support features: token, token-ngrams, keywords, topics.
dataset/collator.py:169
ClassHMCN
Implement HMCN(Hierarchical Multi-Label Classification Networks) Reference: "Hierarchical Multi-Label Classification Networks"
model/classification/hmcn.py:23
ClassInitType
Standard names for init
model/model_util.py:36
ClassInsertVocabMode
Standard names for embedding mode Given the vocab tensor shape[batch_size, sequence_len]. The following keys are defined: * `FLAT`: Normal
dataset/dataset.py:25
ClassLossType
Standard names for loss type
model/loss.py:21
ClassModeType
Standard names for model modes. The following standard keys are defined: * `TRAIN`: training mode. * `EVAL`: evaluation mode. * `PREDI
util.py:28
ClassMultiHeadAttention
Reference: Attention is all you need
model/layers.py:116
ClassOptimizerType
Standard names for optimizer
model/model_util.py:112
ClassRNNType
model/rnn.py:20
ClassRegionEmbedding
Implement region embedding classification method Reference: "A New Method of Region Embedding for Text Classification"
model/classification/region_embedding.py:23
ClassRegionEmbeddingType
Standard names for region embedding type
model/embedding.py:130
ClassTextCNN
model/classification/textcnn.py:21
ClassTextRCNN
TextRNN + TextCNN
model/classification/textrcnn.py:23
ClassTextRNN
Implement TextRNN, contains LSTM,BiLSTM,GRU,BiGRU Reference: "Effective LSTMs for Target-Dependent Sentiment Classification" "Bidir
model/classification/textrnn.py:37
ClassTextVDCNN
model/classification/textvdcnn.py:26
ClassTransformer
model/classification/transformer.py:24
ClassType
util.py:22